# Pare Python MCP server

> Returns structured, schema-validated JSON for Python CLI tools like ruff, mypy, pip, uv, black, and pytest.

- Repository: https://github.com/Dave-London/Pare
- Page: https://hostedmcp.org/servers/dave-london/pare-python
- Transport: stdio
- Stars: 141
- License: MIT
- Latest version: 0.8.1

## Install

### Claude Code

```sh
claude mcp add pare-python -- npx -y @paretools/python
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "pare-python": {
      "command": "npx",
      "args": [
        "-y",
        "@paretools/python"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "pare-python": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@paretools/python"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"pare-python","type":"stdio","command":"npx","args":["-y","@paretools/python"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "pare-python": {
      "command": "npx",
      "args": [
        "-y",
        "@paretools/python"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add pare-python -- npx -y @paretools/python
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.pare-python]
command = "npx"
args = ["-y", "@paretools/python"]
```

### Gemini CLI

```sh
gemini mcp add -s user pare-python npx -- -y @paretools/python
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "pare-python": {
      "command": "npx",
      "args": [
        "-y",
        "@paretools/python"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PARE_GIT_TOOLS` | no | no |  |
| `PARE_NPM_TOOLS` | no | no |  |
| `PARE_TOOLS` | no | no |  |

## FAQ

### What does Pare Python return instead of raw terminal output?

It returns clean, schema-validated JSON with consistent field names for Python tools such as ruff, mypy, pip, uv, black, and pytest.

### Which Python tools does Pare wrap?

Pare's Python server wraps pip among the language and package tools, and pytest is covered in its test tooling.

### Do Pare tools provide both human-readable and typed output?

Yes, each tool returns human-readable text in content and typed, schema-validated JSON in structuredContent.

### Can I limit which tools a Pare server registers?

Yes, use per-server environment variables like PARE_PYTHON_TOOLS to register only selected tools.

### Does Pare reduce token usage for verbose commands?

Yes, structured output is smaller than raw terminal text, with large reductions on verbose install and build output.
