Skip to content
LangChain

mcp number theory for LangChain

io.github.daedalus/mcp-number-theory

MCP server exposing number theory functions and factorization algorithms

client:LangChain transport:stdio runtime:pypi

Install mcp number theory in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp-number-theory": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["mcp-number-theory"],
        }
})

tools = await client.get_tools()

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

mcp number theory in other clients