MCP Math Calculator 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., "@MCP Math Calculator Serveradd 15 and 27"
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.
Math Operations MCP Server
A simple Model Context Protocol (MCP) server built with FastMCP 2.0 that provides basic math operations.
Features
This server provides two tools:
add: Add two numbers together
multiply: Multiply two numbers together
Related MCP server: Calculator MCP Server
Local Development
Install dependencies:
pip install -r requirements.txtRun the server:
python main.pyDeployment on Vercel
Install Vercel CLI:
npm i -g vercelDeploy to Vercel:
vercelFollow the prompts to configure your deployment.
Usage
Once deployed, the MCP server will be available at your Vercel URL. The server exposes two tools:
Add Tool
Function:
add(a: float, b: float) -> floatDescription: Adds two numbers together
Parameters:
a: First number to addb: Second number to add
Returns: The sum of a and b
Multiply Tool
Function:
multiply(a: float, b: float) -> floatDescription: Multiplies two numbers together
Parameters:
a: First number to multiplyb: Second number to multiply
Returns: The product of a and b
Project Structure
MCPServer/
├── main.py # Main MCP server implementation
├── requirements.txt # Python dependencies
├── vercel.json # Vercel deployment configuration
├── pyproject.toml # Project metadata
└── README.md # This fileThis server cannot be installed
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
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/R-Yash/mcpserver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server