
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A Model Context Protocol server exposing a calculator tool with basic arithmetic operations over JSON-RPC, HTTP, WebSocket and stdio.
MCP Calculator Server is cataloged as an MCP server attributed to kumartheashwani. A Model Context Protocol server exposing a calculator tool with basic arithmetic operations over JSON-RPC, HTTP, WebSocket and stdio. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Calculator Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, it uses JSON schema validation and supports error reporting for invalid parameter types.
README.md · be2e81188a5f · Fetched 2026-11-13 13:58:20 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server implementation with a basic calculator tool. This server can be deployed in Smithery and provides arithmetic operations through a REST API.
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Run the server in pure HTTP mode using uvicorn directly:
# Set environment variable to ensure only HTTP mode runs
export MCP_HTTP_MODE=1 # On Windows: set MCP_HTTP_MODE=1
uvicorn server:app --host 0.0.0.0 --port 8000
Or use the provided script:
# On Unix/Linux/Mac
./start-container.sh
# On Windows
start-container.bat
This mode is recommended for:
For Smithery integration as a local tool, use the stdio mode:
# Set environment variable to ensure only stdio mode runs
export MCP_STDIO_MODE=1 # On Windows: set MCP_STDIO_MODE=1
python server.py
Or use the provided convenience scripts:
# On Unix/Linux/Mac
./start-smithery.sh
# On Windows
start-smithery.bat
This mode is specifically designed for Smithery's local tool integration and communicates via standard input/output.
IMPORTANT: Do NOT use
python server.pywithout setting environment variables as it starts both HTTP and stdio modes simultaneously, which can cause conflicts or timeouts.
For development and testing both interfaces simultaneously:
# No environment variables set - runs both modes
python server.py
This starts both the HTTP server and stdio handler simultaneously, but may exit prematurely if stdin is closed. This mode is not recommended for production or Smithery integration.
GET /health: Health check endpointGET /tools: List available tools and their schemasPOST /: JSON-RPC endpoint for MCP protocol/: WebSocket endpoint for MCP protocolPOST /mcp: Dedicated MCP-compatible JSON-RPC endpoint for Smithery integration/mcp: Dedicated MCP-compatible WebSocket endpoint for Smithery integrationThese dedicated MCP endpoints are specifically designed for Smithery integration and automatically handle initialization and tool listing without requiring explicit initialization steps.
Example request to the /tools endpoint:
curl -X GET http://localhost:8000/tools
Example request to the JSON-RPC endpoint:
curl -X POST http://localhost:8000/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "execute", "params": {"function_calls": [{"name": "calculator", "parameters": {"operation": "add", "numbers": [1, 2, 3, 4]}}]}, "id": 1}'
Available operations:
add: Adds all numberssubtract: Subtracts subsequent numbers from the first numbermultiply: Multiplies all numbersdivide: Divides the first number by all subsequent numbersThe server provides clear error messages for:
Build and run the Docker container:
docker build -t mcp-calculator-server .
docker run -p 8000:8000 mcp-calculator-server
The container uses uvicorn directly to ensure the HTTP server starts reliably with proper signal handling, making the API endpoints accessible at http://localhost:8000.
For Smithery integration as a local tool, you must use stdio mode with the required logging configuration:
# Set environment variables for stdio mode and logging
export MCP_STDIO_MODE=1 # On Windows: set MCP_STDIO_MODE=1
export LOGGING_CONFIG=stdio # On Windows: set LOGGING_CONFIG=stdio
# Run the server
python server.py
Or use the provided convenience scripts:
# On Unix/Linux/Mac
./start-smithery.sh
# On Windows
start-smithery.bat
For Smithery integration in a container, use the dedicated Smithery Dockerfile:
# Build the Smithery-specific container
docker build -t mcp-calculator-smithery -f Dockerfile.smithery .
# Run the container with stdio mode
docker run -i -e MCP_STDIO_MODE=1 -e LOGGING_CONFIG=stdio mcp-calculator-smithery
Or use the provided convenience scripts:
# On Unix/Linux/Mac
./run-smithery-container.sh
# On Windows
run-smithery-container.bat
This container is specifically configured for Smithery integration and runs in stdio mode with the required logging configuration.
Configure Smithery to use the server as a local tool:
{
"name": "calculator",
"description": "A basic calculator that can perform arithmetic operations",
"command": ["python", "server.py"],
"env": {
"MCP_STDIO_MODE": "1",
"LOGGING_CONFIG": "stdio"
},
"type": "local"
}
This configuration ensures the server communicates via stdio when run by Smithery as a local tool and properly configures the logging system.
IMPORTANT: For local tool integration, you must use stdio mode (MCP_STDIO_MODE=1) with the LOGGING_CONFIG environment variable. HTTP mode will not work for local tool integration.
For Smithery integration as a remote tool (e.g., in a container), use HTTP mode with the dedicated MCP endpoint:
{
"name": "calculator",
"description": "A basic calculator that can perform arithmetic operations",
"url": "http://your-container-host:8000/mcp",
"type": "remote"
}
This configuration ensures Smithery can access the tool's API endpoints over HTTP using the dedicated MCP-compatible endpoint.
For the most reliable operation in container environments, use uvicorn directly in your deployment configuration:
{
"name": "calculator",
"description": "A basic calculator that can perform arithmetic operations",
"command": ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"],
"env": {
"MCP_HTTP_MODE": "1"
},
"type": "remote"
}
This ensures proper signal handling and more reliable startup in container environments.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Calculator Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/vault-python-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.