Skip to content
LangChain

geolocation db mcp for LangChain

io.github.mrfentmen/geolocation-db-mcp

Geolocation for an IP address from Geolocation DB. No key required.

client:LangChain transport:stdio runtime:npm

Install geolocation db mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "geolocation-db-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "geolocation-db-mcp"],
        }
})

tools = await client.get_tools()

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

geolocation db mcp in other clients