Install
$ agentstack add mcp-avanishd-3-math-mcp Open-source listing — not yet scanned by AgentStack. Follow the source repository for install instructions.
Security review
⚠ Flagged1 finding(s); flagged for manual review. · v0.1.0 How review works →
- • Prompt-injection patterns
- • Secret / credential exfiltration
- • Dangerous shell & filesystem operations
- • Untrusted network calls
- • Known-malicious package signatures
- high Pipes remote content directly into a shell (remote code execution).
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Math MCP Server
Overview
This is an MCP (Model Context Protocol) server that can do basic arithmetic in 64 bit precision, along with matrix multiplication.
Features
- Addition
- Subtraction
- Multiplication
- Division
- Matrix multiplication
Installation
Prerequisities
Ensure you have the following installed:
- Python 3.13+
- uv
Installing UV
See installation guide for all options.
Unix/MacOS
curl -LsSf https://astral.sh/uv/install.sh | sh
or
brew install uv
Windows
winget install --id=astral-sh.uv -e
Clone the Repository
git clone https://github.com/avanishd-3/math-mcp.git
cd math-mcp-server
uv sync
Integration with Clients
Claude Code
fastmcp install claude-code src/mathserver.py:mathmcp
Claude Desktop
fastmcp install claude-desktop src/mathserver.py:mathmcp
Cursor
fastmcp install cursor src/mathserver.py:mathmcp
VS Code
Add the following .vscode/mcp.json and use your actual path.
{
"servers": {
"Math MCP Server": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"--with",
"numpy",
"fastmcp",
"run",
"/absolute/path/Desktop/to/math-mcp-server/src/math_server.py:math_mcp"
]
}
},
}
Contributing
- Fork the repository
- Create a new branch:
git checkout -b add-feature
- Make changes and commit (remember to add unit tests in test/ directory)
git commit -m "Added a new feature"
- Push to your fork
git push origin add-feature
- Open a pull request.
Project Structure
/
├── src
│ └── math_server.py
├── tests
│ ├── test_arithmetic.py
│ │ └── astro.svg
│ ├── test_linear_algebra.py
├── pytest.ini
├── pyproject.toml
└── uv.lock
Architecture
This MCP server uses Fast MCP 2.0, which provides many more features than Fast MCP 1.0, which is what the official Python SDK for MCP uses.
Also, the unit tests are written with Pytest, which is what Fast MCP 2.0 recommends.
Lastly, if you don't know, uv is a much faster version of pip that also provides a lockfile for project dependencies (this will be familiar if you've used npm or cargo before). The MCP Python SDK itself uses uv, and I use it for all new Python projects, because it's 10-100x faster than pip, and the lockfile makes dependency version management much simpler.
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: avanishd-3
- Source: avanishd-3/math-mcp
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.