MCP 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., "@MCP FastMCP Demo 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.
MCP FastMCP Demo Server
This project is a simple MCP (Model Context Protocol) server built using FastMCP.
It exposes:
A tool (
add)A dynamic resource (
greeting://{name})A prompt (
greet_user)
The server is designed to run over STDIO and can be inspected using the MCP Inspector UI.
π¦ Prerequisites
Make sure you have the following installed:
All Platforms
Python 3.9+
Node.js 18+
npm (comes with Node.js)
Check versions:
python --version
node --version
npm --versionπ Python Setup
1οΈβ£ Create a virtual environment (recommended)
Linux / macOS
python3 -m venv .venv
source .venv/bin/activateWindows (PowerShell)
python -m venv .venv
.venv\Scripts\Activate.ps12οΈβ£ Install dependencies
pip install -r requirements.txt
(If using uv, make sure itβs already configured.)βΆοΈ Running the MCP Server with Inspector The MCP Inspector will start the server and connect to it automatically using STDIO.
Linux / macOS / Windows
npx @modelcontextprotocol/inspector python server.pyThis will: Launch the Inspector UI Spawn python server.py and Connect via STDIO automatically.
π Inspector UI opens at:
http://localhost:5173 π§ͺ Verifying the Connection.
Once connected in the Inspector UI:
Tools
add(a: int, b: int) β int
Resources
greeting://{name}
Prompts
greet_user
This server cannot be deployed
Maintenance
Related MCP Connectors
A simple MCP server built with FastMCP and python
A very simple remote MCP server that greets you, with a custom icon.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA minimal demonstration MCP server that provides basic mathematical addition and greeting functionality, serving as a template for building and deploying FastMCP servers.-
- FlicenseNot gradedqualityDmaintenanceA minimal demonstration MCP server built with FastMCP that exposes a simple greeting tool, showcasing basic server setup and remote deployment capabilities.-
- FlicenseNot gradedqualityDmaintenanceA demonstration MCP server built with FastMCP that provides basic mathematical operations (addition and multiplication) and personalized greeting generation tools with multiple style options.-
- FlicenseAqualityDmaintenanceA simple MCP server built with Python's FastMCP that exposes a calculator tool for addition operations and a dynamic greeting resource for personalized messages.1-