Skip to content

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.

By the Ledgorithm team. Last reviewed .

Endpoints

EndpointTransportAuthenticationUse it for
https://ledgorithm.com/api/mcpStreamable HTTPOAuth 2.1Full agent access that you grant in the browser
https://ledgorithm.com/api/mcp/externalStreamable HTTP, JSON repliesBearer API keyLimited invoice drafting from a sales report

The server card is at /.well-known/mcp.json.

Authentication

  1. The client calls the MCP URL and receives a 401 that points to the protected resource metadata.
  2. The client reads the metadata and opens Ledgorithm sign-in in your browser.
  3. You choose the businesses and the access level, then approve.
  4. 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.
ToolsetCovers
coreEveryday agent tasks: workspaces, profit and cash, unpaid invoices and bills, bank queue proposals, vendor spend, reconciliation status, bill drafts and contact search.
reportsFinancial statements, ledger and transaction reports, and saved report views.
bankingBank accounts, bank queue and categorization proposals, reconciliation, imports and card or processor settlements.
salesCustomers, invoices, receipts, credits, estimates, unbilled charges and collections.
purchasesVendors, bills, purchase orders and vendor spend.
accountingJournal entries, the chart of accounts, month close, budgets, fixed assets, loans and recurring entries.
taxTax calculations and packages, sales tax, Form 1065 and partnership workpapers, 1099s and depreciation.
payrollPayroll runs, payroll cash and remittance reads and proposals.
documentsSource documents, evidence, document requests, extraction and retention.
adminOwner oversight, agent permissions, notifications, usage, connectors, migration and organization setup.
rentalsRental units, leases and tenant ledgers. Reserved for the rentals module.
reiMarket 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_workspace
  • agent_bank_queue
  • agent_bill_drafts
  • agent_discard_bill_draft
  • agent_issue_bill
  • agent_save_vendor
  • agent_update_bill_draft
  • aging_report
  • bank_proposal_review
  • bank_proposals_workspace
  • cash_position
  • categorize_bank_transaction
  • contact_summary
  • customer_balances
  • draft_agent_bill
  • draft_invoices
  • expenses_by_vendor
  • find_customers
  • general_ledger_report
  • get_close_status
  • get_open_item
  • invoice_list
  • issue_open_item
  • list_accounts
  • list_agent_drafts
  • list_entities
  • list_journal
  • list_open_items
  • list_proposals
  • list_workspaces
  • payments_received
  • preview_bank_categorization
  • record_open_item_payment
  • reverse_open_item_payment
  • review_bank_transaction
  • revise_open_item
  • run_report
  • sales_summary
  • save_contact
  • save_open_item
  • search
  • transaction_list
  • void_open_item
  • whoami_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.

ToolWhat it does
whoami_agentShows the connection: the business it is tied to, its limits, when the key expires, and how many invoices it drafted today. Read only.
find_customersSearches customer names for the business and returns only id and name. Read only.
draft_invoicesCreates 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_draftsLists 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.