# PromptBill

> PromptBill is a freemium MCP server for finance and payments. Maps local AI coding spend to Git repos and builds client invoices for freelancers. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, macOS, Linux, Windows, VS Code, API, Self-hosted
- **Website:** https://danielneuron.github.io/promptbill/
- **Repository:** https://github.com/danielneuron/promptbill
- **MCP Registry name:** io.github.danielneuron/promptbill
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [small business tools](https://ai-powered.com/categories/small-business-tools)
- **Listing updated:** 2026-11-28

## About

PromptBill reads the usage logs that AI coding assistants already keep on your machine and works out how much each Git repository consumed. Claude Code, Codex CLI, Gemini CLI, Cline and Roo Code are read directly, and CSV usage exports from Anthropic, OpenAI, OpenRouter and Cursor can be imported alongside them. Token counts are priced and grouped by the repository the work happened in, so you can see what a given client project actually cost.

The same data feeds a studio UI and a command line tool that produce client-ready PDF invoices, with optional hourly labour, markup and sales tax, and an appendix of dates, models and commit titles without source code. Pro adds Xero and QuickBooks Online invoice CSV exports. Everything runs locally, with no telemetry; the only network call is license activation for paid tiers.

It suits freelancers and small agencies who pass AI compute through to clients and want the charge to be traceable. It also ships as a local MCP server, so an assistant such as Claude Code or Cursor can query spend and generate an invoice from inside the editor.

## Features

- **Multi-tool log parsing:** Reads local session logs from Claude Code, Codex CLI, Gemini CLI, Cline and Roo Code without uploading them.
- **Git repository attribution:** Assigns token usage to the enclosing Git repository of each working directory.
- **Client PDF invoices:** Generates PDF invoices with optional labour, markup, tax and a sanitized audit appendix.
- **Accounting CSV exports:** Produces Xero and QuickBooks Online invoice CSVs on the Pro tier.
- **Local MCP server:** Exposes scan, spend, invoice and export tools to MCP-compatible coding agents over stdio.
- **Editable pricing table:** Ships built-in model prices that can be overridden with a local pricing file.

## Good for

- Billing AI compute spent on a specific client repository back to that client
- Producing a PDF invoice with an audit appendix that shows dates, models and token totals
- Importing monthly OpenRouter or Cursor CSV usage and attributing it to a project
- Checking live AI spend per workspace from the VS Code or Cursor extension
- Asking a coding agent how much a repository has cost this month

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add promptbill -- docker run -i --rm ghcr.io/danielneuron/promptbill:1.5.0
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add promptbill -- docker run -i --rm ghcr.io/danielneuron/promptbill:1.5.0
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.promptbill]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/danielneuron/promptbill:1.5.0"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user promptbill docker -- run -i --rm ghcr.io/danielneuron/promptbill:1.5.0

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "promptbill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/danielneuron/promptbill:1.5.0"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 4 tools reads data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `promptbill_scan_usage`: Scans local Claude Code, Codex CLI, Gemini CLI, Cline, Roo Code and imported CSVs grouped by Git repo.
- `promptbill_repo_spend`: Detailed spend, models and pass-through billing estimate for a specific Git repository.
- `promptbill_generate_invoice_pdf`: Generates a native PDF client invoice on disk with optional labour, markup, GST/VAT and audit appendix.
- `promptbill_export_csv` (name suggests: reads): Exports a repo summary CSV or a Xero / QuickBooks Online invoice CSV.

## FAQ

### Do my prompts or code leave my machine?

No. Log parsing, Git mapping, CSV export and PDF generation all run locally, and the only optional network request is Polar.sh license activation for paid tiers.

### Which tools and exports are supported?

Local scanners cover Claude Code, OpenAI Codex CLI, Gemini CLI, Cline and Roo Code. CSV import covers Anthropic, OpenAI, OpenRouter and Cursor exports.

### How does the Pro licence work?

A one-time $19 payment via Polar.sh returns a licence key usable on up to 3 machines, with lifetime v1.x updates and a 14-day refund window.

### Is PromptBill free?

PromptBill has a free plan, with paid plans for more usage or features.

### How do I add PromptBill to Claude Code?

Run this command in your terminal: claude mcp add promptbill -- docker run -i --rm ghcr.io/danielneuron/promptbill:1.5.0

### What are the best alternatives to PromptBill?

The closest alternatives to PromptBill are InvoiceBloom, Invoice Studio, eBRBe Hybrid Human + AI Agent Compute Billing, PocketInvoice MCP and Holdings.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [InvoiceBloom](https://ai-powered.com/mcp/invoicebloom): InvoiceBloom is a free MCP server for finance and payments.
- [Invoice Studio](https://ai-powered.com/mcp/invoice-studio): Invoice Studio is an MCP server for finance and payments.
- [eBRBe Hybrid Human + AI Agent Compute Billing](https://ai-powered.com/mcp/ebrbe-hybrid-human-ai-agent-compute-billing): eBRBe Hybrid Human + AI Agent Compute Billing is a freemium MCP server for finance and payments.
- [PocketInvoice MCP](https://ai-powered.com/mcp/pocketinvoice-mcp): PocketInvoice MCP is a free MCP server for finance and payments.
- [Holdings](https://ai-powered.com/mcp/holdings): Holdings is a free MCP server for finance and payments.
- [IMW Invoice](https://ai-powered.com/mcp/imw-invoice): IMW Invoice is an MCP server for finance and payments.
- [Invoice Badger](https://ai-powered.com/mcp/invoice-badger): Invoice Badger is an MCP server for finance and payments.
- [gooodbilling](https://ai-powered.com/mcp/gooodbilling): gooodbilling is an MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/promptbill
