Skip to content
LangChain

GhostSwap for LangChain

io.github.ghostswap1/mcp

GhostSwap — non-custodial crypto swaps across 1,600+ coins.

client:LangChain transport:streamable-http tools:6

Install GhostSwap in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp": {
            "transport": "streamable_http",
            "url": "https://mcp.ghostswap.io/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

GhostSwap in other clients