Cover image
Try Now
2025-04-03

Una plantilla de CookieCutter para crear servidores MCP (protocolo de control de modelos)

3 years

Works with Finder

1

Github Watches

1

Github Forks

1

Github Stars

MCP Server Cookie Cutter Template

A cookie cutter template for creating new MCP (Machine Control Protocol) servers. This template generates a fully functional MCP server with unified transport handling (stdio and SSE) and MCP Inspector compatibility, demonstrated through a simple echo service.

Features

  • Unified transport handling (stdio and SSE in a single implementation)
  • Full MCP Inspector compatibility
  • Example echo tool implementation
  • Proper absolute imports throughout
  • Development environment setup
  • Comprehensive documentation templates

Prerequisites

  1. Python 3.11 or higher

    python --version  # Should be 3.11 or higher
    
  2. uv (Fast Python package installer)

    # Install uv if you don't have it
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  3. Cookie Cutter

    uv pip install cookiecutter
    

Creating a New MCP Server

You can create a new MCP server either directly from GitHub or from a local copy of this template.

Option 1: Directly from GitHub

cookiecutter gh:codeium/mcp-cookie-cutter

Option 2: From Local Copy

  1. Clone this template:

    git clone https://github.com/codeium/mcp-cookie-cutter
    
  2. Create a project using the local template:

    cookiecutter path/to/mcp-cookie-cutter
    

Template Configuration

You'll be asked for:

  • project_name: Human-readable name (e.g., "My MCP Server")
  • project_slug: Python package name (e.g., "my_mcp_server")
  • description: Short description of your project
  • author_name: Your name
  • author_email: Your email
  • server_port: Port for SSE server (default: 3001)

Generated Project Structure

my_mcp_server/              # Your project directory
├── my_mcp_server/          # Python package directory
│   ├── __init__.py
│   ├── client/             # Client implementations
│   │   ├── __init__.py
│   │   └── app.py         # Test client implementation
│   ├── server/            # Server implementation
│   │   ├── __init__.py
│   │   └── app.py        # Unified MCP server implementation
│   └── tools/             # Tool implementations
│       ├── __init__.py
│       └── echo.py       # Example tool implementation
├── pyproject.toml         # Project configuration
├── README.md             # Project documentation template
└── DEVELOPMENT.md        # Development guide template

Next Steps

Once your project is generated:

  1. Review and customize the README.md template
  2. Follow DEVELOPMENT.md for:
    • Setting up the development environment
    • Installing dependencies
    • Running the server
    • Testing with the example client
    • Using MCP Inspector
  3. Start adding your own tools in the tools/ directory

License

This template is licensed under the MIT License - see the LICENSE file for details.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

    Reviews

    3 (1)
    Avatar
    user_0uTbPXCk
    2025-04-15

    Brewfather MCP has become an essential tool in my brewing process. The seamless integration and user-friendly interface offered by Renanvieira's creation are exceptional. I particularly appreciate the detailed logs and precise calculations, which ensure that my brews turn out perfectly every time. Highly recommend checking it out via the provided link!