Skip to content
LangChain

Math & Statistics Calculator API for AI Agents for LangChain

io.github.chunyunglo/math-statistics-calculator-api

Exact arithmetic and statistics for AI agents and apps. Evaluate math expressions safely and get...

client:LangChain transport:streamable-http

Install Math & Statistics Calculator API for AI Agents in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "math-statistics-calculator-api": {
            "transport": "streamable_http",
            "url": "https://chun-yung-lo--math-statistics-calculator-api.apify.actor/mcp",
        }
})

tools = await client.get_tools()

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

Math & Statistics Calculator API for AI Agents in other clients