swop for LangChain
io.github.travisswop/swop
Swop.id profiles, wallet addresses, and live prediction markets with real-time prices.
client:LangChain
transport:streamable-http
tools:31
Install swop in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"swop": {
"transport": "streamable_http",
"url": "https://mcp.swopme.co/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- swop_search_identities
- swop_lookup_identity
- swop_search_markets
- swop_get_event_markets
- swop_get_event_live_status
- swop_get_orderbook
- swop_get_prices
- swop_get_price_history
- swop_get_taxonomy
- swop_get_taxonomy_stats
- swop_check_predictions_access
- swop_get_my_profile
- swop_get_my_balances
- swop_get_my_orders
- swop_list_my_tokens
- swop_get_my_smartsite
- swop_update_my_smartsite
- swop_add_link
- swop_remove_link
- swop_create_product
- swop_feature_product
- swop_list_my_products
- swop_update_product
- swop_get_spending_delegation