A Model Context Protocol (MCP) server that provides calculator functionality.
- calculate: Mathematical operations with proper operator precedence
- random_number: Generate random numbers within specified ranges
- math://constants: Mathematical constants (π, e, φ, √2, ln2, ln10) in JSON format
- server://info: Server information and capabilities overview
- math_problem: Generate mathematical word problems with configurable difficulty and topics
- explain_calculation: Step-by-step mathematical expression explanations
- stdio: For local development and MCP Inspector integration
- streamable-http: For web deployments and container environments
Default Behavior:
- Transport:
streamable-http
(if no TRANSPORT environment variable is set) - Port:
8080
(configurable via PORT environment variable)
go install github.com/yinebebt/mcp-calculator-server@latest
TRANSPORT=stdio ./mcp-calculator-server
For testing with MCP Client:
{
"command": "/path/to/mcp-calculator-server",
"env": {
"TRANSPORT": "stdio"
}
}