Calculator MCP Server
Click on "Install 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., "@Calculator MCP Serverwhat is 25 * 4 + 10?"
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.
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).
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityFmaintenanceA Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.Last updated1153MIT
- 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.Last updated636016MIT
- Flicense-qualityDmaintenanceProvides basic arithmetic operations and advanced mathematical functions through the Model Context Protocol (MCP), with features like calculation history tracking and expression evaluation.Last updated1
- 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.Last updated5MIT
Related MCP Connectors
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Precision math engine for AI agents. 203 exact methods. Zero hallucination.
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ShauryaKumar09/Calculator_MCP-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server