Skip to main content
Glama
Billin MCP Server

Billin MCP Server

by AnderRahe

Billin MCP Server

A Model Context Protocol (MCP) server that connects AI agents to Billin — Spain's invoicing platform for freelancers and SMBs.

Create invoices, record expenses, manage contacts, and track payments — all from Claude, Cursor, or any MCP-compatible AI assistant. Fully compatible with Verifactu and Spanish tax regulations.

Tools

Tool

Description

create_invoice

Create a tax-compliant invoice with line items and Spanish tax codes (IVA, IRPF, RE)

list_invoices

List and filter invoices by status, date, payment status, VAT number, or Verifactu

get_invoice

Get full details of a specific invoice

create_receipt

Create a simplified sales receipt (ticket)

create_contact

Create a customer or supplier contact

list_contacts

Search and filter contacts

create_expense

Record a business expense with tax classification

list_expenses

List recorded expenses

create_quote

Create a quote (presupuesto) for a client

create_payment

Record a payment against an invoice

list_payments

List recorded payments

Related MCP server: BeeL MCP server

Quick Start

1. Get Billin API credentials

  1. Log in to your Billin account

  2. Go to Integraciones > API Publica

  3. Click Generar credenciales to get your clientId and clientSecret

2. Install and build

git clone https://github.com/AnderRahe/billin-api-mcp.git
cd billin-api-mcp
npm install
npm run build

3. Configure Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "billin": {
      "command": "node",
      "args": ["/path/to/billin-api-mcp/dist/index.js"],
      "env": {
        "BILLIN_CLIENT_ID": "your_client_id",
        "BILLIN_CLIENT_SECRET": "your_client_secret"
      }
    }
  }
}

Usage Examples

Create an invoice

"Crea una factura a nombre de Acme SL, NIF B12345678, por 3 horas de consultoría a 75 euros la hora con IVA 21%"

The AI agent will call create_invoice with the appropriate line items, tax code (IVA_21), and contact details.

Check unpaid invoices

"Muéstrame las facturas pendientes de cobro de este mes"

Uses list_invoices with isPaid: false and date filters.

Record an expense

"Registra un gasto de 150 euros en material de oficina del proveedor Papelería López, NIF 12345678A"

Calls create_expense with the supplier info and IVA_21 tax classification.

Create a quote

"Prepara un presupuesto para el rediseño web de la empresa TechCorp por 3.500 euros"

Uses create_quote with line items and contact details.

Supported Tax Codes

Code

Description

Rate

IVA_21

Standard VAT

21%

IVA_10

Reduced VAT

10%

IVA_4

Super-reduced VAT

4%

IVA_0

Exempt VAT

0%

IRPF_15

Standard IRPF withholding

-15%

IRPF_7

Reduced IRPF (new freelancers)

-7%

RE_52

Recargo de equivalencia (standard)

5.2%

RE_14

Recargo de equivalencia (reduced)

1.4%

RE_01

Recargo de equivalencia (super-reduced)

0.5%

Environment Variables

Variable

Required

Default

Description

BILLIN_CLIENT_ID

Yes

—

OAuth2 client ID from Billin

BILLIN_CLIENT_SECRET

Yes

—

OAuth2 client secret from Billin

BILLIN_API_URL

No

https://api.billin.net/v1

API base URL

Development

npm run dev    # Watch mode (auto-recompile on changes)
npm run build  # Compile TypeScript
npm run start  # Run the server

Testing with MCP Inspector

npx @modelcontextprotocol/inspector node ./dist/index.js

About Verifactu

Starting January 2027, all Spanish businesses must use certified invoicing software under the Verifactu regulation (RD 1007/2023). Billin is Verifactu-compliant, and this MCP server exposes that capability to AI agents — enabling freelancers and businesses to create legally compliant invoices through natural language.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to interact with the SuperFaktura invoicing system for managing invoices, clients, and expenses via natural language.
      4
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to issue, correct, and register legally compliant Spanish electronic invoices with AEAT VeriFactu, supporting F1/F2 types, R1–R5 correctives, and NIF validation from Claude, ChatGPT, Cursor, or VS Code.
      136
      111 npm
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to interact with Quipu accounting data via natural language, including invoicing, expenses, contacts, and Spanish VAT reporting.
      18
      43 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to manage compliant e-invoicing (Factur-X, EN 16931) by creating, issuing, sending, and tracking invoices, quotes, and retainers through natural language via the Model Context Protocol.
      MIT