FastMCP Demo Server
Click on "Deploy 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 Demo ServerWhat is 12 times 8?"
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 Demo Server
A beginner-friendly Model Context Protocol (MCP) server built with FastMCP. This project demonstrates how to create custom MCP tools and connect them to AI clients such as Claude Desktop.
š Features
This server currently provides two simple MCP tools:
addā Adds two numbersmultiplyā Multiplies two numbers
The project is designed as a simple starting point for learning how MCP servers work.
Related MCP server: Calculator MCP Server
š§ How It Works
The basic architecture is:
User
ā
AI Client (Claude Desktop)
ā
MCP Protocol
ā
FastMCP Server
ā
Custom Tools
ā
Python FunctionsFor example, when Claude needs to calculate 10 + 20, it can call the add MCP tool:
Claude
ā
add(10, 20)
ā
FastMCP Server
ā
Python function
ā
30š Project Structure
fastmcp-demo-server/
ā
āāā main.py
āāā README.md
āāā LICENSE
āāā pyproject.toml
āāā uv.lock
āāā .python-version
āāā .gitignoreš ļø Tools
1. add
Adds two numbers.
add(a, b)Example:
add(10, 20)
ā 302. multiply
Multiplies two numbers.
multiply(a, b)Example:
multiply(10, 20)
ā 200āļø Requirements
Python
FastMCP
An MCP-compatible client such as Claude Desktop
š¦ Installation
Clone the repository:
git clone https://github.com/safayet9009/fastmcp-demo-server.gitGo to the project directory:
cd fastmcp-demo-serverInstall the project dependencies:
uv syncā¶ļø Run the Server
Run the MCP server with:
uv run fastmcp run main.py:mcpThe server uses stdio transport, so it can communicate directly with MCP clients such as Claude Desktop.
š Test with FastMCP Inspector
You can also inspect and test the server using FastMCP's development tools:
uv run fastmcp dev inspector main.py:mcpThis allows you to explore the available MCP tools and test them interactively.
š¤ Connect with Claude Desktop
Add the following configuration to your Claude Desktop MCP configuration:
{
"mcpServers": {
"Demo Server": {
"command": "/home/shafayet/.local/bin/uv",
"args": [
"run",
"--directory",
"/home/shafayet/Desktop/fastmcp-demo-server",
"fastmcp",
"run",
"main.py:mcp"
],
"env": {},
"transport": "stdio"
}
}
}Note: Update the paths according to your own system.
After adding the configuration, restart Claude Desktop.
Claude should then be able to discover the available tools:
add
multiplyYou can test it by asking Claude:
Use the add tool to calculate 25 + 75.or:
Use the multiply tool to calculate 12 Ć 8.šÆ Learning Goals
This project helps demonstrate:
What an MCP server is
How FastMCP works
How to create MCP tools
How MCP clients discover and call tools
How Python functions can become MCP tools
How to connect a custom MCP server with Claude Desktop
How
stdiotransport works
š® Future Improvements
Possible future additions include:
Weather tool
Calculator tool
Web search tool
Database tools
File management tools
API integration
Custom AI-powered tools
Resources and prompts
Authentication
More advanced MCP workflows
š License
This project is licensed under the MIT License. See the LICENSE file for details.
šØāš» Author
Safayet Hossain
GitHub: @safayet9009
ā If you find this project useful for learning MCP, consider giving it a star!
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-callable calculators and engineering models with real formulas. No hallucinated math.
65 utility tools for AI agents: calculators, converters, live data, crypto ā paid per call via x402.
A Model Context Protocol server for Wix AI tools
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables basic arithmetic operations (addition, subtraction, multiplication, division) with 64-bit precision and matrix multiplication capabilities. Provides mathematical computation tools for AI assistants through the Model Context Protocol.51MIT
- FlicenseNot gradedqualityDmaintenanceProvides basic arithmetic operations (add, multiply, divide) for AI assistants through the Model Context Protocol.-
- AlicenseNot gradedqualityCmaintenanceEnables users to perform mathematical calculations through natural language by integrating an AI model with calculator tools via the Model Context Protocol.32 npmMIT
- AlicenseNot gradedqualityCmaintenanceExposes add, subtract, multiply, and divide tools for performing arithmetic operations over stdio via the Model Context Protocol.20 npmMIT