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., "@Calculator MCP 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.
Calculator MCP Server
A simple calculator MCP (Model Context Protocol) server that exposes arithmetic operations as tools for AI assistants like Claude.
What is MCP?
Model Context Protocol (MCP) is an open protocol that enables AI assistants to interact with external tools and data sources. This server demonstrates how to build MCP tools using Python.
Features
Tool | Description | Example |
| Add two numbers |
|
| Subtract numbers |
|
| Multiply numbers |
|
| Divide with zero-check |
|
| Exponentiation |
|
| Remainder operation |
|
| Square root |
|
| Absolute value |
|
| Calculate percentage |
|
Installation
Prerequisites
Python 3.10 or higher
pip package manager
Install from source
Install dependencies only
Usage
With Claude Desktop
Add to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Restart Claude Desktop, then ask Claude to perform calculations!
With Cursor IDE
Add to your Cursor MCP configuration (~/.cursor/mcp.json):
Standalone Testing
The server communicates via stdio (standard input/output) using the MCP protocol.
Development
Setup development environment
Run tests
Project Structure
How It Works
This server uses FastMCP, a high-level API from the official MCP Python SDK:
Key concepts:
@mcp.tool()- Registers functions as MCP toolsType hints - Define parameter types for validation
Docstrings - Become tool descriptions visible to AI
mcp.run()- Starts the server with stdio transport
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Anthropic for the MCP protocol