Skip to content
LangChain

GhostKey — Route Paid APIs with x402 for LangChain

com.scriptmasterlabs/ghostkey

Find paid APIs, check access policy and price, and route x402 requests. No autonomous spending.

client:LangChain transport:streamable-http tools:4

Install GhostKey — Route Paid APIs with x402 in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "ghostkey": {
            "transport": "streamable_http",
            "url": "https://squeezeos-api.onrender.com/mcp/ghostkey",
        }
})

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

GhostKey — Route Paid APIs with x402 in other clients