MCP.so
登录

Python MCP Server Template

@HappyPathway

基本信息

分类

文件与存储

传输方式

stdio

作者

HappyPathway

关于 Python MCP Server Template

暂无概览

Python MCP Server Template 配置

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

{
  "mcpServers": {
    "gcs-mcp-server": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        "venv"
      ]
    }
  }
}

Python MCP Server Template 工具

工具列表暂未提供

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

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

概览

What is Python MCP Server Template?

Python MCP Server Template is a template repository for creating Model Context Protocol (MCP) servers using Python with stdio transport. It provides a standardized setup for building MCP servers that integrate with VS Code.

How to use Python MCP Server Template?

Use this template to create a new MCP server project, then set up a Python virtual environment, install dependencies from requirements.txt, customize MCP tools in src/server.py, and test locally with VS Code. Configuration requires creating .vscode/mcp.json with stdio settings.

Key features of Python MCP Server Template

  • Example MCP tools implemented with decorators
  • VS Code development environment support
  • Simple stdio‑based transport for local development
  • Easy debugging with VS Code’s Python debugger
  • Standardized project structure with src/ and .vscode/

Use cases of Python MCP Server Template

  • Creating a new MCP server from a reproducible template
  • Building custom MCP tools that integrate with VS Code
  • Testing MCP servers locally using stdio communication
  • Developing and debugging MCP servers with VS Code’s debugger

常见问题

1

What is this template for?

It is a starting point for creating MCP servers using Python and stdio transport, with built‑in VS Code support.

2

What transport does the server use?

The server uses standard input/output (stdio) for communication with the MCP client.

3

How do I add custom tools?

Modify the Python code and add tools using the `@tool` decorator in `src/server.py`.

4

How do I set up the development environment?

Create a Python virtual environment with `python -m venv venv`, activate it, and install dependencies with `pip install -r requirements.txt`.

5

How do I test my MCP server?

Test your server locally using VS Code’s built‑in MCP testing capabilities, and debug with breakpoints and the VS Code Python debugger.

评论

文件与存储 分类下的更多 MCP 服务器