# specpack MCP server

> Audits and generates AI coding agent files like CLAUDE.md and Cursor rules to reduce token bloat and create full project build specifications.

- Repository: https://github.com/THE-KIPDEV/specpack
- Page: https://hostedmcp.org/servers/the-kipdev/specpack
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add --env 'SPECPACK_API_KEY=<YOUR_SPECPACK_API_KEY>' specpack -- npx -y specpack
```

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

```json
{
  "mcpServers": {
    "specpack": {
      "command": "npx",
      "args": [
        "-y",
        "specpack"
      ],
      "env": {
        "SPECPACK_API_KEY": "<YOUR_SPECPACK_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "specpack": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "specpack"
      ],
      "env": {
        "SPECPACK_API_KEY": "<YOUR_SPECPACK_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"specpack","type":"stdio","command":"npx","args":["-y","specpack"],"env":{"SPECPACK_API_KEY":"<YOUR_SPECPACK_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "specpack": {
      "command": "npx",
      "args": [
        "-y",
        "specpack"
      ],
      "env": {
        "SPECPACK_API_KEY": "<YOUR_SPECPACK_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add specpack --env 'SPECPACK_API_KEY=<YOUR_SPECPACK_API_KEY>' -- npx -y specpack
```

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

```toml
[mcp_servers.specpack]
command = "npx"
args = ["-y", "specpack"]

[mcp_servers.specpack.env]
SPECPACK_API_KEY = "<YOUR_SPECPACK_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'SPECPACK_API_KEY=<YOUR_SPECPACK_API_KEY>' specpack npx -- -y specpack
```

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

```json
{
  "mcpServers": {
    "specpack": {
      "command": "npx",
      "args": [
        "-y",
        "specpack"
      ],
      "env": {
        "SPECPACK_API_KEY": "<YOUR_SPECPACK_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SPECPACK_API_KEY` | no | yes | Optional prompt-generator-website.com API key (pgw_…): more specs and AI drafts than the free quota. |

## FAQ

### Does auditing my files require an internet connection?

No, the audit and init commands are offline and never touch the network.

### What kind of files can specpack audit?

It can audit various agent files including CLAUDE.md, AGENTS.md, .cursorrules, .windsurfrules, and GitHub Copilot instructions.

### How does specpack help with token usage?

It identifies 'bloat' lines like role-play preambles or redundant manifests that consume tokens without adding value to the agent's performance.
