Python mcp server generator

From tae0y/python-project-template · View interactive version

Python mcp server generator is an AI agent skill from the GitHub repository tae0y/python-project-template. Generate a complete MCP server project in Python with tools, resources, and proper configuration. Use when scaffolding a new MCP server from scratch.

How to use this skill

Skill file

Generate Python MCP Server

Create a complete Model Context Protocol (MCP) server in Python with the following specifications:

Requirements

  1. Project Structure: Create a new Python project with proper structure using uv
  2. Dependencies: Include mcp[cli] package with uv
  3. Transport Type: Choose between stdio (for local) or streamable-http (for remote)
  4. Tools: Create at least one useful tool with proper type hints
  5. Error Handling: Include comprehensive error handling and validation

Implementation Details

Project Setup

Server Configuration

Tool Implementation

Resource/Prompt Setup (Optional)

Code Quality

Example Tool Types to Consider

Configuration Options

Testing Guidance

Best Practices

Generate a complete, production-ready MCP server with type safety, proper error handling, and comprehensive documentation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.