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.
Related MCP Servers
- FlicenseCqualityDmaintenanceA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.Last updated4
- 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.Last updated622816MIT
- -license-quality-maintenanceA 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).Last updated
- Alicense-qualityDmaintenanceA minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.Last updated91MIT
Related MCP Connectors
MCP (Model Context Protocol) server for Appwrite
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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