MCP Pystub MCP Server

Python exe ビルド(PyInstaller / Nuitka / cx_Freeze)時にスタブ置換可能なパッケージを自動検出し、最小スタブコードを生成する MCP サーバー。

Local serverstdioPython

What is the MCP Pystub MCP server?

Python exe ビルド(PyInstaller / Nuitka / cx_Freeze)時にスタブ置換可能なパッケージを自動検出し、最小スタブコードを生成する MCP サーバー。. Exposed over MCP by the mcp pystub mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

Adding it to your client

The server ships on PyPI as mcp-pystub, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Its toolset

Everything the assistant can do here goes through one of these:

  • analyze — The analyze tool exposed by this server
  • generate — 出力 / Output: { "files": { "pandas/init.py": "...", "pandas/core/api.py": "class DataFrame: pass\nclass Series: pass\n..." }

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp pystub mcp server does with a few real requests.

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Pystub's toolset — analyze, generate — is a fair guide to whether it matches your workflow. It is maintained by koyoyeager; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
analyzeThe analyze tool exposed by this server.
generate出力 / Output: { "files": { "pandas/__init__.py": "...", "pandas/core/api.py": "class DataFrame: pass\nclass Series: pass\n..." }, "original_file_count": 2980, "stub_file_count": 266, "stub_total_bytes": 209530, "build_ins

How to install the MCP Pystub MCP server

### Claude Desktop / Claude Code 設定

```json
{
  "mcpServers": {
    "pystub": {
      "command": "mcp-pystub"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use MCP Pystub to analyze.
  • Use MCP Pystub to generate.

Frequently asked questions

It connects MCP Pystub to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (analyze, generate) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Pystub directly.