mcp-sdk - Python MCP SDK 1.28.1 and FastMCP Reference
Reference for modelcontextprotocol/python-sdk version 1.28.1 to build and interact with MCP servers and clients using FastMCP in Python.
Tags
Updated: 2026-09-15Capabilities
What this skill does
- Register tools using FastMCP
- Register dynamic resource URIs
- Register prompt templates
- Configure server transport options
- Handle McpError client exceptions
- Establish stdio client sessions
- Debug servers with MCP Inspector
Inputs
- Python script files
- Transport configuration parameters
- Environment variables
Outputs
- Tool execution status and data
- Resource template contents
- Prompt template strings
- McpError message details
Requirements
- Python package mcp[cli] >= 1.28.1
- Node.js environment with npx
