MCP server reference
The Ledgorithm MCP server is a remote Model Context Protocol server at https://ledgorithm.com/api/mcp. It uses Streamable HTTP and OAuth 2.1. Its tools call the same services as the app and the REST API, so an agent's entry follows the same rules as a person's. This page lists the endpoints, the sign-in steps, the toolsets and the tool names.
Endpoints
| Endpoint | Transport | Authentication | Use it for |
|---|---|---|---|
https://ledgorithm.com/api/mcp | Streamable HTTP | OAuth 2.1 | Full agent access that you grant in the browser |
https://ledgorithm.com/api/mcp/external | Streamable HTTP, JSON replies | Bearer API key | Limited invoice drafting from a sales report |
The server card is at /.well-known/mcp.json.
Authentication
- The client calls the MCP URL and receives a 401 that points to the protected resource metadata.
- The client reads the metadata and opens Ledgorithm sign-in in your browser.
- You choose the businesses and the access level, then approve.
- The client sends the access token with each request. Tokens expire and can be revoked.
Toolsets
The endpoint lists the core toolset (40 tools) by default, so a new connection stays small. Name the toolsets you need in the URL. Calling a tool by name always works, listed or not.
https://ledgorithm.com/api/mcp?toolsets=core,banking
- The default list is core (40 tools). Add toolsets in the URL, for example https://ledgorithm.com/api/mcp?toolsets=core,banking.
- ?toolsets=all lists every agent-visible tool. Calling any tool by name works whether or not it is listed.
- Two discovery tools are always listed: list_toolsets shows each toolset with its tool count, and enable_toolsets returns the definitions of the toolsets you name.
- Human-only actions are not listed for agents. Calling one by name returns the place where a person does it.
- The same selection works on the key endpoint (https://ledgorithm.com/api/mcp/external). The public OpenAPI document (https://ledgorithm.com/api/v1/openapi.json?toolsets=core) lists the core toolset; other toolsets need a bearer token.
| Toolset | Covers |
|---|---|
core | Everyday agent tasks: workspaces, profit and cash, unpaid invoices and bills, bank queue proposals, vendor spend, reconciliation status, bill drafts and contact search. |
reports | Financial statements, ledger and transaction reports, and saved report views. |
banking | Bank accounts, bank queue and categorization proposals, reconciliation, imports and card or processor settlements. |
sales | Customers, invoices, receipts, credits, estimates, unbilled charges and collections. |
purchases | Vendors, bills, purchase orders and vendor spend. |
accounting | Journal entries, the chart of accounts, month close, budgets, fixed assets, loans and recurring entries. |
tax | Tax calculations and packages, sales tax, Form 1065 and partnership workpapers, 1099s and depreciation. |
payroll | Payroll runs, payroll cash and remittance reads and proposals. |
documents | Source documents, evidence, document requests, extraction and retention. |
admin | Owner oversight, agent permissions, notifications, usage, connectors, migration and organization setup. |
rentals | Rental units, leases and tenant ledgers. Reserved for the rentals module. |
rei | Market statistics by state, metro, county and ZIP, Florida parcel records, property search and property tax estimates. Read only. |
The key endpoint takes the same parameter, for example https://ledgorithm.com/api/mcp/external?toolsets=core,banking. The OpenAPI document follows the same rule: https://ledgorithm.com/api/v1/openapi.json?toolsets=core is the core list, and ?toolsets=all is the full file.
Claude Desktop
Claude Desktop reads command-based server entries. This one bridges the URL with mcp-remote, in your Claude Desktop configuration file.
{
"mcpServers": {
"ledgorithm": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://ledgorithm.com/api/mcp?toolsets=core,banking"
]
}
}
}Cursor
Cursor reads a remote server by URL, in ~/.cursor/mcp.json.
{
"mcpServers": {
"ledgorithm": {
"url": "https://ledgorithm.com/api/mcp?toolsets=core,banking"
}
}
}Tool areas
With ?toolsets=all the OAuth endpoint serves 493 tools that agents can use, grouped by accounting area. Examples are real tool names. Call list_toolsets after sign-in for the full list.
- Entities and accounts. Create and update entities, save accounts, set opening balances, and lock periods.
create_entity, update_entity, save_account, set_opening_balances, set_period_lock - Ledger and reports. Read the adjusted trial balance and ledger lists, reverse or correct entries, and post intercompany entries.
read_adjusted_trial_balance, read_complete_ledger_list, reverse_entry, correct_entry, post_intercompany - Banking and reconciliation. Connect banks, import transactions, review them, and save and complete bank reconciliations.
connect_plaid_bank, import_bank_transactions, review_bank_transaction, save_bank_reconciliation, complete_bank_reconciliation - Invoices and bills. Agents read invoices, bills, aging and open balances, and draft vendor bills for owner review. People issue invoices, record payments and save contacts.
save_open_item, issue_open_item, record_open_item_payment, draft_agent_bill, save_recurring_document - Customers and vendors. Save contacts, group them, and set their account defaults.
save_contact, set_contact_group, save_contact_account_defaults - Close and review. Check close status, preview a month close, and submit it for review.
get_close_status, preview_month_close, submit_month_close_review - Tax. Prepare 1099 worksheets, review vendor payment tax, and prepare tax drafts for review.
vendor_1099_workspace, save_vendor_1099_worksheet, prepare_tax_1065_draft - Documents. Reserve, upload, and link source documents to records.
reserve_document, finish_document_upload, link_document - Search and identity. Search records and check which connection is in use.
search, read_search_record, list_workspaces
Published tool names
account_reconciliation_workspaceagent_bank_queueagent_bill_draftsagent_discard_bill_draftagent_issue_billagent_save_vendoragent_update_bill_draftaging_reportbank_proposal_reviewbank_proposals_workspacecash_positioncategorize_bank_transactioncontact_summarycustomer_balancesdraft_agent_billdraft_invoicesexpenses_by_vendorfind_customersgeneral_ledger_reportget_close_statusget_open_iteminvoice_listissue_open_itemlist_accountslist_agent_draftslist_entitieslist_journallist_open_itemslist_proposalslist_workspacespayments_receivedpreview_bank_categorizationrecord_open_item_paymentreverse_open_item_paymentreview_bank_transactionrevise_open_itemrun_reportsales_summarysave_contactsave_open_itemsearchtransaction_listvoid_open_itemwhoami_agent
Tools on the API key endpoint
The API key endpoint exposes exactly these four tools. Call whoami_agent first to see the limits of the connection.
| Tool | What it does |
|---|---|
whoami_agent | Shows the connection: the business it is tied to, its limits, when the key expires, and how many invoices it drafted today. Read only. |
find_customers | Searches customer names for the business and returns only id and name. Read only. |
draft_invoices | Creates invoice drafts from a sales report, up to 100 per call. A person reviews and issues them. It never issues, pays, edits or deletes. |
list_agent_drafts | Lists the invoices this connection drafted, with status, customer, and amount. Read only. |
Safety
Write tools take a mode. dry_run previews the ledger effect and changes nothing. propose sends it to a person for approval. commit applies it only when agent policy allows. The full model is on the agent safety model page.
Start with the free plan
Ledgorithm is full double-entry accounting software on the free plan. Upload your bank statements, enter your opening balances and see your own numbers before you decide anything else.