Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Wafeq accounting API: all 251 endpoints as safety-categorized MCP tools, over stdio or HTTP.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
MCP_TRANSPORT, WAFEQ_API_KEY, WAFEQ_ACCESS_TOKEN, WAFEQ_TOOL_GROUPS, WAFEQ_API_BASE_URL, MCP_AUTH_TOKENค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"wafeq": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_TRANSPORT",
"-e",
"WAFEQ_API_KEY",
"-e",
"WAFEQ_ACCESS_TOKEN",
"-e",
"WAFEQ_TOOL_GROUPS",
"-e",
"WAFEQ_API_BASE_URL",
"-e",
"MCP_AUTH_TOKEN",
"ghcr.io/ohneben/wafeq-mcp:2.1.0"
],
"env": {
"MCP_TRANSPORT": "ใส่ค่าของคุณ",
"WAFEQ_API_KEY": "ใส่ค่าของคุณ",
"WAFEQ_ACCESS_TOKEN": "ใส่ค่าของคุณ",
"WAFEQ_TOOL_GROUPS": "ใส่ค่าของคุณ",
"WAFEQ_API_BASE_URL": "ใส่ค่าของคุณ",
"MCP_AUTH_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add wafeq --env MCP_TRANSPORT='ใส่ค่าของคุณ' --env WAFEQ_API_KEY='ใส่ค่าของคุณ' --env WAFEQ_ACCESS_TOKEN='ใส่ค่าของคุณ' --env WAFEQ_TOOL_GROUPS='ใส่ค่าของคุณ' --env WAFEQ_API_BASE_URL='ใส่ค่าของคุณ' --env MCP_AUTH_TOKEN='ใส่ค่าของคุณ' -- docker run -i --rm -e MCP_TRANSPORT -e WAFEQ_API_KEY -e WAFEQ_ACCESS_TOKEN -e WAFEQ_TOOL_GROUPS -e WAFEQ_API_BASE_URL -e MCP_AUTH_TOKEN ghcr.io/ohneben/wafeq-mcp:2.1.0เติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"wafeq": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_TRANSPORT",
"-e",
"WAFEQ_API_KEY",
"-e",
"WAFEQ_ACCESS_TOKEN",
"-e",
"WAFEQ_TOOL_GROUPS",
"-e",
"WAFEQ_API_BASE_URL",
"-e",
"MCP_AUTH_TOKEN",
"ghcr.io/ohneben/wafeq-mcp:2.1.0"
],
"env": {
"MCP_TRANSPORT": "ใส่ค่าของคุณ",
"WAFEQ_API_KEY": "ใส่ค่าของคุณ",
"WAFEQ_ACCESS_TOKEN": "ใส่ค่าของคุณ",
"WAFEQ_TOOL_GROUPS": "ใส่ค่าของคุณ",
"WAFEQ_API_BASE_URL": "ใส่ค่าของคุณ",
"MCP_AUTH_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"wafeq": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_TRANSPORT",
"-e",
"WAFEQ_API_KEY",
"-e",
"WAFEQ_ACCESS_TOKEN",
"-e",
"WAFEQ_TOOL_GROUPS",
"-e",
"WAFEQ_API_BASE_URL",
"-e",
"MCP_AUTH_TOKEN",
"ghcr.io/ohneben/wafeq-mcp:2.1.0"
],
"env": {
"MCP_TRANSPORT": "ใส่ค่าของคุณ",
"WAFEQ_API_KEY": "ใส่ค่าของคุณ",
"WAFEQ_ACCESS_TOKEN": "ใส่ค่าของคุณ",
"WAFEQ_TOOL_GROUPS": "ใส่ค่าของคุณ",
"WAFEQ_API_BASE_URL": "ใส่ค่าของคุณ",
"MCP_AUTH_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
WAFEQ_TOOL_GROUPS envWAFEQ_API_BASE_URL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub ohneben ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: MCP_TRANSPORT, WAFEQ_API_KEY, WAFEQ_ACCESS_TOKEN, MCP_AUTH_TOKEN
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (2.1.0) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Run your Wafeq books in plain language from AI assistants like Claude, Cursor, and any other MCP client.
This Model Context Protocol server exposes the Wafeq Public API — all 251 endpoints, generated straight from the OpenAPI spec into MCP tools, plus two hand-written ones. Every tool carries a safety category (🟢 read-only / 🟡 write / 🟠 state change / 🔴 irreversible or destructive) so your assistant knows what an action does *before* it calls it — including the difference between saving an invoice and filing it with a tax authority, which no CRUD-shaped wrapper can tell you. It runs over stdio (Claude Desktop and other local launchers) or Streamable HTTP (hosted in Docker), and ships with retries, client-side rate limiting, request timeouts, idempotency keys, multipart upload and binary PDF handling so it holds up against a live book.
Some MCP servers just forward an API. This one is built to be safe to hand to an LLM and easy to run against real accounting data:
| What you get | Why it matters |
|---|---|
| All 251 endpoints, spec-driven | Full coverage of invoices, bills, quotes, credit and debit notes, payments, banking, journals, payroll, projects, inventory and reports — nothing hand-picked or left behind. |
| Nine safety categories, not four 🟢 / 🟡 / 🟠 / 🔴 | A dozen of Wafeq's POSTs are not creates. Previews write nothing; ending an amortization early posts to the ledger with no undo; reporting an invoice to a tax authority leaves your organization permanently. Each gets its own banner instead of being lumped in with "create". |
| Server instructions sent on connect | The client is told how to read the safety banners and the handful of Wafeq conventions — date format, decimal separator, whole-period report ranges — up front, instead of discovering them by getting a call wrong first. |
Machine-readable MCP annotations (readOnlyHint, destructiveHint) | Hosts that honor annotations (Claude included) can auto-trust the 98 read-only tools and demand confirmation before any of the 44 that delete or cannot be undone. |
| Correct report parameters, per report | Each of the four reports gets its own schema: balance sheet takes date + period_count; profit-and-loss and cash flow take date_after + date_before; trial balance takes from_date + to_date. Wafeq silently ignores misspelled query parameters, so a wrong name looks like a working call. |
| Whole-period validation before sending | Profit-and-loss and cash flow reject ranges that don't align to whole months or years. The server checks locally and replies with the nearest valid range instead of spending a round trip on an HTTP 400. |
| Automatic idempotency keys | Every one of the 146 write endpoints that supports X-Wafeq-Idempotency-Key gets a UUID v4 automatically, reused across retries — so a network hiccup can never duplicate an invoice. Supply your own to make a deliberate re-run safe too. |
| File uploads that actually work | POST /files/ is multipart-only and POST /files/raw/ needs a Content-Disposition header. Both are handled; you pass base64 content and a filename. |
| Binary PDFs handled as bytes | The nine PDF endpoints are base64-encoded into a small envelope with size and content type, instead of being read as text and corrupted. |
| Automatic retries with backoff | Transient 429 / 5xx responses are retried with jittered exponential backoff, honoring Retry-After — with the same idempotency key, exactly as Wafeq's integration guide requires. |
| Built-in rate limiting | Self-throttles so a burst of tool calls doesn't trip a 429. Wafeq publishes no numeric limit, so the default is deliberately conservative and configurable. |
| Tenant verified at startup | A Wafeq API key is organization-scoped. The server calls GET /organization/ before serving and publishes the result on /health, so a mis-set key shows up as a name you can check rather than as writes against the wrong company's books. |
| **Two transports: stdio *and* Streamable HTTP** | Use it locally in Claude Desktop, or run one always-on server that any number of MCP clients reach over HTTP. |
| Docker + docker-compose, health check, auto-restart | docker compose up and it stays up, bound to localhost only. |
| Optional bearer-token auth on the HTTP endpoint | Put the server behind a shared secret the moment it's reachable beyond localhost. |
| Your secrets never reach the model | Credentials live in the server's environment and are injected on every request. The passthrough tool cannot override Authorization or point the credential at another host. |
| Drop-in spec updates | Wafeq ships a newer spec? Replace one file and rebuild — new endpoints become new tools automatically, no code changes. |
| Capability | This project | Generic OpenAPI→MCP wrapper\* |
|---|---|---|
| All 251 Wafeq endpoints as tools | ✅ | ✅ |
| Per-tool safety category + banner | ✅ | ❌ |
| Tax-authority filing flagged as irreversible, not "create" | ✅ | ❌ |
readOnlyHint / destructiveHint MCP annotations | ✅ | ➖ |
| Read-only fields stripped from create/update bodies | ✅ | ❌ |
| Duplicated enum prose compacted out of schemas | ✅ | ❌ |
| Correct, per-report date parameters | ✅ | ✅ |
| Whole-period range validated before sending | ✅ | ❌ |
Automatic X-Wafeq-Idempotency-Key, stable across retries | ✅ | ❌ |
| Multipart + raw-binary file upload | ✅ | ➖ |
| Binary PDF responses base64-encoded, not mangled | ✅ | ➖ |
| Transaction dates recovered for journal line items | ✅ | ❌ |
Automatic retries on 429 / 5xx (honors Retry-After) | ✅ | ❌ |
| Client-side rate limiting | ✅ | ❌ |
| Organization identity verified at startup | ✅ | ❌ |
stdio transport | ✅ | ✅ |
| Streamable-HTTP transport | ✅ | ➖ |
| Docker + docker-compose, health check, auto-restart | ✅ | ❌ |
| Optional bearer-token auth on the endpoint | ✅ | ❌ |
| License | MIT | varies |
\*Generic OpenAPI→MCP wrappers turn any spec into MCP tools. They can reach the same endpoints, but treat every operation identically — and against Wafeq's spec specifically they inherit the read-only-required-field problem described in MIGRATION.md. "➖" = varies by tool / not guaranteed.
Once it's connected, ask your assistant things like:
Claude / Cursor / any MCP client ──MCP──► this server ──HTTPS──► Wafeq API (your organization)
At startup the server parses the bundled OpenAPI spec into MCP tools — resolving $refs, guarding against recursive schemas, and stripping server-assigned (readOnly) fields out of request bodies — tags each tool with its safety category, verifies which Wafeq organization the credentials belong to, and then injects your credential on every outgoing request. Your key stays in the server's environment; the model never sees or handles it.
1. Add your credentials. Copy the example config and fill it in:
cp .env.example .env
Then edit .env and set WAFEQ_API_KEY. Unless HOST is a loopback address the server also requires MCP_AUTH_TOKEN and refuses to start without one, so set it to a long random string: MCP_AUTH_TOKEN=$(openssl rand -hex 32).
2. Start the server:
docker compose up -d --build
docker-compose.yml binds to 127.0.0.1:8765 only, so the server is reachable from your machine but not from the network.
3. Confirm it's running — and that it's pointed at the right books:
curl -s http://localhost:8765/health
{
"status": "ok", "server": "wafeq-mcp", "version": "2.0.0", "tools": 253, "organization": { "status": "ok", "id": "org_...", "name": "Your Company FZCO", "base_currency": "EUR", "country": "AE" }, "auth_required": false }
Check the `name` field. That is the organization your key writes to. If it isn't the company you expected, stop and fix the key before doing anything else. /health answers 503 and "status": "degraded" when the credentials can't be verified.
4. Point your MCP client at it: http://localhost:8765/mcp (Streamable HTTP).
Remote endpoints are added to Claude as a custom connector (Settings → Connectors), or bridged locally with mcp-remote. For the bridge, add this under mcpServers in your client config and restart the app completely:
{
"mcpServers": { "wafeq": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8765/mcp", "--header", "Authorization: Bearer YOUR_MCP_AUTH_TOKEN" ] } } }
(Drop the --header line only if the server runs without a token, which it allows on a loopback bind alone.)
Every release publishes a ready-to-run image to the GitHub Container Registry, so you can skip the local build entirely:
docker run -d --name wafeq-mcp -p 127.0.0.1:8765:8765 --env-file .env \
ghcr.io/ohneben/wafeq-mcp:latest
Pin a version (:2.0.0) rather than latest if you want releases to be something you opt into.
The server is published to the MCP Registry as io.github.ohneben/wafeq-mcp, so registry-aware clients can install it by name. The registry entry launches the image over stdio — see Run the container over stdio for the equivalent hand-written config.
curl -s "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.ohneben%2Fwafeq-mcp/versions/latest"
Private API key (most people): in Wafeq, go to **Settings
ตัดมาแค่ช่วงต้น อ่านต่อใน repo