Mcp Fastapi Tutorial — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Fastapi Tutorial (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A hands-on implementation of a Model Context Protocol (MCP) server built with Python using the official MCP SDK and FastAPI/Starlette.
Model Context Protocol (MCP) is an open standard that enables AI assistants (like Claude, Kiro, Cursor) to connect with external tools, data sources, and APIs through a unified interface — similar to how USB-C standardized device connectivity.
┌─────────────┐ ┌─────────────┐ ┌──────────────┐
│ AI Client │ ←───→ │ MCP Server │ ←───→ │ Your Tools/ │
│(Claude/Kiro)│ JSON │ (This Repo)│ │ Data/APIs │
└─────────────┘ └─────────────┘ └──────────────┘greet — Returns a greeting for a given nameadd_numbers — Adds two numbers and returns the resultget_current_time — Returns the current date and timegit clone https://github.com/MuhammadIshaqSkd/mcp-fastapi-tutorial.git
cd mcp-fastapi-tutorial
# Create virtual environment
python -m venv venv
# Activate (Windows)
.\venv\Scripts\activate
# Activate (macOS/Linux)
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtpython server.pyServer starts on http://127.0.0.1:8080 with SSE endpoint at /sse.
Open a second terminal (keep the server running):
python test_client.pyExpected output:
==================================================
MCP Client - Connecting to server...
==================================================
✅ Connection successful!
📋 Available Tools:
------------------------------
🔧 greet: Greet someone by name and return a greeting message.
🔧 add_numbers: Return the sum of two numbers.
🔧 get_current_time: Return the current date and time.
🎯 Calling 'greet' tool...
Result: Assalam-o-Alaikum, Mishaq! MCP Server se aapko salam!
🎯 Calling 'add_numbers' tool...
Result: 15 + 27 = 42
🎯 Calling 'get_current_time' tool...
Result: Current time: 2026-06-22 18:15:09
==================================================
🎉 All tools called successfully!
==================================================mcp-fastapi-tutorial/
├── server.py # MCP Server — registers and exposes tools via SSE
├── test_client.py # MCP Client — connects to server, lists & calls tools
├── requirements.txt # Python dependencies
└── README.md@mcp.tool() decorator/sse endpointlist_tools() to discover available toolscall_tool("tool_name", {args}) to execute a tool| Concept | Description |
|---|---|
| Tool Registration | Using @mcp.tool() to expose Python functions as MCP tools |
| SSE Transport | HTTP-based bidirectional communication via Server-Sent Events |
| Client Session | Initializing and managing MCP client-server sessions |
| Tool Discovery | Clients dynamically discover available tools at runtime |
| Tool Execution | Remote procedure call pattern over the MCP protocol |
MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.