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
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A 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.