advanced-calculator-mcp
Allows LangChain clients to connect to the calculator server via HTTP transport for executing math operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@advanced-calculator-mcpwhat is the square root of 144?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Advanced Calculator — HTTP (remote-style) MCP server
Unlike the basic calculator (stdio, launched by the host), this server runs
over streamable HTTP as a standalone service. You start it yourself; clients
connect to its URL: http://127.0.0.1:8000/mcp.
Tools
add, subtract, multiply, divide, power, sqrt, nth_root, absolute, logarithm, log10, exp, factorial, modulo, gcd, lcm, sin, cos, tan.
Related MCP server: MCP Calculator Streamable HTTP
Setup
cd ~/Documents/Claude/advanced-calculator
uv add "mcp[cli]"Run the server (must stay running)
uv run main.pyThis time it is NOT supposed to exit or "hang silently" — it prints Uvicorn startup and keeps listening on http://127.0.0.1:8000/mcp. Leave this terminal open. (Ctrl+C to stop.)
Test it in the Inspector
In a second terminal:
cd ~/Documents/Claude/advanced-calculator
uv run mcp dev main.py…or point the Inspector at the running HTTP URL http://127.0.0.1:8000/mcp.
Connect to Claude Desktop (via mcp-remote bridge)
Claude Desktop cannot talk to an HTTP MCP server directly, so we bridge it with
mcp-remote (needs Node/npx installed). Add this to claude_desktop_config.json:
"advanced-calculator": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://127.0.0.1:8000/mcp"]
}Keep uv run main.py running, then fully restart Claude Desktop.
Connect from the LangChain client (transport: http)
In a MultiServerMCPClient config, this is where transport: "http" lives:
"advanced-calculator": {
"transport": "http",
"url": "http://127.0.0.1:8000/mcp",
}stdio vs http — the key difference
stdio servers (calculator, expense-tracker): the host launches them with
uv --directory ... run main.py; they exit when the host disconnects.http server (this one): YOU run it; it stays up listening on a port, and any client connects to its URL.
transport="http"is a client/bridge concept; on the server side the run transport is"streamable-http".
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
Math.js MCP — wraps the mathjs.org API (free, no auth)
QuLab MCP remote server (Streamable HTTP) for computational science and lab tools.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceA calculator server that exposes mathematical functions as tools (add, subtract, multiply, divide, square, power, square root), enabling language models to perform calculations through Model Context Protocol (MCP).-
- FlicenseNot gradedqualityNot gradedmaintenanceProvides basic arithmetic calculation tools through an HTTP-accessible MCP server. Supports mathematical operations like addition with streamable responses for integration with MCP clients.-
- AlicenseNot gradedqualityDmaintenanceEnables mathematical operations and calculations through an MCP server interface. Provides computational capabilities accessible via HTTP endpoints for mathematical processing tasks.MIT
- AlicenseNot gradedqualityAmaintenanceAn MCP server that exposes 16 calculator operations as tools, enabling arithmetic, rounding, and root calculations via natural language.MIT