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

Fetch

Web content fetching and conversion for efficient LLM usage.

автор: Community

Roblox Studio

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

paralovавтор: paralov

Opencode Omniroute Plugin

OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc

GitHub Actionsавтор: GitHub Actions

AWS KB Retrieval

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

modelcontextprotocolавтор: modelcontextprotocol

Spring AI MCP Server

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

автор: Community

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-hzавтор: xuzexin-hz

MCP-Agent

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

lastmile-aiавтор: lastmile-ai

Spring AI MCP Client

Provides auto-configuration for MCP client functionality in Spring Boot applications.

автор: Community

mcp.natoma.ai

A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)

автор: Community

MCPHub

Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.

автор: Community

Compare Python Mcp Template with

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

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

Автор?

Embed-бейдж для README

Похожее

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