Connect Claude, ChatGPT, Cursor or any MCP client
To connect an AI assistant to Ledgorithm, add https://ledgorithm.com/api/mcp as a remote MCP server in your client and sign in when the browser opens. You choose which businesses the connection may use. The assistant can then read the books and propose changes, and a person approves what posts unless the owner has set a rule for specific routine entries.
The URL
Add this remote MCP server to your client. It uses Streamable HTTP and OAuth.
https://ledgorithm.com/api/mcpClaude
In Claude, add a custom connector with the URL above and sign in when prompted. In Claude Code, run the command below. Client menus change, so check Claude's current help if the menu names differ.
claude mcp add --transport http ledgorithm https://ledgorithm.com/api/mcpChatGPT
Add an MCP server as a custom connector in ChatGPT settings, paste the URL above, and sign in when prompted. Check ChatGPT's current help for which plans include connectors.
Cursor and other clients
Cursor reads a JSON file in your project, shown below. Other clients that accept remote Streamable HTTP servers can use the same URL, with the config their own documentation describes.
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"ledgorithm": {
"url": "https://ledgorithm.com/api/mcp"
}
}
}Other clients that read an mcpServers file
{
"mcpServers": {
"ledgorithm": {
"type": "http",
"url": "https://ledgorithm.com/api/mcp"
}
}
}Agents with an API key
Create a key for one business in Ledgorithm and store it as a secret. Send it as a bearer token to the limited endpoint, which exposes four tools and cannot issue, pay, edit or delete invoices. Keys have limits and expire.
curl -X POST https://ledgorithm.com/api/mcp/external \
-H "Authorization: Bearer $LEDGORITHM_AGENT_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Check the connection
On the OAuth endpoint, ask the assistant to call list_workspaces and tell you which businesses it can see. On the API key endpoint, ask it to call whoami_agent, which shows the business the key is tied to, its limits and its expiry. Do this before you ask for any work.
Try these once connected
- Show profit and loss for each entity for last quarter.
- List bank transactions that still need review and suggest categories.
- Draft a vendor bill from this PDF and leave it for my review.
- Explain the biggest changes in cash flow this month.
Next steps
Read the agent safety model before you give an assistant write access, and the MCP server reference for the tool names. The REST API has its own reference, and the OpenAPI description is at https://ledgorithm.com/api/v1/openapi.json.
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.