# Pare Python MCP server

> Returns typed JSON from Python tools like ruff, mypy, pip-audit and pip install so agents can act without parsing terminal text.

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

## Install

### Claude Code

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

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

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

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

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

### VS Code CLI

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

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

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

### Codex

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

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

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

### Gemini CLI

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

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

```json
{
  "mcpServers": {
    "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 Python tools does the Pare python server wrap?

It wraps ruff, mypy, pip-audit and pip install, returning structured JSON instead of raw terminal output.

### Does Pare return structured JSON for python tools?

Yes, each tool returns human-readable content plus schema-validated structuredContent JSON.

### How much smaller is Pare's output than raw CLI output?

In the README's example, pip install output dropped from 288 to 101 tokens, a 65% reduction.

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

Yes, set PARE_TOOLS universally or PARE_{SERVER}_TOOLS for a single server to filter tools.
