Skip to main content

Overview

The Corebill MCP (Model Context Protocol) server lets you manage your billing platform directly from any MCP-compatible AI client. Create customers, invoices, quotes, and more using natural language through your favorite AI assistant. Available on npm: corebill-mcp

Prerequisites

  • Node.js 18 or higher
  • A Corebill account with an API key
  • An MCP-compatible client (Claude Desktop, Cursor, Windsurf, VS Code, etc.)

Getting Your Credentials

  1. Log in to Corebill
  2. Go to Developers > API Keys
  3. Create a new API key with write permission (or admin if you need delete operations)
  4. Copy the API key (sk_...) and your Company ID (com_...)
Store your API key securely. It provides access to your billing data.

Setup

Claude Desktop

Open the configuration file:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the Corebill MCP server:
{
  "mcpServers": {
    "corebill": {
      "command": "npx",
      "args": ["-y", "corebill-mcp"],
      "env": {
        "COREBILL_API_KEY": "sk_your_api_key_here",
        "COREBILL_COMPANY_ID": "com_your_company_id"
      }
    }
  }
}
Restart Claude Desktop to load the new configuration.

Cursor

Create a file at .cursor/mcp.json in your project root:
{
  "mcpServers": {
    "corebill": {
      "command": "npx",
      "args": ["-y", "corebill-mcp"],
      "env": {
        "COREBILL_API_KEY": "sk_your_api_key_here",
        "COREBILL_COMPANY_ID": "com_your_company_id"
      }
    }
  }
}

Windsurf

Open the configuration file at ~/.codeium/windsurf/mcp_config.json:
{
  "mcpServers": {
    "corebill": {
      "command": "npx",
      "args": ["-y", "corebill-mcp"],
      "env": {
        "COREBILL_API_KEY": "sk_your_api_key_here",
        "COREBILL_COMPANY_ID": "com_your_company_id"
      }
    }
  }
}

VS Code (Copilot)

Create a file at .vscode/mcp.json in your project root:
{
  "mcpServers": {
    "corebill": {
      "command": "npx",
      "args": ["-y", "corebill-mcp"],
      "env": {
        "COREBILL_API_KEY": "sk_your_api_key_here",
        "COREBILL_COMPANY_ID": "com_your_company_id"
      }
    }
  }
}

Claude Code (CLI)

Add to your ~/.claude/settings.json:
{
  "mcpServers": {
    "corebill": {
      "command": "npx",
      "args": ["-y", "corebill-mcp"],
      "env": {
        "COREBILL_API_KEY": "sk_your_api_key_here",
        "COREBILL_COMPANY_ID": "com_your_company_id"
      }
    }
  }
}

Available Tools

The MCP server exposes 31 tools across 7 resource types:

Customers

ToolDescription
list_customersList customers with search and pagination
get_customerGet customer details by ID
create_customerCreate a new customer (requires name and country)
update_customerUpdate customer fields
delete_customerDelete a customer (admin permission required)

Invoices

ToolDescription
list_invoicesList invoices with status and customer filters
get_invoiceGet invoice with line items
create_invoiceCreate invoice with items, auto-calculates totals
update_invoiceUpdate invoice fields and status
delete_invoiceSoft delete an invoice (admin permission required)

Quotes

ToolDescription
list_quotesList quotes with status and customer filters
get_quoteGet quote with line items
create_quoteCreate quote with items, auto-calculates totals
update_quoteUpdate quote fields and status
delete_quoteSoft delete a quote (admin permission required)

Items (Catalog)

ToolDescription
list_itemsList items/services in the catalog
get_itemGet item details
create_itemAdd a new item to the catalog
update_itemUpdate item details and pricing
delete_itemRemove item from catalog (admin permission required)

Projects

ToolDescription
list_projectsList projects with filters
get_projectGet project details
create_projectCreate a new project
update_projectUpdate project fields
delete_projectDelete a project (admin permission required)

Tasks

ToolDescription
list_tasksList tasks within a project
get_taskGet task details
create_taskCreate a task (supports subtasks)
update_taskUpdate task status, priority, assignee
delete_taskDelete a task (admin permission required)

Companies

ToolDescription
list_companiesList companies in your organization

Usage Examples

Once configured, you can interact with Corebill using natural language:
  • “List all my customers”
  • “Create a quote for Acme Corp with 2 units of the Business plan”
  • “Show me all unpaid invoices”
  • “Create a new customer called Globex Corp in the US”
  • “What items do I have in my catalog?”
  • “Update the status of invoice INV-2026-00001 to sent”
The AI client will automatically use the appropriate Corebill tools to fulfill your requests.

Environment Variables

VariableRequiredDescription
COREBILL_API_KEYYesYour API key from the Developers section
COREBILL_COMPANY_IDYesCompany ID to operate on (format: com_...)
COREBILL_API_URLNoCustom API URL (default: https://app.corebill.io)

API Key Permissions

The MCP server requires different permission levels depending on the operations:
PermissionOperations
readList and get resources
writeCreate and update resources
adminDelete resources
Permissions are hierarchical: admin includes write, which includes read.

MCP vs AI Agent

Corebill offers two AI-powered interfaces. Choose the one that fits your workflow:
FeatureAI Agent (Built-in)MCP Server
AccessCorebill dashboardAny MCP client (Claude, Cursor, etc.)
AuthenticationAutomatic (logged in)API key required
CustomersFull CRUD + searchFull CRUD + search
InvoicesFull CRUDFull CRUD
QuotesFull CRUDFull CRUD
Items catalogSearch, list, createFull CRUD
Projects & Tasks-Full CRUD
Send emailsYesNot yet
Record paymentsYesNot yet
Convert quote to invoiceYesNot yet
Analytics & reportsYes (4 tools)Not yet
Streaming responsesYes (SSE)N/A
Conversation historyYes (saved)Managed by client
The AI Agent is best for non-technical users who want a chat interface inside Corebill. The MCP Server is best for developers who want to manage billing from their IDE or AI assistant.