Skip to content
LangChain

f1 mcp for LangChain

io.github.mrfentmen/f1-mcp

Formula 1 history from the Jolpica/Ergast archive: seasons, schedules, results and standings

client:LangChain transport:stdio runtime:npm

Install f1 mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "f1-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@mrfentmen/f1-mcp"],
        }
})

tools = await client.get_tools()

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

f1 mcp in other clients