Skip to content
LangChain

castles for LangChain

com.thecastlemap/castles

Castles, fortresses, palaces and ruins worldwide: search, nearby, fame ranking, statistics. CC0.

client:LangChain transport:streamable-http tools:7

Install castles in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "castles": {
            "transport": "streamable_http",
            "url": "https://thecastlemap.com/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

castles in other clients