Skip to content
LangChain

Country Generator for LangChain

com.countrygenerator/mcp-server

Look up any country's capital, population and borders, or play geography quizzes with your AI.

client:LangChain transport:streamable-http tools:7

Install Country Generator in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

Country Generator in other clients