MCP Server
Connect agents to the current LedgerHQ partner workflow.
LedgerHQ exposes an MCP Streamable HTTP endpoint at:
https://preview.ledgerhq.pro/api/mcpMCP uses OAuth 2.1 with PKCE. MCP tools are scoped to the consent/default
organization and use direct database-backed services rather than HTTP self-calls.
The REST integration uses the same OAuth token account-wide, then scopes each
company request with x-organization-id.
Current Tool Coverage
The generated inventory exposes the MCP tools registered through
lib/mcp/tools/index.ts. Tool files for hidden or future app modules may remain
in the repository, but only registered files are part of the live MCP surface.
Organization
connection_statusget_organizationlist_accessible_organizationslist_firm_clientscreate_client
Accounts
list_accountsget_accountcreate_accountupdate_accountdelete_account
Journal Entries
list_entriesget_entrycreate_entrypost_entryvoid_entrycreate_journal_entry
Posting Resources
create_purchasecreate_depositcreate_transfercreate_bill_paymentcreate_journal_entry
Banking Follow-Through
list_bank_accountsget_bank_accountlist_bank_transactionsget_bank_transactioncategorize_bank_transactionreclassify_bank_transactionreconcile_bank_transactionexclude_bank_transactionget_bank_reconciliation_status
Reports
trial_balancebalance_sheetprofit_and_lossget_report_export_urlgenerate_financial_packet_json
get_report_export_url returns a REST download URL plus the headers an agent
must send, including the same OAuth bearer token and the scoped
x-organization-id value.
Fixed Assets
list_fixed_assetsget_fixed_assetcreate_fixed_assetupdate_fixed_assetdelete_fixed_assetdepreciate_fixed_assetdispose_fixed_assetrun_fixed_asset_depreciation
Billing, Notifications, And Utilities
The exposed MCP surface also includes Stripe integration tools, notification tools, bank rules, import/export for the supported accounting migration surface, backups, and period close tools.
Amount Conventions
Monetary amounts in the documented LedgerHQ workflow are integer cents unless a tool description says otherwise.
Connect
Most MCP clients can connect directly to the server URL and complete OAuth in a browser:
curl -fsSL https://preview.ledgerhq.pro/install-codex-mcp.sh | bashManual Codex setup:
codex mcp add ledgerhq --url https://preview.ledgerhq.pro/api/mcp
codex mcp login ledgerhq
codex mcp listclaude mcp add LedgerHQ --transport streamable-http https://preview.ledgerhq.pro/api/mcpUse the same LedgerHQ host your team signs into.
Codex users connect through LedgerHQ OAuth MCP. The setup does not ask for API keys, copied bearer tokens, provider credentials, or database URLs.