FastMCP Calculator Server
Provides Google OAuth authentication for the MCP server, allowing secure access to calculator endpoints using Google credentials.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FastMCP Calculator Servercalculate 15% of 200"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
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
- FlicenseCqualityDmaintenanceA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.4-
- 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.6156 npm16MIT
- -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.6 npm1MIT