Arithmuse
Arithmuse is a minimal Python MCP server that provides basic calculator tools:
addsubtractmultiplydivide
Requirements
- Python 3.10+
Install
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Run locally
python -m arithmuse.server
By default, this starts Streamable HTTP transport on 0.0.0.0:$PORT (or port 8000) with MCP endpoint at /mcp.
To run with stdio transport instead:
MCP_TRANSPORT=stdio python -m arithmuse.server
Dedalus deployment notes
- Dedalus entrypoint:
python main.py
- This server uses
dedalus_mcpand serves/mcpviaserver.serve(). - Optional env var:
DEDALUS_SERVER_NAME(default:calculator-mcp; should match your Dedalus slug)
- Keep the service stateless; no persistent filesystem assumptions are required.
- Ensure your Dedalus runtime installs project dependencies from
pyproject.toml. - Health check expectation: process starts successfully, remains running, and responds on
/mcp. - This repo keeps the
arithmusepackage at project root so imports work even if the platform does notpip install .first.
Available tools
add(a, b)->a + bsubtract(a, b)->a - bmultiply(a, b)->a * bdivide(a, b)->a / b(returns an error for divide-by-zero)
Test
pytest -q