Copier Mcp Py
БесплатноНе проверенA Copier template for quickly scaffolding Python-based Model Context Protocol (MCP) servers.
Описание
A Copier template for quickly scaffolding Python-based Model Context Protocol (MCP) servers.
README
A Copier template for quickly scaffolding Python-based Model Context Protocol (MCP) servers.
This template provides the following architecture out of the box:
core/– Pure domain logic (business functions, data models)mcp/– MCP server adapter (FastMCP-based Tools / Resources / Prompts)cli/– Typer-based CLI for humans and scripts- Complete Python package structure with
uv+mcp[cli]+pyproject.toml
Use this when you want to generate multiple MCP servers from a single template while keeping the project structure and behavior consistent.
Features
- Built on python-sdk
mcp[cli]- Leverages the official MCP Python SDK, FastMCP, and CLI tools as-is.
- 3-layer architecture: core / cli / mcp
- Clearly separates domain logic (core), MCP adapter (mcp), and CLI.
- uv-friendly project structure
- Includes
uv init --libstylesrc/layout +pyproject.toml+[project.scripts].
- Includes
- Consistent naming conventions
- Enter just
project_nameand it automatically generates:- Distribution name:
project-slug(e.g.,knowledge-ingester) - Package name:
project_slug(e.g.,knowledge_ingester) - MCP command:
mcp-project-slug(e.g.,mcp-knowledge-ingester)
- Distribution name:
- Enter just
Prerequisites
Example:
pip install copier
pip install uv
Or using uv itself:
uv tool install copier
Creating a New MCP Server from Template
# 1) Generate project from template
copier copy gh:crlotwhite/copier-mcp-py knowledge-ingester
# 2) Navigate to the generated project
cd knowledge-ingester
# 3) Install dependencies and create virtual environment
uv sync
# 4) Run MCP server
uv run mcp-knowledge-ingester
# 5) Test CLI
uv run knowledge-ingester ingest-pdf ./doc.pdf --project demo
The examples above assume
project_name = "Knowledge Ingester"was entered.
Copier Prompt Variables
When running the template, you will be prompted for the following:
| Variable Name | Description | Example Value |
|---|---|---|
project_name |
Project display name | Knowledge Ingester |
python_version |
Minimum Python version | 3.11 |
The following values are automatically derived and not prompted:
project_slug:project_name→ lowercase + spaces replaced with-- Example:
"Knowledge Ingester"→"knowledge-ingester"
package_name:project_slugwith-replaced by_- Example:
"knowledge-ingester"→"knowledge_ingester"
mcp_command:mcp-{{ project_slug }}cli_command:{{ project_slug }}description:"{{ project_name }} MCP server built with python-sdk mcp[cli]"
Generated Project Structure
For example, if you enter project_name = "Knowledge Ingester",
the generated project structure will look approximately like this:
knowledge-ingester/
├─ pyproject.toml
├─ README.md
├─ .python-version
├─ .gitignore
└─ src/
└─ knowledge_ingester/
├─ __init__.py
├─ core/
│ └─ __init__.py
├─ mcp/
│ ├─ __init__.py
│ ├─ server.py
│ ├─ tools/
│ │ ├─ __init__.py
│ │ └─ example.py
│ ├─ resources/
│ │ ├─ __init__.py
│ │ └─ example.py
│ └─ prompts/
│ ├─ __init__.py
│ └─ example.py
└─ cli/
├─ __init__.py
└─ main.py
License
Choose your preferred license and add a LICENSE file.
(e.g., MIT, Apache-2.0, etc.)
References
- Model Context Protocol: https://github.com/modelcontextprotocol
- MCP Python SDK (
mcp): https://github.com/modelcontextprotocol/python-sdk - Copier documentation: https://copier.readthedocs.io/
- uv documentation: https://github.com/astral-sh/uv
Установка Copier Mcp Py
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/crlotwhite/copier-mcp-pyFAQ
Copier Mcp Py MCP бесплатный?
Да, Copier Mcp Py MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Copier Mcp Py?
Нет, Copier Mcp Py работает без API-ключей и переменных окружения.
Copier Mcp Py — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Copier Mcp Py в Claude Desktop, Claude Code или Cursor?
Открой Copier Mcp Py на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Copier Mcp Py with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
