FastMCP Calculator Server
Provides Google OAuth authentication for the MCP server, allowing secure access to calculator endpoints using Google credentials.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
FastMCP Calculator Server
A Model Context Protocol (MCP) server providing calculator functionality with authentication options.
Quick Start
1. Install Dependencies
pip install -r requirements.txt2. Choose Authentication Mode
No Authentication (Port 8000)
python calculator_server.pyJWT Authentication (Port 8001)
python calculator_server_auth.py
# Copy the bearer token from outputGoogle OAuth (Port 8002)
# Setup: Get credentials from https://console.cloud.google.com/
# Create .env file with GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET
python calculator_server_google_oauth.pyRelated MCP server: Calculator MCP
Calculator Tools
add(a, b)- Add two numberssubtract(a, b)- Subtract numbersmultiply(a, b)- Multiply numbersdivide(a, b)- Divide numberspower(base, exponent)- Raise to powermodulo(a, b)- Get remaindersquare_root(n)- Calculate square rootevaluate_expression(expr)- Evaluate math expressioncalculate_percentage(value, pct)- Calculate percentageaverage(numbers)- Calculate average
Google OAuth Setup
Create OAuth 2.0 Client ID
Add redirect URI:
http://localhost:8000/auth/callbackCopy credentials to
.env:
GOOGLE_CLIENT_ID=your-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-secret
SERVER_BASE_URL=http://localhost:8000Claude Desktop Setup
Edit your Claude config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"calculator": {
"command": "python",
"args": ["path/to/calculator_server.py"]
}
}
}Production
Use HTTPS (required for Google OAuth)
Store credentials securely
Enable rate limiting
Set up monitoring
Resources
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A Model Context Protocol server for Wix AI tools
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseCqualityDmaintenanceA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.4ISC
- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.6235 npm15MIT
- -licenseNot gradedqualityNot gradedmaintenanceA calculator server that exposes mathematical functions as tools (add, subtract, multiply, divide, square, power, square root), enabling language models to perform calculations through Model Context Protocol (MCP).-
- AlicenseNot gradedqualityDmaintenanceA minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.1MIT