Simple Calculator MCP Server
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., "@Simple Calculator MCP Serveradd 15 and 25"
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.
Simple Calculator MCP Server
A beginner-friendly MCP (Model Context Protocol) server built with FastMCP.
This project demonstrates how to create, run, and deploy a simple MCP server with tools and resources using FastMCP.
Features
Tools
add — Add two numbers together.
random_number — Generate a random number within a specified range.
Resources
info://server — Returns server metadata and available tools.
Related MCP server: Calculator MCP Server
Tech Stack
Python 3.14+
FastMCP 3.4.0
Installation
Install dependencies:
uv syncor
uv add fastmcpRun Locally
Start the MCP server:
uv run python main.pyThe server will run on:
http://localhost:8000MCP Inspector
Test the server using the FastMCP Inspector:
uv run fastmcp dev inspector main.pyExample Tools
Add Numbers
Input:
{
"a": 10,
"b": 20
}Output:
30Random Number
Input:
{
"min_value": 1,
"max_value": 100
}Output:
57Resource Example
Resource URI:
info://serverExample Response:
{
"name": "Simple Calculator Server",
"version": "1.0.0",
"description": "A basic MCP server with math tools",
"tools": ["add", "random_number"],
"author": "Neel Contractor"
}Deploy to FastMCP Cloud
This project was created as a learning exercise for deploying MCP servers to FastMCP Cloud.
After configuring your FastMCP account, deploy the server using the FastMCP deployment workflow.
Project Structure
.
├── main.py
├── pyproject.toml
├── uv.lock
└── README.mdThis 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
- FlicenseBqualityDmaintenanceA simple demonstration MCP server that provides basic utility tools including dice rolling and number addition functionality. This server serves as a tutorial example for setting up both local and remote MCP servers using FastMCP.3
- Flicense-qualityDmaintenanceA simple MCP server that provides basic calculator functionality for performing mathematical operations. Built with FastMCP and demonstrates fundamental MCP server implementation patterns.
- FlicenseAqualityDmaintenanceA basic MCP server built with the FastMCP framework that provides fundamental mathematical operations like addition, subtraction, multiplication, and division. It serves as a demonstration for integrating math-based tools into MCP-compatible environments like Cursor IDE.4
- Flicense-qualityDmaintenanceA simple MCP server that provides a calculator tool for basic arithmetic operations.178
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
A very simple remote MCP server that greets you, with a custom icon.
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/NeelContractor/test-simple-mcp-server-deploy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server