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

A template for building Python MCP servers with the MCP Python SDK and FastMCP, providing tools and resources plus a development and deployment setup.
Python MCP Server Starter Template is cataloged as an MCP server attributed to ltwlf. A template for building Python MCP servers with the MCP Python SDK and FastMCP, providing tools and resources plus a development and deployment setup. 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 Python MCP Server Starter Template 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 can run in stdio mode for MCP Inspector and in SSE mode, with optional custom host and port.
No, debug mode should never be used in production environments because the debugger exposes a network port that could be exploited if not secured.
README.md · 213c21f6aef7 · 采集于 2026-11-13 11:58:05 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A template repository for creating Python applications using the Model Context Protocol (MCP) and the MCP Python SDK.
mcp Python SDK (FastMCP).uv for environment/package management)Clone or Use as Template: Get the code.
git clone https://github.com/ltwlf/python-mcp-starter.git your-repo-name # Or use GitHub's "Use this template" button
cd your-repo-name
Rename the Project: Rename the core components:
hello_mcp_server directory to your desired Python package name (e.g., my_awesome_mcp).hello-mcp-server (in pyproject.toml, README.md, Dockerfile, docker-compose.yml) with your project name (e.g., my-awesome-mcp).hello_mcp_server (in Python import statements like in main.py, tests/test_server.py, pyproject.toml scripts section) with your new package name.APP_ID in your renamed server.py file..vscode/launch.json configuration file to reflect your new project and package names.Create Virtual Environment:
# Create the virtual environment
uv venv
# Activate the environment (Windows PowerShell)
.venv\Scripts\Activate.ps1
# Or for other shells:
# source .venv/bin/activate (Linux/macOS)
# .venv\Scripts\activate.bat (Windows Command Prompt)
Install Dependencies:
uv pip install -e ".[dev]"
You can run the server directly using uv run or the mcp CLI tool provided by the SDK. This allows testing with tools like the MCP Inspector.
Method 1: Using uv run
# Ensure your virtual environment is active first
# Replace 'hello-mcp-server' with the script name defined in your pyproject.toml
uv run your-script-name
Method 2: Using the mcp CLI tool
# Ensure your virtual environment is active first
# Replace 'hello_mcp_server' with your renamed package directory
mcp dev ./your_package_name/server.py
# Ensure your virtual environment is active first
# Replace 'hello-mcp-server' with your script name
uv run your-script-name --sse
Or with custom host and port:
# Ensure your virtual environment is active first
# Replace 'hello-mcp-server' with your script name
uv run your-script-name --sse --host 127.0.0.1 --port 9000
Update the Dockerfile and docker-compose.yml to reflect your renamed project/package before building.
# Build and run with Docker Compose
docker-compose up -d
# Or build and run directly with Docker
# Replace 'hello-mcp-server' with your image name
docker build -t your-image-name .
docker run -p 8000:8000 your-image-name
This project includes built-in debugging capabilities using debugpy. There are two main ways to debug your MCP server:
The project includes a dedicated debug module that makes debugging easy:
# Using uv (recommended)
uv run mcp-debug
Connect to the MCP Inspector first, and once connected, use the VS Code debug configuration Attach to MCP worker to attach the debugger for debugging
VS Code debugging is configured with several launch configurations:
For the best experience:
uv run mcp-debug in a terminalNote: Make sure you have your virtual environment set up with
uv venvanduv pip install -e .[dev]before debugging.
To use these configurations:
Add new tools using the @mcp.tool() decorator in your_package_name/server.py:
# your_package_name/server.py
from mcp.server.fastmcp import FastMCP, Context
mcp = FastMCP("your-app-id") # Ensure APP_ID matches your project
# ... existing tools ...
# Add your new tool
@mcp.tool()
async def my_new_tool(param1: str, param2: int, ctx: Context) -> dict:
"""
Description of what your tool does.
Use the ctx object to report progress, log info, or read resources.
"""
ctx.info(f"Running my_new_tool with {param1=}, {param2=}")
# Tool implementation
result = f"Processed {param1} {param2} times"
await ctx.report_progress(1, 1) # Example progress
return {"result": result}
Add new resources using the @mcp.resource() decorator in your_package_name/server.py:
# your_package_name/server.py
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("your-app-id") # Ensure APP_ID matches your project
# ... existing resources ...
# Add resources
@mcp.resource("your-resource-uri")
def your_resource_func():
"""Returns application settings."""
return {"theme": "dark", "language": "en"}
Make sure the import statements in tests/test_server.py point to your renamed package.
pytest
This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Python MCP Server Starter Template from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/python-mcp-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.