Skip to content

Use python3 instead of python in MCP configuration commands #55

Description

@pigreco

Problem

On systems where the python executable is not available (common on Linux/macOS where only python3 is in PATH), the MCP server fails to connect when using the configuration commands shown in the README.

For example, running:

claude mcp add -s user istat -- python -m istat_mcp_server --cwd /path/to/istat_mcp_server

results in Failed to connect because python is not found.

Solution

Use python3 explicitly, or point directly to the virtual environment's Python executable:

claude mcp add -s user istat -- python3 -m istat_mcp_server --cwd /path/to/istat_mcp_server

Or, if python3 is also not in PATH (e.g. when using a virtual environment):

claude mcp add -s user istat -- /path/to/istat_mcp_server/.venv/bin/python3 -m istat_mcp_server --cwd /path/to/istat_mcp_server

Environment

  • OS: Linux (WSL2)
  • python not available in PATH, only python3

Notes

The README already has a note suggesting to replace python with python3 if needed, but the primary examples use python which may confuse users. Updating the examples to use python3 by default would improve the out-of-the-box experience on most modern Linux/macOS systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions