_Docs/
Get StartedModulesPlatformDeployCookbookChangelogReference
_Platform
  • Architecture
    • Single sign-on (SSO) for organizationsEE
    • Access ControlEE
    • Invite users
    • Audit LogsEE
    • Event Streaming
    • Webhooks
  • SDKs
  • Releases policy
  • MCP
  1. MCP
Platform

MCP

The Formance MCP server exposes selected Formance capabilities to MCP-compatible clients such as coding assistants and local agent runtimes. It lets an agent inspect financial data and validate Numscript without giving it write access to the stack.

MCP support requires Stack v3.2 or later and fctl v3.4.0 or later.

Enable MCP on a stack#

Check your local fctl version before enabling MCP:

Bash
fctl version

Enable the MCP module on the target stack with fctl:

Bash
fctl stack module enable mcp

Run this command from an authenticated fctl context that targets the organization and stack where MCP should be enabled.

Run MCP over stdio#

MCP clients typically start the server as a local process and communicate with it over standard input and output. With Formance, fctl can serve as the MCP process:

Bash
fctl stack mcp serve --transport=stdio

Your MCP client configuration should pass the target organization and stack to fctl. The exact configuration format depends on the client:

JSON
{
  "mcpServers": {
    "formance": {
      "command": "fctl",
      "args": [
        "--organization=YOUR_ORGANIZATION_ID",
        "--stack=YOUR_STACK_ID",
        "stack",
        "mcp",
        "serve",
        "--transport=stdio"
      ]
    }
  }
}

Replace the --organization and --stack values with your own environment.

Available capabilities#

The MCP server is read-only for Formance data. It is intended for exploration, diagnostics, and assisted development workflows.

AreaCapabilities
LedgerRead ledgers, accounts, balances, volumes, transactions, and related metadata.
PaymentsRead payments data and inspect payment-related resources.
ReconciliationRead reconciliation data to investigate matching and reconciliation state.
NumscriptValidate Numscript before running it against a ledger workflow.

MCP tools can expose sensitive financial data to the client that starts them. Only configure the Formance MCP server in trusted clients and environments.

Typical workflow#

  1. Enable the mcp module on a Stack v3.2 or later stack.
  2. Configure your MCP client to start fctl stack mcp serve --transport=stdio.
  3. Ask the client to inspect Ledger, Payments, or Reconciliation state.
  4. Use Numscript validation before promoting a script into an operational workflow.
Releases policy
On This Page
  • Enable MCP on a stack
  • Run MCP over stdio
  • Available capabilities
  • Typical workflow