# BillingEngine MCP server

> Allows AI clients to manage customers, create draft invoices, list invoices, and record payments via the BillingEngine API.

- Repository: https://github.com/billingengine/billingengine-mcp
- Page: https://hostedmcp.org/servers/billingengine/billingengine-mcp
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.2.2

## Install

### Claude Code

```sh
claude mcp add --env 'BILLINGENGINE_API_KEY=<YOUR_BILLINGENGINE_API_KEY>' billingengine-mcp -- npx -y billingengine-mcp
```

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

```json
{
  "mcpServers": {
    "billingengine-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "billingengine-mcp"
      ],
      "env": {
        "BILLINGENGINE_API_KEY": "<YOUR_BILLINGENGINE_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "billingengine-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "billingengine-mcp"
      ],
      "env": {
        "BILLINGENGINE_API_KEY": "<YOUR_BILLINGENGINE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "billingengine-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "billingengine-mcp"
      ],
      "env": {
        "BILLINGENGINE_API_KEY": "<YOUR_BILLINGENGINE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add billingengine-mcp --env 'BILLINGENGINE_API_KEY=<YOUR_BILLINGENGINE_API_KEY>' -- npx -y billingengine-mcp
```

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

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

[mcp_servers.billingengine-mcp.env]
BILLINGENGINE_API_KEY = "<YOUR_BILLINGENGINE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'BILLINGENGINE_API_KEY=<YOUR_BILLINGENGINE_API_KEY>' billingengine-mcp npx -- -y billingengine-mcp
```

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

```json
{
  "mcpServers": {
    "billingengine-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "billingengine-mcp"
      ],
      "env": {
        "BILLINGENGINE_API_KEY": "<YOUR_BILLINGENGINE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `BILLINGENGINE_API_KEY` | yes | yes | API key from Settings > API keys in BillingEngine (paid plans only) |

## Tools (10)

- `find_customers`
- `create_customer`
- `update_customer`
- `create_invoice`
- `update_invoice`
- `list_invoices`
- `get_invoice`
- `download_invoice`
- `record_payment`
- `list_payments`

## FAQ

### Can I send invoices directly to customers using this server?

No, invoices are created as drafts for you to review and send manually within BillingEngine.

### Is it possible to delete records through the MCP server?

No, the server does not support any deletion operations.

### What are the API rate limits?

The API allows for 60 requests per minute per API key.

### Does the free plan support this server?

No, you must have a paid plan because the API is not available on the Free plan.
