Skip to content
LangChain

Close API for LangChain

city.close/close-api

Walk, bike, and transit travel times from every US census block to nearby amenities.

client:LangChain transport:streamable-http tools:10

Install Close API in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

Close API in other clients