Skip to content
LangChain

Codeforces MCP Server for LangChain

io.github.ketherworks/codeforces

Search Codeforces problems and inspect public problem metadata through the official Codeforces API.

client:LangChain transport:streamable-http

Install Codeforces MCP Server in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "codeforces": {
            "transport": "streamable_http",
            "url": "https://codeforces-oj-mcp.lantangtang54.workers.dev/mcp",
        }
})

tools = await client.get_tools()

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

Codeforces MCP Server in other clients