
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A feature-complete Model Context Protocol server template in Python built on the official MCP Python SDK, demonstrating core MCP features.
MCP Python Starter is cataloged as an MCP server attributed to sammorrowdrums. A feature-complete Model Context Protocol server template in Python built on the official MCP Python SDK, demonstrating core MCP features. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Python Starter are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It uses multi-round-trip requests for sampling on modern protocol versions and a legacy back-channel for older clients.
README.md · 8d2c0ff8c0d2 · 采集于 2026-11-13 09:56:27 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A feature-complete Model Context Protocol (MCP) server template in Python using the official MCP Python SDK. This starter demonstrates core MCP features with clean, Pythonic code.
| Category | Feature | Description |
|---|---|---|
| Tools | hello | Basic tool with annotations |
get_weather | Tool returning structured data | |
ask_llm | Tool that invokes LLM sampling | |
long_task | Tool with 5-second progress updates | |
load_bonus_tool | Dynamically loads a new tool | |
| Resources | info://about | Static informational resource |
file://example.md | File-based markdown resource | |
| Templates | greeting://{name} | Personalized greeting |
data://items/{id} | Data lookup by ID | |
| Prompts | greet | Greeting in various styles |
code_review | Code review with focus areas |
# Clone the repository
git clone https://github.com/SamMorrowDrums/mcp-python-starter.git
cd mcp-python-starter
# Install with uv (recommended)
uv sync
# Or with pip
pip install -e .
stdio transport (for local development):
uv run mcp-python-starter --stdio
HTTP transport (for remote/web deployment):
uv run mcp-python-starter --http --port 3000
This project includes VS Code configuration for seamless development:
.vscode/mcp.json.
├── mcp_starter/
│ ├── __init__.py
│ ├── tools.py # Tool definitions (hello, get_weather, ask_llm, etc.)
│ ├── resources.py # Resource and template definitions
│ ├── prompts.py # Prompt definitions
│ └── server.py # Server orchestration (imports and wires modules)
├── .vscode/
│ ├── mcp.json # MCP server configuration
│ ├── settings.json # Python settings
│ └── extensions.json
├── .devcontainer/
│ └── devcontainer.json
├── pyproject.toml # Project configuration (uv/pip, Ruff config)
└── .python-version
# Run the server (Python reloads automatically on changes)
uv run mcp-python-starter --stdio
# Use MCP Inspector for debugging
uv run mcp dev mcp_starter/server.py
# Format code
uv run ruff format .
# Lint
uv run ruff check .
# Lint with auto-fix
uv run ruff check --fix .
# Type check
uv run pyright
Python scripts reload automatically when run with uv run. For enhanced debugging,
use mcp dev which provides the MCP Inspector UI.
The MCP Inspector is an essential development tool for testing and debugging MCP servers.
npx @modelcontextprotocol/inspector -- uv run mcp-python-starter
long_taskfrom mcp.types import ToolAnnotations
@mcp.tool(
title="Say Hello",
description="A friendly greeting tool",
annotations=ToolAnnotations(read_only_hint=True),
)
def hello(name: str) -> str:
"""Say hello to someone.
Args:
name: The name to greet
"""
return f"Hello, {name}!"
@mcp.resource("greeting://{name}")
def greeting_template(name: str) -> str:
"""Generate a personalized greeting."""
return f"Hello, {name}!"
@mcp.tool(title="Long Task")
async def long_task(
task_name: str,
ctx: Context,
) -> str:
for i in range(5):
await ctx.report_progress(
progress=i / 5,
total=1.0,
message=f"Step {i + 1}/5",
)
await asyncio.sleep(1.0)
return "Done!"
from typing import Annotated
from mcp.server.mcpserver import Resolve, Sample
from mcp.types import CreateMessageResult, SamplingMessage, TextContent
def request_sample(prompt: str) -> Sample:
return Sample([SamplingMessage(role="user", content=TextContent(text=prompt))], max_tokens=100)
@mcp.tool(title="Ask LLM")
async def ask_llm(
prompt: str,
result: Annotated[CreateMessageResult, Resolve(request_sample)],
) -> str:
if isinstance(result.content, TextContent):
return result.content.text
return "[non-text response]"
The server uses multi-round-trip requests for sampling on modern protocol versions and the legacy back-channel for older clients.
Copy .env.example to .env and configure:
cp .env.example .env
Contributions welcome! Please ensure your changes maintain feature parity with other language starters.
MIT License - see LICENSE for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Python Starter from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-python-starter)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.