Connect an AI tool with MCP
Gäld's MCP server lets a compatible AI client consult accounting data through
small, permission-controlled tools. The current release supports read-only
access with a personal bearer token. OAuth onboarding is not available yet;
check that your client supports a remote HTTP MCP endpoint and a custom
Authorization header.
Availability
| Offer | MCP access |
|---|---|
| Self-hosted Community Edition | Included; the operator enables and operates it, without a subscription |
| Cloud Free and Solo, including a Solo trial | No hosted MCP |
| Team and a valid Team trial | Hosted MCP included when enabled by the operator |
| Existing hosted Business subscription | Existing equivalent integration rights are preserved |
See Billing & Plans. MCP does not grant access beyond the user's current organisation and permissions. It does not create, send, approve, post, or delete accounting documents. Your AI provider's subscription and data handling rules apply separately.
Enable the server
The operator enables both flags on the installation:
FEATURE_API_ACCESS=true
FEATURE_MCP_ACCESS=true
MCP is off by default. In CE, no EE plugin or commercial subscription is
required. In hosted mode, server flags alone cannot grant access: the current
organisation must also have the mcp_access entitlement. Each request checks
this entitlement, the token, membership, and current permissions.
Create a personal read-only token
An authorised user can create a personal token in Settings → API tokens.
Select only the read permissions needed by the client. Organization tokens,
wildcard (*) tokens, and tokens with write permissions are not accepted.
An installation operator can also create an owner token with:
php artisan gaeld:token ORGANIZATION_UUID --mcp --name="AI assistant"
The default scopes are invoicing.view and expenses.view; existing tokens
are not expanded automatically. To add reports explicitly:
php artisan gaeld:token ORGANIZATION_UUID --mcp --name="Accounting reports" --abilities=reporting.view --abilities=invoicing.view --abilities=expenses.view
The command sets a 30-day expiry by default; the configured Sanctum global
expiration may end access earlier. --expires-in-days=7 selects a shorter
explicit lifetime. Keep the token private; it is displayed only when created.
Connect the client
Use your installation's HTTPS /mcp endpoint with this header:
Authorization: Bearer YOUR_PERSONAL_TOKEN
Use one token per connection and organisation. Connecting does not switch the organisation associated with the token. The client must support this token configuration; a server URL alone is not an OAuth connection.
Available tools and permissions
| Tools | Token scopes |
|---|---|
list_invoices, get_invoice | invoicing.view |
list_expenses, get_expense | expenses.view, or expenses.view-own for own expenses only |
get_profit_and_loss, get_balance_sheet | reporting.view |
get_aging_report — receivables | reporting.view and invoicing.view |
get_aging_report — payables | reporting.view and full expenses.view |
The user must have the corresponding permissions too. Reports additionally
require the user's accounting.view permission. Own-expense access never grants
organisation-wide payable totals. Tools outside the permitted scope are hidden
and calls to them are refused.
Profit and loss accepts from/to dates up to two years apart, or an authorised
fiscal_year_id. The balance sheet accepts as_of_date or a fiscal-year ID.
Aging accepts type (receivables or payables), as_of_date, and an optional
currency; by default it uses the organisation's currency. Details are
paginated, at most 50 items per page, while aging totals include all matching
items in that currency. Amounts are decimal strings. No currencies are combined
or converted by MCP.
Aging uses currently open documents and recorded balances, including partial payments and VAT on expenses. Its cutoff filters document dates and aging; it does not reconstruct historical document states. Payables are aged by expense date because expenses have no contractual due date. Reports may use the shared service cache for up to 30 minutes. Files and receipt paths are not returned.
Trials, plan changes, and revocation
A valid Team trial includes MCP; a Solo trial does not. When the Team trial expires, or a downgrade or cancellation becomes effective, hosted MCP access ends. A scheduled change leaves current Team rights in place until their end. An upgrade to Team can restore access if the token, membership, and permissions are still valid. Otherwise create a new authorised connection.
These changes do not delete accounting data or remove the applicable export rights. Revoke tokens in Settings → API tokens to stop further requests. Removing a member or reducing their permissions also takes effect on subsequent calls. Revocation does not retrieve data already sent to the AI provider.
Data sharing
The AI client receives the accounting data it requests. Choose the provider and permissions accordingly and review its retention policy. Gäld does not control copies retained by an external AI tool. A question typed into your assistant is not evidence that a full list was consulted: follow pagination and verify the period and currency in the returned report.