Mirror of https://github.com/modelcontextprotocol/create-python-server — Create a Python MCP server
  • Python 67.2%
  • Jinja 32.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Soria Parra e84ea45f8f
v1.0.3
2024-11-21 12:00:02 +00:00
.github/workflows fix 2024-11-18 21:28:23 +00:00
src/create_mcp_server correctly retrieve the script name 2024-11-21 11:59:52 +00:00
.gitignore simple python project to create an mcp server from the included template 2024-11-18 15:05:23 +00:00
.python-version fix 2024-11-18 21:28:23 +00:00
CODE_OF_CONDUCT.md fix 2024-11-18 21:28:23 +00:00
LICENSE Create LICENSE 2024-11-18 22:22:49 +00:00
pyproject.toml v1.0.3 2024-11-21 12:00:02 +00:00
README.md fix 2024-11-18 21:28:23 +00:00
SECURITY.md Update SECURITY.md 2024-11-19 16:50:56 +00:00
uv.lock correctly retrieve the script name 2024-11-21 11:59:52 +00:00

MCP Create Server

PyPI License: MIT

Create Model Context Protocol (MCP) server projects with no build configuration.

Quick Overview

# Using uvx (recommended)
uvx create-mcp-server

# Or using pip
pip install create-mcp-server
create-mcp-server

You don't need to install or configure any dependencies manually. The tool will set up everything you need to create an MCP server.

Creating a Server

You'll need to have UV >= 0.4.10 installed on your machine.

To create a new server, run either of these commands:

uvx create-mcp-server

Using pip

pip install create-mcp-server
create-mcp-server

It will walk you through creating a new MCP server project. When complete, you'll have a new directory with this structure:

my-server/
├── README.md
├── pyproject.toml
└── src/
    └── my_server/
        ├── __init__.py
        ├── __main__.py
        └── server.py

No configuration or complicated folder structures, only the files you need to run your server.

Once installation is done, you can start the server:

cd my-server
uv sync --dev --all-extras
uv run my-server

Features

  • Simple command-line interface for creating new projects
  • Auto-configures Claude Desktop app integration when available
  • Uses uvx for fast, reliable package management and project creation
  • Sets up basic MCP server structure
  • Uses the Model Context Protocol Python SDK for the server project

Philosophy

  • Zero Configuration: No need to manually set up project structure or dependencies.
  • Best Practices: Follows Python packaging standards and MCP server patterns.
  • Batteries Included: Comes with everything needed to start building an MCP server.

License

Create MCP Server is open source software licensed as MIT.