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:
fctl versionEnable the MCP module on the target stack with fctl:
fctl stack module enable mcpRun 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:
fctl stack mcp serve --transport=stdioYour MCP client configuration should pass the target organization and stack to fctl.
The exact configuration format depends on the client:
{
"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.
| Area | Capabilities |
|---|---|
| Ledger | Read ledgers, accounts, balances, volumes, transactions, and related metadata. |
| Payments | Read payments data and inspect payment-related resources. |
| Reconciliation | Read reconciliation data to investigate matching and reconciliation state. |
| Numscript | Validate 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#
- Enable the
mcpmodule on a Stack v3.2 or later stack. - Configure your MCP client to start
fctl stack mcp serve --transport=stdio. - Ask the client to inspect Ledger, Payments, or Reconciliation state.
- Use Numscript validation before promoting a script into an operational workflow.