Integration

Formance Ledger integration

Formance Ledger is an open-source, self-hosted programmable financial ledger for modelling money movement. Create and list ledgers with their metadata and storage bucket, post and list double-entry transactions written in Numscript, read one transaction, revert it, and set or delete transaction metadata; list accounts, read one by address and manage its metadata; read aggregated balances, per-account and per-asset volumes with balances, and ledger statistics; group many writes into a single bulk request; list, export and import the ledger's append-only log; manage ledger schemas by version and run stored query templates; and administer buckets and the exporters and pipelines that stream ledger activity to external systems. Only the v2 API is exposed; the deprecated unversioned routes of the same document are not. The host is part of the credential because every install is its own deployment. Authentication is a bearer access token, issued by Formance's authentication service through the client-credentials grant or by whatever gateway fronts a self-hosted deployment.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Formance Ledger.Built from the 41 Formance Ledger tools below, on the connection you add once.

What you can do with Formance Ledger

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Metadata, 6 operations

  • add_metadata_to_accountAdd metadata to accountPOSTAgents: ask firstAdd metadata to an account.
  • add_metadata_to_transactionAdd metadata to transactionPOSTAgents: ask firstSet the metadata of a transaction by its ID.
  • delete_account_metadataDelete account metadataDELETEAgents: ask firstDelete metadata by key.
  • delete_ledger_metadataDelete ledger metadataDELETEAgents: ask firstDelete ledger metadata by key.
  • delete_transaction_metadataDelete transaction metadataDELETEAgents: ask firstDelete metadata by key.
  • update_ledger_metadataUpdate ledger metadataPUTAgents: ask firstUpdate ledger metadata.

Exporter, 5 operations

  • create_exporterCreate exporterPOSTAgents: ask firstCreate exporter.
  • delete_exporterDelete exporterDELETEAgents: ask firstDelete exporter.
  • get_exporter_stateGet exporter stateGETAgents: ask firstGet exporter state.
  • list_exportersList exportersGETAgents: ask firstList exporters.
  • update_exporterUpdate exporterPUTAgents: ask firstUpdate exporter.

Pipeline, 4 operations

  • create_pipelineCreate pipelinePOSTAgents: ask firstCreate pipeline.
  • delete_pipelineDelete pipelineDELETEAgents: ask firstDelete pipeline.
  • get_pipeline_stateGet pipeline stateGETAgents: ask firstGet pipeline state.
  • list_pipelinesList pipelinesGETAgents: ask firstList pipelines.

Schema, 3 operations

  • create_schemaCreate schemaPOSTAgents: ask firstInsert a schema for a ledger.
  • get_schemaGet schemaGETAgents: ask firstGet a schema for a ledger by version.
  • list_schemasList schemasGETAgents: ask firstList all schemas for a ledger.

Transaction, 3 operations

  • create_transactionCreate transactionPOSTAgents: ask firstCreate a new transaction to a ledger.
  • get_transactionGet transactionGETAgents: ask firstGet transaction from a ledger by its ID.
  • list_transactionsList transactionsGETAgents: ask firstList transactions from a ledger.

V2, 3 operations

  • create_ledgerCreate ledgerPOSTAgents: ask firstCreate a ledger.
  • get_ledgerGet ledgerGETAgents: ask firstGet a ledger.
  • list_ledgersList ledgersGETAgents: ask firstList ledgers.

Account, 2 operations

  • get_accountGet accountGETAgents: ask firstGet account by its address.
  • list_accountsList accountsGETAgents: ask firstList accounts from a ledger.

Balance, 1 operation

  • get_aggregated_balancesGet aggregated balancesGETAgents: ask firstGet the aggregated balances from selected accounts.

Bucket, 1 operation

  • delete_bucketDelete bucketDELETEAgents: ask firstDelete bucket.

Bulk, 1 operation

  • run_bulk_requestRun bulk requestPOSTAgents: ask firstBulk request.

Export, 1 operation

  • export_logsExport logsPOSTAgents: ask firstExport logs.

Import, 1 operation

  • import_logsImport logsPOSTAgents: ask firstcreate import.

Info, 1 operation

  • get_ledger_infoGet ledger infoGETAgents: ask firstGet information about a ledger.

Log, 1 operation

  • list_logsList logsGETAgents: ask firstList the logs from a ledger.

Reset, 1 operation

  • reset_pipelineReset pipelinePOSTAgents: ask firstReset pipeline.

Restore, 1 operation

  • restore_bucketRestore bucketPOSTAgents: ask firstRestore bucket.

Revert, 1 operation

  • revert_transactionRevert transactionPOSTAgents: ask firstRevert a ledger transaction by its ID.

Run, 1 operation

  • run_query_templateRun query templatePOSTAgents: ask firstRun a query template.

Start, 1 operation

  • start_pipelineStart pipelinePOSTAgents: ask firstStart pipeline.

Stat, 1 operation

  • get_ledger_statsGet ledger statsGETAgents: ask firstGet statistics from a ledger.

Stop, 1 operation

  • stop_pipelineStop pipelinePOSTAgents: ask firstStop pipeline.

Volume, 1 operation

  • list_volumes_with_balancesList volumes with balancesGETAgents: ask firstGet list of volumes with balances for (account/asset).

Use Formance Ledger from Claude Code, Cursor or Codex

Connect Formance Ledger in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Formance Ledger operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Formance Ledger

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Formance Ledger once

    Add your Formance Ledger connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Formance Ledger integration FAQ

What can you do with the Formance Ledger integration?

LiveContext exposes 41 operations on Formance Ledger, covering metadata, exporter, pipeline and schema.

Popular integrations

Browse the whole catalog