MCP.so
登录

MCP Python Starter

@SamMorrowDrums

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

SamMorrowDrums

关于 MCP Python Starter

A starter MCP server in Python.

MCP Python Starter 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-python-starter": {
      "command": "uv",
      "args": [
        "sync"
      ]
    }
  }
}

MCP Python Starter 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Python Starter?

A feature-complete Model Context Protocol (MCP) server template written in Python using FastMCP. It demonstrates all major MCP features—tools, resources, templates, and prompts—with clean, Pythonic code, serving as a jumpstart for developers building their own MCP servers.

How to use MCP Python Starter?

Install prerequisites: Python 3.11+ and uv (recommended) or pip. Clone the repository, run uv sync (or pip install -e .), then start the server with uv run mcp-python-starter --stdio for local development or uv run mcp-python-starter --http --port 3000 for HTTP transport. VS Code integration via .vscode/mcp.json and DevContainers are included for seamless development.

Key features of MCP Python Starter

  • Tools with annotations and structured data
  • Dynamic tool loading at runtime
  • Resource templates for personalized responses
  • Progress updates for long-running tasks
  • LLM sampling via tool invocation
  • Code review prompt template with focus areas

Use cases of MCP Python Starter

  • Quickly prototyping and testing an MCP server locally
  • Learning how to implement tools, resources, and prompts with FastMCP
  • Building a custom MCP server for an AI‑powered IDE or chat client
  • Debugging server behavior using the MCP Inspector tool

常见问题

1

What are the prerequisites for using MCP Python Starter?

You need Python 3.11 or later and either uv or pip installed on your system.

2

How do I run the server?

Use `uv run mcp-python-starter --stdio` for stdio transport (local development) or `uv run mcp-python-starter --http --port 3000` for HTTP transport (remote/web deployment).

3

How can I debug the server?

Launch the MCP Inspector with `npx @modelcontextprotocol/inspector -- uv run mcp-python-starter` to test tools, resources, prompts, and view JSON‑RPC logs.

4

What environment variables are needed?

Copy `.env.example` to `.env` and configure the required variables. No specific variables are detailed in the README.

5

What license does the project use?

The MCP Python Starter is released under the MIT License.

评论

开发工具 分类下的更多 MCP 服务器