MCP: connect an AI agent (Claude, Cursor)

Connect the MCP server at /api/mcp to Claude Code, Claude Desktop or Cursor via Settings → API & agents. You grant access after signing in; Pro plan only.

The MCP (Model Context Protocol) server runs at /api/mcp; you connect an AI agent by signing in and granting access on the authorization screen, in a chosen organization and with chosen permissions.

Where to find it: Settings → API & agents → the MCP server section ("Connect an AI agent"). The MCP server is part of the Pro plan.

The "Connect an AI agent" card with the MCP server URL and a client picker

Steps

  1. Open Settings → API & agents → MCP server.
  2. Pick a client: Claude Code, Claude Desktop or Cursor. Copy the command or use Copy URL.
  3. Add the server in your MCP client. You will be asked to sign in.
  4. On the authorization screen choose the Organization and scopes: Read, Write, Send to KSeF, Manage organization.
  5. Click Allow access (or Deny). Scopes your role cannot use are disabled.
  6. Connected agents appear in the Connected agents section. Revoke removes access.

What an agent can do

  • List and read invoices, clients, products, members and plan usage.
  • Create and fix drafts, record payments, get a PDF link.
  • Issue invoices and send them to KSeF. Both tools need an explicit confirmation (confirm: true) and the right scope.
  • Work with client documents: list_document_templates, save_document_template, list_documents, get_document, create_document, update_document, start_client_onboarding, get_client_onboarding, toggle_checklist_item, mark_document_status and create_invoice_from_sow (Read and Write scopes).
  • Finalize a document (finalize_document) and e-mail it to the client (send_document). Both need confirm: true, a role allowed to issue invoices and the Write scope (client documents).
  • Track time: list_projects, save_project, log_time, list_time_entries, update_time_entry, delete_time_entry, get_unbilled_time, preview_time_invoice and create_invoice_from_time (Read and Write scopes). log_time accepts text such as 1h30m. Project and billing tools need a role that manages time; the invoice is created as a draft (time tracking).
  • Invite members (Manage organization scope).

Tips

  • An agent's permissions are the intersection of its scopes and your role in the organization.
  • Sending to KSeF is irreversible. The agent should ask you before it calls the tool.
  • On the Free plan you can add the connection, but tools will ask you to upgrade (plans).
  • You can also revoke access under Account → Connected agents (the "Open API & agents" button).

Related articles

See how it works