Python Mcp Template
БесплатноНе проверенA minimal FastMCP server scaffold for building your own MCP tools and resources. It includes typed examples, stderr-only logging, and a clean project layout tha
Описание
A minimal FastMCP server scaffold for building your own MCP tools and resources. It includes typed examples, stderr-only logging, and a clean project layout that works with uv.
README
A minimal FastMCP server scaffold for building your own MCP tools and resources. It includes typed examples, stderr-only logging, and a clean project layout that works with uv.
What's included
- FastMCP wiring in
src/mcp_server/main.py. - Typed models in
src/mcp_server/models.py. - Example tools:
analyze_metrics(typed Pydantic input/output) andecho. - A sample resource at
template://config/defaults. - Logging configured to use stderr only (safe for stdio transports).
Prerequisites
- Python 3.12+
- uv for dependency management and execution.
Setup and run
uv sync
uv run src/mcp_server/main.py # or: uv run mcp-template
Try it with the MCP Inspector
Inspect tools and resources without an LLM in the loop:
npx @modelcontextprotocol/inspector uv run --directory . src/mcp_server/main.py
Extending the template
- Add new models to
src/mcp_server/models.py(or a new module) with full type hints. - Implement tool logic under
src/mcp_server/tools/. - Register tools/resources in
src/mcp_server/main.pyusing the@mcp.tool()and@mcp.resource()decorators. - Keep logging directed to stderr (see
src/mcp_server/utils/logger.py) so stdio transports stay clean.
Tests and linting
uv run pytest
uv run ruff check .
Установка Python Mcp Template
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/mbeps/python-mcp-templateFAQ
Python Mcp Template MCP бесплатный?
Да, Python Mcp Template MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Python Mcp Template?
Нет, Python Mcp Template работает без API-ключей и переменных окружения.
Python Mcp Template — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Python Mcp Template в Claude Desktop, Claude Code или Cursor?
Открой Python Mcp Template на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Python Mcp Template with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
