MCP.so
ログイン

Python MCP Server Template

@HappyPathway

Python MCP Server Template について

概要はまだありません

基本情報

カテゴリ

ファイルとストレージ

ランタイム

python

トランスポート

stdio

公開者

HappyPathway

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

ツール

ツールは検出されませんでした

ツールは 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

FAQ from Python MCP Server Template

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.

What transport does the server use?

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

How do I add custom tools?

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

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.

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.

コメント

「ファイルとストレージ」の他のコンテンツ