MathAgent
FreeNot checkedThis repository contains an MCP (Model Context Protocol) server for mathematical calculations.
About
This repository contains an MCP (Model Context Protocol) server for mathematical calculations.
README
A minimal math agent that delegates all calculations to an MCP (Model Context Protocol) server. The agent uses MCP tools for every operation—no mental math—so you get consistent, inspectable results.
What’s inside
- Agent: built with pydantic-ai, connected via MCP stdio
- MCP Server: powered by fastmcp, exposing math tools
Available MCP tools
- add
- subtract
- multiply
- divide
- power
- log
Coming soon:
- modulus
Requirements
- Python 3.13+
- uv (Python package/dependency manager)
- A Groq API key (for the LLM model)
- A Logfire token (for instrumentation)
Setup
- Clone the repository
- Create your environment file
- Set these keys:
groq_key— your Groq API keylogfire_key— your Logfire token
- Set these keys:
Run the agent
Run with uv so dependencies are resolved and the MCP server is launched as a toolset:
uv run agent.py
Notes:
- The agent is configured to use the Groq model
qwen/qwen3-32b(seeagent.py). You can swap models as needed. - The agent will reject non-math questions by design.
- All calculations route through the MCP tools defined in
mcp-server.py.
Contributing
Contributions are welcome—feel free to open issues or submit pull requests.
Installing MathAgent
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ArjunKrish7356/MathAgentFAQ
Is MathAgent MCP free?
Yes, MathAgent MCP is free — one-click install via Unyly at no cost.
Does MathAgent need an API key?
No, MathAgent runs without API keys or environment variables.
Is MathAgent hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install MathAgent in Claude Desktop, Claude Code or Cursor?
Open MathAgent on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare MathAgent with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
