Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Self-hosted personal finance app with bank sync, budgets, net worth and investment tracking
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
DATABASE_URL, MCP_ENABLED, LEDGR_DATA_DIR, LEDGR_URL, BETTER_AUTH_URLค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"ledgr": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URL",
"-e",
"MCP_ENABLED",
"-e",
"LEDGR_DATA_DIR",
"-e",
"LEDGR_URL",
"-e",
"BETTER_AUTH_URL",
"ghcr.io/kentaniguchi-r/ledgr:0.3.4"
],
"env": {
"DATABASE_URL": "ใส่ค่าของคุณ",
"MCP_ENABLED": "ใส่ค่าของคุณ",
"LEDGR_DATA_DIR": "ใส่ค่าของคุณ",
"LEDGR_URL": "ใส่ค่าของคุณ",
"BETTER_AUTH_URL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add ledgr --env DATABASE_URL='ใส่ค่าของคุณ' --env MCP_ENABLED='ใส่ค่าของคุณ' --env LEDGR_DATA_DIR='ใส่ค่าของคุณ' --env LEDGR_URL='ใส่ค่าของคุณ' --env BETTER_AUTH_URL='ใส่ค่าของคุณ' -- docker run -i --rm -e DATABASE_URL -e MCP_ENABLED -e LEDGR_DATA_DIR -e LEDGR_URL -e BETTER_AUTH_URL ghcr.io/kentaniguchi-r/ledgr:0.3.4เติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"ledgr": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URL",
"-e",
"MCP_ENABLED",
"-e",
"LEDGR_DATA_DIR",
"-e",
"LEDGR_URL",
"-e",
"BETTER_AUTH_URL",
"ghcr.io/kentaniguchi-r/ledgr:0.3.4"
],
"env": {
"DATABASE_URL": "ใส่ค่าของคุณ",
"MCP_ENABLED": "ใส่ค่าของคุณ",
"LEDGR_DATA_DIR": "ใส่ค่าของคุณ",
"LEDGR_URL": "ใส่ค่าของคุณ",
"BETTER_AUTH_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"ledgr": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URL",
"-e",
"MCP_ENABLED",
"-e",
"LEDGR_DATA_DIR",
"-e",
"LEDGR_URL",
"-e",
"BETTER_AUTH_URL",
"ghcr.io/kentaniguchi-r/ledgr:0.3.4"
],
"env": {
"DATABASE_URL": "ใส่ค่าของคุณ",
"MCP_ENABLED": "ใส่ค่าของคุณ",
"LEDGR_DATA_DIR": "ใส่ค่าของคุณ",
"LEDGR_URL": "ใส่ค่าของคุณ",
"BETTER_AUTH_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
MCP_ENABLED envLEDGR_DATA_DIR envLEDGR_URL envBETTER_AUTH_URL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub KenTaniguchi-R ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: DATABASE_URL
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.4) เข้า registry 29 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Docker ในเครื่องด้วย
ในหมวดเดียวกันมี Finance Toolkit, SolidInvoice, Korea Tax Calculator
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.
Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Self-hostable personal finance app with automatic bank sync and AI agent support.
Ledgr connects to your bank accounts through Plaid or SimpleFIN, automatically syncs and categorizes transactions, and gives you budgets, investment tracking, bill detection, and financial reports — all running on your own server with your own data.
It also exposes an MCP server, so AI assistants like Claude can query your finances through natural conversation.
You: "How much did I spend on dining out last month?"
Claude: Based on your transactions, you spent $342.18 on dining out in April...
Querying your finances from Claude Code via MCP
Monthly budgets by category, tracked against real spending
Spending, income, cash flow, trends, and net worth reports
Requires Docker and Docker Compose.
curl -fsSL https://raw.githubusercontent.com/KenTaniguchi-R/ledgr/main/scripts/install.sh | sh
This creates a ledgr/ directory, downloads docker-compose.yml, and starts the app.
Prefer to see the steps first?
mkdir ledgr && cd ledgr
curl -O https://raw.githubusercontent.com/KenTaniguchi-R/ledgr/main/docker-compose.yml docker compose up -d
Visit http://localhost:4200, create an account, and start exploring.
On first boot, Ledgr generates an encryption key and session secret and stores them in the app data volume. Back up that volume (or the `/data/encryption-key` file) along with your database — losing the key means losing access to encrypted data like Plaid and SimpleFIN tokens. Prefer to manage the key yourself? Set ENCRYPTION_KEY in a .env file (see Configuration) and it takes precedence.
Add your Plaid keys to
.envto enable bank sync — see Connect Your Bank below (or skip the keys and use SimpleFIN). The app works without either via CSV import.
client_id and secret from Developers > Keys.env file next to your docker-compose.yml (start from .env.example if you don't have one): PLAID_CLIENT_ID=your_client_id
PLAID_SECRET=your_secret PLAID_ENV=production # or sandbox for fake data
3. Restart: `docker compose restart`
Plaid's free trial plan includes 10 production connections and unlimited sandbox access. After that, the Launch plan is pay-as-you-go with no contract. Don't have Plaid keys yet? The app still works — import transactions via CSV and add Plaid later.
Connect any of 12,000+ banks through Plaid
SimpleFIN works out of the box — no developer account or .env changes needed.
SimpleFIN has no webhooks, so accounts sync on a daily schedule (SCHEDULER_SIMPLEFIN_SYNC_CRON, see Configuration) instead of in real time. Investment holdings sync the same way as they do for Plaid.
Ledgr ships with a built-in MCP server and plugin support.
First, enable the MCP endpoint in your .env and restart:
MCP_ENABLED=true
Then pick your tool:
Claude Code
/plugin marketplace add KenTaniguchi-R/ledgr
/plugin install ledgr@ledgr
Codex CLI
codex plugin marketplace add KenTaniguchi-R/ledgr
OpenCode — add to opencode.json:
{
"$schema": "https://opencode.ai/config.json", "plugin": ["ledgr"] }
OpenClaw
openclaw plugins install ledgr --marketplace KenTaniguchi-R/ledgr
Hermes
hermes plugins install KenTaniguchi-R/ledgr
Other MCP clients (Cursor, Windsurf, Cline, etc.)
Point any MCP-compatible client to your Ledgr instance:
http://localhost:4200/api/mcp
On first connection, Ledgr redirects you through an OAuth flow to authorize access.
| Tool | Description |
|---|---|
list_accounts | Linked bank accounts and balances |
get_account_summary | Balance totals by account type |
get_transactions | Search and filter transactions |
update_transaction_category | Recategorize a transaction |
mark_transaction_transfer | Mark or unmark a transaction as a transfer |
get_budget | Budget progress for a month |
set_budget_category | Set a category's budget amount |
list_categories | Spending categories |
get_spending_report | Spending breakdown over a date range |
get_income_vs_expense | Income vs. expense trends |
get_net_worth_history | Net worth over time |
get_holdings | Investment portfolio holdings |
get_portfolio_summary | Portfolio value and allocation |
get_upcoming_bills | Recurring transactions and bills |
get_dashboard_summary | Overview of your finances |
show_financial_dashboard | Interactive dashboard widget |
sync_accounts | Trigger a bank sync |
Read, write, and sync tools are gated by OAuth scopes (ledgr:read, ledgr:write, ledgr:sync) that you grant during authorization.
Example prompts:
| Ledgr | Actual Budget | Firefly III | |
|---|---|---|---|
| Automatic bank sync | Plaid (12,000+ banks) or SimpleFIN | SimpleFIN (US/CA), GoCardless (EU/UK) | SimpleFIN, GoCardless, Spectre (via Data Importer) |
| Built-in MCP server | Yes | -- | -- |
| AI categorization | Yes (BYOK) | -- | -- |
| Investment tracking | Yes | -- | -- |
| Self-hostable | Yes | Yes | Yes |
| Database | PostgreSQL | SQLite | MySQL/Postgres |
| License | AGPL-3.0 | MIT | AGPL-3.0 |
docker compose pull
docker compose up -d
Migrations run automatically on container startup.
| Variable | Required | Default | Description |
|---|---|---|---|
ENCRYPTION_KEY | No | auto-generated | Encrypts Plaid tokens & API keys. Generated on first boot and persisted in the app data volume; set your own with openssl rand -hex 32 |
BETTER_AUTH_SECRET | No | auto-generated | Session secret, persisted in the app data volume. Set your own with openssl rand -base64 32 |
PORT | No | 4200 | Host port for the app |
POSTGRES_PASSWORD | No | ledgr | Database password (change in production) |
PLAID_CLIENT_ID | No | -- | Plaid client ID |
PLAID_SECRET | No | -- | Plaid secret key |
PLAID_ENV | No | production | production or sandbox |
PLAID_SYNC_MODE | No | poll | poll (scheduled) or webhook (real-time) |
PLAID_WEBHOOK_URL | No | -- | Public URL for Plaid webhooks (webhook mode) |
SCHEDULER_SIMPLEFIN_SYNC_CRON | No | 45 4 * * * | Daily SimpleFIN account sync (no webhooks, so this is the only sync trigger) |
AI_PROVIDER | No | -- | openai, anthropic, google, openrouter, or custom |
AI_API_KEY | No | -- | Provider API key for AI chat & categorization |
MCP_ENABLED | No | false | Enable the MCP endpoint for AI agents |
See .env.example for all options.
If you're self-hosting Ledgr, use the [Quick Start](#quick-start) above. The instructions below are for contributors.
git clone https://github.com/KenTaniguchi-R/ledgr.git
cd ledgr pnpm install cp .env.example .env # Fill in ENCRYPTION_KEY pnpm dev:setup # Start DB + migrate + dev server
To run the full app in Docker from source (instead of pulling the pre-built image):
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
pnpm dev # Dev server (Turbopack)
pnpm test # Unit + integration tests pnpm test:e2e # Playwright E2E tests pnpm lint # ESLint pnpm typecheck # Type checking pnpm db:studio # Drizzle Studio (DB browser)
| Layer | Choice |
|---|---|
| Framework | Next.js 16 (App Router) |
| Language | TypeScript |
| UI | shadcn/ui + Tailwind CSS 4 |
| Charts | Recharts 3 |
| Database | PostgreSQL 18 via Drizzle ORM |
| Auth | Better Auth |
| Bank Sync | Plaid Node SDK, SimpleFIN |
| AI | Vercel AI SDK (BYOK) |
| MCP | Model Context Protocol SDK |
| Testing | Vitest + Playwright + Stryker |
ตัดมาแค่ช่วงต้น อ่านต่อใน repo