FastMCP Calculator Server
Provides Google OAuth authentication for the MCP server, allowing secure access to calculator endpoints using Google credentials.
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Muhammad-Moin/MCP_SERVER'
If you have feedback or need assistance with the MCP directory API, please join our Discord server