Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

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

GitHubEmbed

Описание

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) and echo.
  • 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.py using 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 .

from github.com/mbeps/python-mcp-template

Установка Python Mcp Template

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/mbeps/python-mcp-template

FAQ

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

Compare Python Mcp Template with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai