holded-mcp

holded-mcp

MCP server for Holded invoicing and treasury management, enabling creation and management of invoices, purchases, estimates, contacts, bank accounts, and cashflow forecasts.

Category
访问服务器

README

holded-mcp

MCP server for invoicing and treasury management in Holded: invoices, purchases, estimates, credit notes, sales receipts, recurring invoices, contacts, bank accounts and cashflow forecasting.

Tools (42)

Sales invoices

Tool What it does
list_invoices List with filters: start_date, end_date, contact_id, status
get_invoice Full detail of an invoice
create_invoice Create an invoice (items, taxes, series, due date)
update_invoice Add notes/tags or edit fields without wiping the rest
approve_invoice Finalize a draft → assigns the definitive invoice number
send_invoice Email it to the client
register_invoice_payment Register a payment (partial or full)
get_invoice_pdf Download the PDF (local file or base64)
attach_document_to_invoice Attach a file to an invoice

Purchases / expenses

Tool What it does
list_purchases List with filters: start_date, end_date, contact_id, status
get_purchase Full detail of an expense
create_purchase Register an expense (with supplier invoice number)
update_purchase Add notes/tags/supplier invoice number without wiping the rest
register_purchase_payment Register a payment for an expense
attach_document_to_purchase Attach a PDF to an expense

Estimates

Tool What it does
list_estimates List with date/status filters
create_estimate Create a client estimate/quote
update_estimate Add notes/tags or edit fields without wiping the rest
convert_estimate_to_invoice Convert an accepted estimate into an invoice

Credit notes

Tool What it does
list_credit_notes List credit notes
create_credit_note Create one linked to the original invoice
update_credit_note Add notes/tags without wiping the rest

Simplified receipts

Tool What it does
list_sales_receipts List sales receipts
create_sales_receipt Issue a simplified receipt
update_sales_receipt Add notes/tags without wiping the rest

Recurring invoices

Tool What it does
list_recurring_invoices View active templates
create_recurring_invoice Create an automatic invoice (daily/weekly/monthly/yearly)

Contacts

Tool What it does
list_contacts Search by name, email or tax ID
get_contact Full contact details
create_contact Create a client or supplier
update_contact Update contact fields (safe merge: only changes what you pass)

Treasury

Tool What it does
list_bank_accounts Bank accounts with current balance
list_bank_movements Movements for an account (filter: reconciled=False for pending)
create_bank_movement Add a manual movement (income/expense)
reconcile_bank_movement Reconcile a movement against an invoice/payment

Cashflow

Tool What it does
list_cashflow_forecasts Forecasted incoming/outgoing payments
create_cashflow_forecast Add a manual forecast

Remittances

Tool What it does
list_remittances View active SEPA remittances

Configuration

Tool What it does
list_taxes Tax IDs (VAT, withholding, etc.)
list_services Service catalog with prices
list_numbering_series Series by document type: invoice/purchase/estimate (credit-note and sales-receipt return 400)
list_expense_accounts Chart-of-accounts expense accounts

Typical flows

Create and send an invoice to a client

1. list_contacts(search="client name")           → contact_id
2. list_taxes()                                   → tax ids
3. list_numbering_series("invoice")               → number_line_id
4. create_invoice(contact_id, date, items=[{
     name: "Service", units: 1, price: 800,
     taxes: [vat_id, withholding_id]
   }], number_line_id=...)                        → invoice_id
5. approve_invoice(invoice_id)                    → finalizes with definitive number
6. send_invoice(invoice_id, emails=["client@..."])

Collect a pending invoice

1. list_invoices(status="pending", start_date="2026-01-01")
2. register_invoice_payment(invoice_id, amount=..., date="2026-06-17")

Estimate → Invoice

1. create_estimate(contact_id, date, items)       → estimate_id
2. send_invoice(estimate_id, emails=[...])         → send to client
3. convert_estimate_to_invoice(estimate_id)        → once accepted
4. approve_invoice(new_invoice_id)

Setup

  1. Get your API key: Holded → Settings → Integrations → API.
  2. Install dependencies:
    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    

MCP client configuration

{
  "mcpServers": {
    "holded": {
      "command": "/path/to/.venv/bin/python3",
      "args": ["/path/to/holded-mcp/server.py"],
      "env": {
        "HOLDED_API_KEY": "<your Holded PAT>"
      }
    }
  }
}

Notes and known API quirks

  • Auth: PAT tokens (pat_...) use Authorization: Bearer <pat_...>, not a key: value header.
  • All POST/PUT bodies use snake_case (contact_id, due_date, number_line_id...) — the v2 API rejects camelCase with a 400.
  • No server-side date filtering — the server paginates through the full cursor and filters by date client-side.
  • draft is a boolean flag on the document, not a status value. Valid statuses: pending, completed, partial, cancelled, failed, overdue.
  • Purchase reconciliation only works from the UI — the public API v2 doesn't support reconciling purchase-type movements (reconcile_bank_movement with document_type: "purchase" always produces a zero-amount forced_reconciled). Use the Holded UI (Expenses → edit payment → select bank account) for that specific case.
  • register_invoice_payment/register_purchase_payment use treasury_id internally (the tool accepts account_id and maps it for you); free text goes in description, not notes.
  • No delete endpoint exists in the API for invoices, purchases, estimates or credit notes — only the Holded UI can remove a document.
  • create_cashflow_forecast requires an approved (non-draft) document — approve first with approve_invoice.
  • Attachments use multipart/form-data with no explicit Content-Type header (let requests set it).

License

MIT — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选