Demo MCP 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., "@Demo MCP Server roll 3 dice for my board game"
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.
Basic Setup
Install uv
Create a project folder named fastmcp-demo-server
Open the folder in VS Code
Open terminal
Execute the command: uv init
uv add fastmcp
Fastmcp version
Create a basic server
Test the server -uv run fastmcp dev main.py (MCP Inspector CMD)
Run the server -uv run fastmcp run main.py
Add the server to claude desktop - uv run fastmcp install claude-desktop main.py (For local server)
Use the same steps from above to create a Remote MCP Server and follow the below steps and for Local MCP Server just follow till the upper step.
Test the server using MCP Inspector | This opens in browser just like FastAPI's page
Create a GitHub repo
git init
git add
git commit -m "Initial commit: Simple MCP Server"
git remote add origin https://github.com/YourUsername/simple-mcp-server.git
git push -u origin main
Create an account on FastMCP Cloud
Deploy on FastMCP Cloud
import random
from fastmcp import FastMCP
# Create a FastMCP server instance
mcp = FastMCP(name="Demo Server")
@mcp.tool
def roll_dice(n_dice: int=1) -> list[int]:
"""Roll n_dice 6 sided dice and return the results."""
return [random.randint(1,6) for _ in range(n_dice)]
@mcp.toll
def add_numbers(a: float, b: float) -> float:
"""Add two numbers together."""
return a + b
if __name___ == "__main__":
mcp.run()Available Tools
3 toolsadd_expenseC
Add a new expense entry to the database.
Inputs: date (required), amount (required), category (required), subcategory, +1 more.
list_expensesC
List expense entries within an inclusive date range.
Inputs: start_date (required), end_date (required).
summarizeB
Summarize expenses by category within an inclusive date range.
Inputs: start_date (required), end_date (required), category.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: add_expense creates new entries, list_expenses retrieves entries with filtering, and summarize provides aggregated analysis. There is no overlap in functionality, making tool selection straightforward for an agent.
All tools follow a consistent verb_noun pattern (add_expense, list_expenses, summarize), with 'summarize' being a verb-only form that still fits the action-oriented naming style. The naming is predictable and readable throughout.
With 3 tools, this server is well-scoped for expense management, covering core operations: creation, retrieval, and summarization. Each tool earns its place without feeling thin or excessive for the domain.
The tools cover basic expense tracking (create, list, summarize), but there are notable gaps in lifecycle coverage, such as updating or deleting expenses. This could limit agents in handling modifications or corrections, though core workflows are supported.
Maintenance
Related MCP Connectors
A simple MCP server built with FastMCP and python
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA basic educational MCP server that provides simple tools for mathematical calculations, text manipulation, and time retrieval. Designed for learning MCP implementation patterns and development purposes.-
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides basic calculator functionality for performing mathematical operations. Built with FastMCP and demonstrates fundamental MCP server implementation patterns.-
- AlicenseNot gradedqualityDmaintenanceA minimal FastMCP server implementation that provides basic mathematical and greeting tools. Enables users to perform simple operations like adding numbers and greeting people by name through a lightweight MCP interface.MIT
- FlicenseNot gradedqualityDmaintenanceA simple educational MCP server providing basic math operations, string manipulation, and greeting functionality. Demonstrates how to implement MCP tools for learning purposes.-