FastMCP
Installation
SKILL.md
FastMCP Skill
Product Summary
FastMCP is the standard framework for building Model Context Protocol (MCP) servers, clients, and interactive applications in Python. It handles schema generation, validation, transport, authentication, and protocol compatibility automatically. Use FastMCP to expose Python functions as MCP tools, resources, and prompts; connect to remote or local MCP servers; and deploy MCP services over HTTP or stdio.
Key files and commands:
- Server definition:
FastMCP("ServerName")class with@mcp.tool,@mcp.resource,@mcp.promptdecorators - Running servers:
mcp.run()method orfastmcp run server.pyCLI - Client connections:
Client(server_url)orClient(Path("server.py")) - CLI:
fastmcp list,fastmcp call,fastmcp run,fastmcp inspect - Configuration:
fastmcp.jsonor MCP config files withmcpServerskey - Primary docs: https://gofastmcp.com