---
name: "mcp-server-python-fastmcp"
description: "Build high-performance MCP servers in Python using FastMCP decorator syntax."
metadata:
  author: "jlowin"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create fastmcp server python"
  - "decorate tool fastmcp"
  - "add mcp resource fastmcp"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# FastMCP Python Server Architecture

Develops Model Context Protocol servers using FastMCP: @mcp.tool() decorators, @mcp.resource() URI providers, @mcp.prompt() templates, and automated type inference.

## When to Invoke
Invoke this skill whenever you need to:
- create fastmcp server python
- decorate tool fastmcp
- add mcp resource fastmcp

## Execution SOP & Rules
1. Initialize server with mcp = FastMCP("Demo Server").
2. Decorate tool functions with @mcp.tool() and provide type annotations and docstrings.
3. Expose read-only contextual resources using @mcp.resource("resource://uri").
4. Run server with mcp.run() for stdio transport or configure SSE for network transport.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
