A Model Context Protocol (MCP) server that provides calculator functionality for MCP clients.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-calculator-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server that provides calculator functionality with robust mathematical operations.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
math://constantsMathematical constants (π, e, φ, √2, ln2, ln10) in JSON format
math://constants
server://infoServer information and capabilities overview
server://info
math_problemGenerate mathematical word problems with configurable difficulty and topics
explain_calculationStep-by-step mathematical expression explanations
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in productivity
Dynamic problem-solving through sequential thought chains
Persistent memory using a knowledge graph
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
Local-first AI memory with knowledge graphs and hybrid search. 17+ AI tools via MCP. Free.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Calculator Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server that provides calculator functionality with robust mathematical operations. Built on the official go-sdk.
Both tools declare tool annotations (read-only, closed-world hints), titles, and structured output schemas.
math://constants/pidifficulty, topic) and constant names in the resource templaterandom_number asks the client which distribution to use when not specifiedNote: The HTTP transport binds all interfaces with no authentication or Origin validation — intended for demos and trusted networks only. Put it behind a reverse proxy (or use stdio) for anything else.
Default Behavior:
streamable-http (if no TRANSPORT environment variable is set)8080 (configurable via PORT environment variable)Prebuilt binaries for Linux, macOS, and Windows (amd64/arm64) are attached to each GitHub release.
Or install with Go:
go install github.com/yinebebt/mcp-calculator-server@latest
# Run with stdio
TRANSPORT=stdio mcp-calculator-server
# Run with HTTP (serves MCP at :8080/mcp, health check at /health)
mcp-calculator-server
# Test
go test ./...
For testing with MCP Client:
{
"command": "/path/to/mcp-calculator-server",
"env": {
"TRANSPORT": "stdio"
}
}
2+3*4 = 14(2+3)*4 = 201e2 = 100Releases are built with GoReleaser via GitHub Actions. Pushing a vX.Y.Z tag cross-compiles for linux/darwin/windows × amd64/arm64 and attaches archives and checksums to the GitHub release.