# Postcept MCP server

> Verifies AI agent actions against systems of record like Stripe or Zendesk to obtain signed completion receipts.

- Repository: https://github.com/Postcept/mcp
- Page: https://hostedmcp.org/servers/postcept/mcp
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.3.3

## Install

### Claude Code

```sh
claude mcp add --env 'POSTCEPT_API_KEY=<YOUR_POSTCEPT_API_KEY>' mcp -- npx -y @postcept/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@postcept/mcp"
      ],
      "env": {
        "POSTCEPT_API_KEY": "<YOUR_POSTCEPT_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@postcept/mcp"
      ],
      "env": {
        "POSTCEPT_API_KEY": "<YOUR_POSTCEPT_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@postcept/mcp"],"env":{"POSTCEPT_API_KEY":"<YOUR_POSTCEPT_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@postcept/mcp"
      ],
      "env": {
        "POSTCEPT_API_KEY": "<YOUR_POSTCEPT_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp --env 'POSTCEPT_API_KEY=<YOUR_POSTCEPT_API_KEY>' -- npx -y @postcept/mcp
```

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

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

[mcp_servers.mcp.env]
POSTCEPT_API_KEY = "<YOUR_POSTCEPT_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'POSTCEPT_API_KEY=<YOUR_POSTCEPT_API_KEY>' mcp npx -- -y @postcept/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@postcept/mcp"
      ],
      "env": {
        "POSTCEPT_API_KEY": "<YOUR_POSTCEPT_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `POSTCEPT_API_KEY` | yes | yes | Postcept API key |

## Tools (6)

- `verify_refund`
- `verify_cancellation`
- `verify_ticket`
- `get_verification`
- `reconcile_verification`
- `verified_completion_rate`

## FAQ

### How do I configure the Postcept MCP server?

You need to provide a POSTCEPT_API_KEY and optionally a POSTCEPT_BASE_URL in your environment variables.

### Can I test the verification tools without a live system of record?

Yes, you can pass `test: true` to any `verify_*` tool to run it against a deterministic sandbox connector.

### What happens if a verification result is not 'verified'?

If the result is incomplete, duplicated, mismatched, or policy_failed, it means the work is not actually done.
