Skip to content
LangChain

ip geolocation for LangChain

io.github.abangdwie/ip-geolocation

IPv4 geolocation: country, city, ASN via DB-IP Lite. $0.001/call USDC on Base via x402.

client:LangChain transport:streamable-http tools:4

Install ip geolocation in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "ip-geolocation": {
            "transport": "streamable_http",
            "url": "https://ip-geolocation-api.abang-dwie.workers.dev/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

ip geolocation in other clients