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.
Make sure you have the following installed:
- Python 3.9+
- Node.js 18+
- npm (comes with Node.js)
Check versions:
python --version
node --version
npm --versionLinux / macOS
python3 -m venv .venv
source .venv/bin/activateWindows (PowerShell)
python -m venv .venv
.venv\Scripts\Activate.ps1pip install -r requirements.txt
(If using uv, make sure it’s already configured.)Linux / macOS / Windows
npx @modelcontextprotocol/inspector python server.pyThis will: Launch the Inspector UI Spawn python server.py and Connect via STDIO automatically.
http://localhost:5173 🧪 Verifying the Connection.
Tools
- add(a: int, b: int) → int
- Resources
- greeting://{name}
- Prompts
- greet_user