Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt

Use this file to discover all available pages before exploring further.

The Dolfin MCP server exposes the same Accounts Receivable, Accounts Payable, and organisation tools available to the Dolfin agent — directly inside any Model Context Protocol client. Drop a small block of JSON into your client’s config file and the assistant gains the ability to create customers, draft invoices, schedule payments, and more on behalf of an organisation.

Prerequisites

  • A Dolfin API key
  • An organisation ID to scope tool calls to (see Client Integration)
  • An MCP-capable client — Claude Desktop, Cursor, Claude Code, VS Code, Windsurf, etc.
The MCP server is a single streamable HTTP endpoint authenticated with the same x-dolfin-api-key header used elsewhere in the API. The organisation is encoded in the URL path, so you do not send x-dolfin-organisation-id separately.

The endpoint

https://api.dolfinai.co/mcp/{organisationId}
RequiredHeader / PathValue
Path{organisationId}The UUID of the organisation the assistant should act for
Headerx-dolfin-api-keyYour Dolfin API key
That’s the entire contract. Every client below is just a different way of expressing those two values in a config file.

Configure your client

Cursor reads MCP servers from ~/.cursor/mcp.json (global) or .cursor/mcp.json inside a project. Create the file if it doesn’t exist:
{
  "mcpServers": {
    "dolfin": {
      "url": "https://api.dolfinai.co/mcp/9a658587-fe02-402e-b1ac-bfaf53274ef8",
      "headers": {
        "x-dolfin-api-key": "dol_live_abc123"
      }
    }
  }
}
Restart Cursor. Open Settings → MCP and confirm dolfin appears with a green dot.

Verify it works

Once your client reconnects, ask the assistant something like:
List the last 5 invoices and tell me which are overdue.
The assistant will call the list_invoices tool against your organisation and summarise the result. If you instead see an authentication or 404 error, check:
  1. The organisation ID in the URL is a valid UUID for an organisation under your client.
  2. The API key is correct and not revoked.
  3. Your client is sending the header — some clients silently drop unknown header keys.

What the agent can do

The MCP server exposes the same tool surface as the Dolfin AR/AP agents:
  • Customers, products, invoices — create, list, search, send, mark paid
  • Suppliers, bills, payments — create from staged uploads, approve, schedule, confirm paid
  • Organisations & tax rates — read and update org settings, manage tax rates
  • Payment accounts — check status and enable for an organisation
Mutating tools (approve_bill, schedule_payment, send_invoice) prompt the assistant to confirm with you before running. Read tools (list_*, get_*, search_*) are cheap and the assistant will lean on them before making changes.

Authentication reference

Header conventions, key rotation, and bearer-token alternatives.