Skip to content
LangChain

IP Geolocation API for LangChain

io.github.br0ski777/ip-geolocation

IP geolocation with city, ISP, ASN, VPN/proxy/tor detection. x402.

client:LangChain transport:sse

Install IP Geolocation API 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.klymax402.com/mcp",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

IP Geolocation API in other clients