Skip to main content

CLI tool to bootstrap MCP (Model Context Protocol) server projects

Project description

Create MCP App

๐Ÿš€ The easiest way to create MCP (Model Context Protocol) servers

Just like create-next-app for React, but for MCP servers! Generate production-ready MCP servers with FastMCP, Docker, tests, and CI/CD in seconds.

โœจ Quick Start

# Install globally
pip install create-mcp-app

# Create your MCP server
create-mcp-app my-awesome-mcp

# That's it! ๐ŸŽ‰

๐ŸŽฏ What You Get

  • โœ… FastMCP Framework - Modern, fast MCP server
  • โœ… 5 Example Tools - Echo, calculator, HTTP client, system info, etc.
  • โœ… Docker Ready - Dockerfile and deployment configs included
  • โœ… Type Hints - Full TypeScript-style type safety
  • โœ… Error Handling - Production-ready error handling
  • โœ… Test Suite - Pytest tests included
  • โœ… CI/CD Pipeline - GitHub Actions workflow
  • โœ… Professional Docs - Complete README and documentation

๐Ÿš€ Usage

Interactive Mode

create-mcp-app my-project

Quick Mode

create-mcp-app my-project --no-install --no-git

๐Ÿ“ฆ Generated Project Structure

my-project/
โ”œโ”€โ”€ my_project/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ””โ”€โ”€ app.py              # Main MCP server with example tools
โ”œโ”€โ”€ tests/                  # Test suite
โ”œโ”€โ”€ .github/workflows/      # CI/CD pipeline
โ”œโ”€โ”€ Dockerfile             # Container configuration
โ”œโ”€โ”€ requirements.txt       # Dependencies
โ”œโ”€โ”€ setup.py              # Package configuration
โ”œโ”€โ”€ README.md             # Project documentation
โ””โ”€โ”€ .gitignore           # Git ignore rules

๐Ÿ› ๏ธ Example Tools Included

Every generated project includes these example tools:

  1. echo_message - Echo messages with timestamps
  2. calculate - Safe mathematical expression evaluation
  3. fetch_url - HTTP client for external APIs
  4. list_environment_variables - System environment access
  5. get_server_info - Server metadata and health

Perfect starting points for building your own tools!

๐Ÿƒโ€โ™‚๏ธ Run Your MCP Server

cd my-project

# Install dependencies
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt
pip install -e .

# Run with stdio (for Claude Desktop, etc.)
my_project-mcp --transport stdio

# Run with HTTP (for web integration)
my_project-mcp --transport streamable-http --port 8080

# Run with Docker
docker build -t my-project .
docker run -p 8080:8080 my-project

๐ŸŒ Integration Examples

Claude Desktop

Add to your Claude Desktop config:

{
  "mcpServers": {
    "my-project": {
      "command": "/path/to/my_project-mcp",
      "args": ["--transport", "stdio"]
    }
  }
}

Web Integration

my_project-mcp --transport streamable-http --port 8080
# Server available at http://localhost:8080/mcp

๐ŸŽจ Customization

The generated projects are fully customizable:

  1. Add new tools - Just add @mcp.tool() decorated functions
  2. API integration - Use the included HTTP client examples
  3. Database access - Add your database libraries
  4. Custom logic - Modify the example tools for your needs

๐Ÿค Contributing

We welcome contributions! Here's how:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if needed
  5. Submit a pull request

๐Ÿ“„ License

MIT License - see LICENSE file for details.


Made with โค๏ธ for the MCP community

Get started in seconds, deploy in minutes!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

create_mcp_app-1.0.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

create_mcp_app-1.0.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file create_mcp_app-1.0.0.tar.gz.

File metadata

  • Download URL: create_mcp_app-1.0.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for create_mcp_app-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a0e7df9f7ac848c265f65186e3639c25df879d2ddf1ed337ad8bde185812a483
MD5 10f08bb03907cf5a995836ea7cdfe649
BLAKE2b-256 30f3bed726ac086ddb557347c88ce4c01a0e1aab9b0195ca346c7d4e78321d9c

See more details on using hashes here.

File details

Details for the file create_mcp_app-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: create_mcp_app-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for create_mcp_app-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d844a460962329f33f08ed13412c4d5893b769cf3b328ec271692024e4c4e025
MD5 47a4af9bc7367a06bf855c7fda445e29
BLAKE2b-256 208f92c9424985712454f3df5e77f7cba4815e99dfe25d2d50da8d8904db0186

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page