A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A comprehensive Claude Code skill for building production-ready MCP servers using FastMCP. Includes reference guides, ru
A comprehensive Claude Code skill for building production-ready MCP (Model Context Protocol) servers using the FastMCP Python framework. This skill provides complete reference implementations, working examples, and proven patterns for creating robust MCP servers with tools, resources, prompts, OAuth authentication, and comprehensive testing.
FastMCP is the official high-level Python framework for building MCP servers. It's simpler, faster to develop with, and more maintainable than the low-level MCP SDK. This skill focuses exclusively on FastMCP-based development.
This skill contains everything you need to build production-ready FastMCP servers:
reference/)Six comprehensive guides covering all aspects of FastMCP development:
examples/)Runnable examples from minimal to complete servers:
reference-project/)A full production implementation demonstrating best practices:
main.py (with OAuth) + main_noauth.py (local testing)common.py for component registrationUse this skill when you need to:
Don't use this skill for:
Register this marketplace in Claude Code:
/plugin marketplace add husniadil/fastmcp-builder
Browse and install:
Or install directly:
/plugin install fastmcp-builder@fastmcp-builder-skill
Clone or download this repository to your Claude Code skills directory:
cd ~/.claude/skills
git clone https://github.com/husniadil/fastmcp-builder.git
Once installed, simply reference the skill in your request:
Use the fastmcp-builder skill to create a new MCP server with OAuth authentication
Create a minimal FastMCP server:
from fastmcp import FastMCP
mcp = FastMCP("my-server")
@mcp.tool()
def greet(name: str) -> str:
"""Greet someone by name"""
return f"Hello, {name}!"
if __name__ == "__main__":
mcp.run()
Navigate to the skill directory and run the examples:
# Navigate to skill directory
cd ~/.claude/plugins/marketplaces/fastmcp-builder-skill
# Try the minimal server
python examples/minimal_server.py
# Try the complete server structure
python examples/complete_server_structure.py
# Run with HTTP mode
python examples/complete_server_structure.py --http
reference/fastmcp_overview.mdreference/project_structure.mdmkdir my-mcp-server && cd my-mcp-server
mkdir -p app/tools app/resources app/prompts tests
uv add fastmcp==2.13.0.1 python-dotenv==1.2.1
uv add --optional test pytest==8.4.2 pytest-asyncio==1.2.0 pytest-mock==3.15.1 httpx==0.28.1
app/config.py) - Environment variables, settingsapp/tools/) - Follow patterns from reference/tool_patterns.mdapp/resources/) - Follow patterns from reference/resource_patterns.mdapp/prompts/) - Reusable prompt templatesapp/common.py) - DRY principle for registering componentsmain_noauth.py (local) + main.py (OAuth)Follow reference/oauth_integration.md for:
Follow reference/testing_guide.md for:
tests/conftest.py)uv run pytest tests/ -vRecommended structure for FastMCP projects:
my-mcp-server/
├── app/
│ ├── __init__.py
│ ├── config.py # Configuration & environment variables
│ ├── common.py # Shared component registration (DRY)
│ ├── main.py # Server with OAuth
│ ├── main_noauth.py # Server without OAuth (local testing)
│ ├── tools/ # Tool implementations
│ │ ├── __init__.py
│ │ ├── my_tool.py
│ │ └── ...
│ ├── resources/ # Resource implementations
│ │ ├── __init__.py
│ │ ├── static.py
│ │ └── ...
│ └── prompts/ # Prompt templates
│ ├── __init__.py
│ └── explain.py
├── tests/
│ ├── __init__.py
│ ├── conftest.py # Test fixtures
│ ├── test_tools.py
│ ├── test_resources.py
│ └── test_integration.py
├── pyproject.toml # Project dependencies
├── .env.example # Environment variable template
├── .env # Actual environment variables (gitignored)
└── README.md
This skill includes 6 proven tool patterns:
See reference/tool_patterns.md for complete examples.
This skill includes 4 resource types:
user://{user_id})docs://{path*})See reference/resource_patterns.md for complete examples.
Complete guide for adding Google OAuth authentication:
See reference/oauth_integration.md for the complete guide.
Comprehensive testing guide using FastMCP Client:
See reference/testing_guide.md for complete examples.
common.py pattern (DRY principle)main.py (OAuth) + main_noauth.py (local)app/tools/my_tool.pyapp/common.py registrationtests/test_tools.pyuv run pytest tests/test_tools.py -vreference/oauth_integration.mdapp/config.py with OAuth settingsapp/main.py to use GoogleProvidermain_noauth.py for faster local testingawait ctx.debug(...)common.pyThe reference-project/ directory contains a complete production implementation:
mcp-auth-demoUse this as a reference when building your own servers.
For testing:
This is a Claude Code skill. To contribute:
MIT License - Copyright 2025 Husni Adil Makmur
This skill is provided as-is for use with Claude Code. See LICENSE file for details.
The FastMCP framework itself is licensed separately - see the FastMCP repository for details.
Happy building!
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
AI image generation skill for Claude Code -- Creative Director powered by Gemini
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
Universal SEO skill for Claude Code. 25 sub-skills + 18 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, bac