
minhyeoky/mcp-server-ledger
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
minhyeoky/mcp-server-ledger는 MCP 서버 후보가 https://github.com/minhyeoky/mcp-server-ledger.에서 수입되었습니다
개요
minhyeoky/mcp-server-ledger는 MCP 서버 후보가 https://github.com/minhyeoky/mcp-server-ledger.에서 수입되었습니다
개요(AI 번역)
개요
Ledger CLI와 상호 작용하기위한 모델 Context Protocol 서버, 강력한 이중 기반 회계 시스템은 명령 줄에서 액세스 할 수 있습니다. 이 서버는 큰 언어 모델을 쿼리하고 Ledger CLI 도구를 통해 금융 데이터를 분석 할 수 있습니다.
이 MCP 서버는 표준화 된 인터페이스를 통해 Ledger CLI의 기능을 노출하여 재무보고, 예산 분석 및 회계 작업에 도움이되는 AI 조수를 쉽게 만듭니다.
특징
서버는 Ledger CLI 명령에 대한 맵이 다음과 같은 도구를 제공합니다.
ledger_balance
- 강력한 필터링 옵션으로 계정 잔액 표시
- 입력 : 쿼리 패턴, 날짜 범위, 디스플레이 옵션
- 반품 : 포맷 된 균형 보고서
- [T1]]
- 상세한 역사와 거래 등록
- 입력 : 쿼리 패턴, 날짜 범위, 정렬 옵션
- 반환 : 형식 등록 보고서
- [T2]]
- ledger 파일에서 모든 계정 목록
- 입력 : 옵션 쿼리 패턴
- 반품 : 일치하는 계정 목록
- [T3]]
- 거래에서 모든 급여 목록
- 입력 : 옵션 쿼리 패턴
- 반품 : 매치의 목록
- [T4]]
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
mcp-server-ledger: A Ledger CLI MCP Server
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
- Inputs: query pattern, date ranges, reporting period
- Returns: Budget report
-
ledger_raw_command- Runs a raw Ledger CLI command
- Input: command arguments as a list of strings
- Returns: Command output as text
Prerequisites
- Ledger CLI must be installed and available in your PATH
- A valid Ledger file with your financial data
Installation
Using Docker (recommended)
You can also use the Docker image from the minhyeoky/mcp-ledger repository:
docker pull minhyeoky/mcp-ledger
Add this to your claude_desktop_config.json:
"mcp-ledger": {
"command": "docker",
"args": [
"run",
"-v",
"/path/to/your/ledger/file.ledger:/main.ledger",
"-e",
"LEDGER_FILE=/main.ledger",
"-i",
"--rm",
"minhyeoky/mcp-ledger"
]
}
Replace /path/to/your/ledger/file.ledger with the actual path to your ledger file.
Installing via Smithery
설치
docker run -v /path/to/your/ledger/file.ledger:/main.ledger -e LEDGER_FILE=/main.ledger -i --rm minhyeoky/mcp-ledger설정
"mcpServers": {
"ledger": {
"command": "uv",
"args": [
"run",
"--env-file",
"/path/to/your/.env", // Optional: to set LEDGER_FILE
"--with",
"mcp[cli]",
"mcp",
"run",
"<repo_path>/main.py" // Path to the main.py file in this repository
]
}
}