Ledger CLISAFE
A Model Context Protocol server for interacting with Ledger CLI, a powerful double-entry accounting system. This server enables Large Language Models to query and analyze financial data through a standardized interface, making it easy for AI assistants to help with financial reporting, budget analys
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://mseep.ai/app/minhyeoky-mcp-server-ledger)
[](https://smithery.ai/server/@minhyeoky/mcp-ledger)
Overview
A Model Context Protocol server for interacting with Ledger CLI, a powerful, double-entry accounting system accessible from the command line. This server allows Large Language Models to query and analyze your financial data through the Ledger CLI tool.
This MCP server exposes Ledger CLI's functionality through a standardized interface, making it easy for AI assistants to help you with financial reporting, budget analysis, and accounting tasks.
Features
The server provides the following tools that map to Ledger CLI commands:
ledger_balance- Shows account balances with powerful filtering options
- Inputs: query pattern, date ranges, display options
- Returns: Formatted balance report
ledger_register- Shows transaction register with detailed history
- Inputs: query pattern, date ranges, sorting options
- Returns: Formatted register report
ledger_accounts- Lists all accounts in the ledger file
- Input: optional query pattern
- Returns: List of matching accounts
ledger_payees- Lists all payees from transactions
- Input: optional query pattern
- Returns: List of matching payees
ledger_commodities- Lists all commodities (currencies) used
- Input: optional query pattern
- Returns: List of matching commodities
ledger_print- Prints transactions in ledger format
- Inputs: query pattern, date ranges
- Returns: Formatted ledger entries
ledger_stats- Shows statistics about the ledger file
- Input: optional query pattern
- Returns: Statistical summary of the ledger
ledger_budget- Shows budget analysis
51ad97b00936OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-server-ledger -- uvx mcp-server-ledger
{
"mcpServers": {
"mcp-server-ledger": {
"command": "uvx",
"args": [
"mcp-server-ledger"
]
}
}
}Exposed tools (9)
9 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
ledger_accounts | read | cmd = [ |
ledger_balance | read | cmd = [ |
ledger_budget | read | cmd = [ |
ledger_commodities | read | cmd = [ |
ledger_payees | read | cmd = [ |
ledger_print | read | cmd = [ |
ledger_raw_command | read | return run_ledger(params.command) |
ledger_register | read | cmd = [ |
ledger_stats | read | cmd = [ |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
Gates applied: no_behavioural_pass, no_license.
51ad97b00936full audit observations/trust-audit/mcp-server/minhyeoky__ledger-cli.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 51ad97b00936 | SAFE | B | 89 | first audit |
Questions
What is the Ledger CLI MCP server?
A Model Context Protocol server for interacting with Ledger CLI, a powerful double-entry accounting system. This server enables Large Language Models to query and analyze financial data through a standardized interface, making it easy for AI assistants to help with financial reporting, budget analys
What tools does Ledger CLI expose?
9 in total: 9 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Ledger CLI safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Ledger CLI need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (51ad97b00936), read on 2026-10-08. The repository is watched and re-audited when it changes.