mcp-server

Create Python MCP servers with decorators and FastAPI/Starlette transports.

Updated Dec 28, 2025
One-click install
npx skills add https://github.com/shuremali02/The-Evolution-of-Todo---Mastering-Spec-Driven-Development---Cloud-Native-AI --skill mcp-server-shuremali02
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-server
Source: https://github.com/shuremali02/The-Evolution-of-Todo---Mastering-Spec-Driven-Development---Cloud-Native-AI/tree/main/.claude/skills/mcp-server
Command: npx skills add https://github.com/shuremali02/The-Evolution-of-Todo---Mastering-Spec-Driven-Development---Cloud-Native-AI --skill mcp-server-shuremali02

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MCP servers are often complex to assemble, requiring boilerplate for tooling, API integration, and lifecycle management across FastAPI/Starlette apps. This Skill provides a ready-to-use pattern to assemble and deploy production-grade MCP servers with consistent tooling, resources, and prompts.

Core Features & Use Cases

  • Declarative MCP server definitions using decorators (@mcp.tool, @mcp.resource, @mcp.prompt)
  • Ready-to-mount integrations for FastAPI/Starlette and transports (stdio, SSE, streamable-http)
  • Practical templates and references to accelerate development and ensure best practices

Quick Start

Create a minimal MCP server with a few tools and resources, then expose it via streamable-http for production use.

Frequently Asked Questions about mcp-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an MCP server with FastAPI and Python?

You can build an MCP server with FastAPI by using the Python SDK's declarative decorators like @mcp.tool and @mcp.resource. The Skill provides ready-to-mount integrations for FastAPI/Starlette to quickly assemble production-grade endpoints.

What is the best way to expose an MCP server over streamable-http or SSE?

The best way to expose an MCP server over streamable-http or SSE is by applying the provided patterns across multiple transports. The Skill includes templates and references to configure these transports for production-ready endpoints.

Can I use FastMCP decorators to define tools, resources, and prompts together?

Yes, you can use FastMCP decorators to define tools, resources, and prompts together. The Skill enforces declarative definitions using @mcp.tool, @mcp.resource, and @mcp.prompt to ensure consistent tooling and reduce boilerplate.

Does this approach handle secure lifecycle management and error handling for MCP servers?

Yes, this approach handles secure lifecycle management and error handling for MCP servers. The Skill ensures secure lifecycle management and proper error handling to deploy production-grade MCP servers without assembly boilerplate.

Why use SQLModel when creating an MCP server?

Using SQLModel when creating an MCP server helps structure data interactions within your Python application. The Skill leverages SQLModel alongside FastAPI to provide a ready-to-use pattern for assembling production-grade endpoints.