Calculator MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Calculator MCP Agent
A LangChain agent that connects to a custom MCP (Model Context Protocol) server which exposes a simple calculator tool. The agent can evaluate mathematical expressions by calling the calculator tool over MCP.
How it works
mcqcalc.py— a FastMCP server that exposes acalculatortool (and a prompt template) over streamable HTTP.mcp_calc.ipynb— a notebook that starts a LangChain agent, connects to the MCP server, and uses a locally hosted Ollama model to answer math questions.
Related MCP server: Calculator MCP
Running it
Running this project takes two steps, in two separate terminals.
Start the MCP server in one terminal:
python mcqcalc.pyThis launches the calculator MCP server (listening on port 8000).
Run the notebook in another terminal (or your editor):
Open and run
mcp_calc.ipynb. It connects to the running MCP server and drives the agent.
Ollama configuration
The notebook's base_url for Ollama points to a private local network
address specific to my setup. Before running the notebook,
replace that base_url with your own Ollama instance URL (for example,
http://localhost:11434 if you run Ollama locally).
Setup
Install dependencies:
pip install -r requirements.txtCreate a .env file for any required environment variables (it is git-ignored).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Safe scientific calculator MCP for numeric expressions
Exact arithmetic and statistics for AI agents and apps. Evaluate math expressions safely and get...
Free calculators as MCP tools: finance, taxes, health, units, dates. Search, fetch & compute.
Unofficial Math.js MCP — wraps the mathjs.org API (free, no auth)
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.16,210 PyPI160MIT
- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.6235 npm15MIT
- FlicenseNot gradedqualityDmaintenanceProvides basic arithmetic operations and advanced mathematical functions through the Model Context Protocol (MCP), with features like calculation history tracking and expression evaluation.1-
- AlicenseBqualityDmaintenanceProvides mathematical computation capabilities including basic arithmetic operations (add, subtract, multiply, divide), advanced functions (square root, factorial, logarithm), and trigonometric functions (sin, cos, tan) through the Model Context Protocol.5MIT