invoiceflow-mcp
InvoiceFlow MCP
Model Context Protocol을 위한 AI 기반 송장 자동화
InvoiceFlow는 전문적인 PDF 송장을 생성하고, AI를 사용하여 연체 위험을 예측하며, 자동으로 알림을 보내고, 들어오는 결제 내역을 송장과 대조하며, 현금 흐름을 추적합니다. 이 모든 기능은 MCP 프로토콜을 통해 이루어집니다.
주요 기능
전문적인 PDF 송장: 품목, 세금, 할인, 다중 통화(10개 통화) 지원
AI 위험 예측 (0-100): 송장 금액, 고객 이력, 마감일, 알림 이력을 기반으로 예측
스마트 알림: 위험 수준에 따른 단계적 알림 발송
결제 조정: 금액 및 결제자 이메일을 기준으로 들어오는 결제 내역과 송장 매칭 (플랫폼 독립적 — 수동 입력 또는 웹훅 제공 결제 데이터와 작동)
현금 흐름 보고: 회수율, 예상 수입, 고객별 분석 제공
고객 관리: 자동 결제 이력 추적
순차적 송장 번호: (INV-2026-0001, INV-2026-0002, ...)
10개의 MCP 도구 + 4개의 MCP 리소스: 전체 송장 발행 주기 지원
Related MCP server: Invoice Generator AI MCP
빠른 시작
MCPize 마켓플레이스에서 설치
mcpize.com에서 InvoiceFlow MCP를 검색하세요.
**설치(Install)**를 클릭하고 구독 티어를 선택하세요.
도구와 리소스가 MCP 호환 클라이언트에서 자동으로 사용 가능해집니다.
소스에서 빌드
git clone https://github.com/enzoemir1/invoiceflow-mcp.git
cd invoiceflow-mcp
npm ci
npm run buildMCP 클라이언트 설정에 추가:
{
"mcpServers": {
"invoiceflow": {
"command": "node",
"args": ["path/to/invoiceflow-mcp/dist/index.js"]
}
}
}도구
client_manage
새 고객을 생성합니다. 송장 생성 전에 필수입니다.
invoice_create
품목이 포함된 송장을 생성합니다. 소계, 세금, 할인 및 총액을 자동으로 계산합니다. 순차적인 송장 번호(INV-YYYY-NNNN)를 생성합니다.
invoice_send
이메일을 통해 송장 PDF를 전송합니다 (SENDGRID_API_KEY 필요). 상태를 "sent"로 업데이트합니다.
invoice_list
상태, 고객, 금액 범위, 날짜 범위 또는 연체 여부별로 송장을 필터링합니다. 페이지네이션을 지원합니다.
invoice_mark_paid
송장을 결제 완료(전액 또는 일부)로 표시합니다. 고객 결제 이력을 자동으로 업데이트합니다.
invoice_remind
결제 알림을 보냅니다. 알림 횟수를 증가시킵니다. 사용자 지정 메시지를 지원합니다.
invoice_risk
AI 기반 연체 위험 예측(0-100). 위험 수준, 요인 분석, 권장 조치, 다음 알림 날짜를 반환합니다.
cashflow_report
현금 흐름 요약 생성: 총 발행액, 회수액, 미수금, 연체액, 회수율, 30일 예상 수입.
payment_reconcile
금액과 결제자 이메일을 기준으로 들어오는 결제 내역을 송장과 매칭합니다. 자동으로 결제 완료 처리합니다.
리소스
리소스 | 설명 |
| 미결제 송장 전체 |
| 마감일이 지난 송장 |
| 월간 현금 흐름 요약 |
| 결제 이력이 포함된 모든 고객 |
위험 예측 엔진
4가지 가중치 요인을 사용하여 송장 점수를 0-100으로 매깁니다:
요인 | 가중치 | 측정 항목 |
송장 금액 | 20% | 금액이 클수록 위험도 높음 |
고객 이력 | 35% | 결제율, 연체 이력, 평균 결제일 |
마감일 | 30% | 마감일까지 남은 일수/지난 일수 |
알림 횟수 | 15% | 이미 발송된 알림 횟수 |
위험 수준: 낮음(0-30), 보통(31-60), 높음(61-100)
설정
.env.example을 .env로 복사하고 필요한 변수를 설정하세요:
cp .env.example .env변수 | 필수 여부 | 설명 |
| 이메일 발송 시 | SendGrid를 통해 송장 및 알림 발송 |
SendGrid는 선택 사항입니다. InvoiceFlow는 송장 생성, 위험 점수 산정, 현금 흐름 보고 및 조정 기능을 오프라인에서 완전히 수행할 수 있습니다. 이메일 발송이 필요할 때만 SendGrid를 추가하세요.
로드맵: Stripe & PayPal 실시간 동기화
payment_reconcile 도구는 현재 (CSV, 웹훅 또는 수동 입력에서) 제공한 금액을 저장된 송장과 매칭합니다. 웹훅 리스너를 포함한 직접적인 Stripe 및 PayPal API 통합은 v2.0에서 계획되어 있습니다. 진행 상황은 issues를 확인하세요.
사용 예시
고객 및 송장 생성
> Create a client "Acme Corp" with email billing@acme.com
✓ Client created: Acme Corp (id: 3f2a...)
> Create an invoice for Acme Corp: 10 hours consulting at $150/hr, 20% tax
✓ Invoice INV-2026-0001 created
Subtotal: $1,500.00 | Tax: $300.00 | Total: $1,800.00결제 위험 평가
> What's the risk score for invoice INV-2026-0001?
Risk Score: 42/100 (Medium)
- Invoice Amount: 25 (moderate amount)
- Client History: 50 (new client)
- Due Date: 15 (due in 28 days)
- Reminders: 10 (none sent)
Recommended: Send an early reminder with a polite tone.현금 흐름 보고서 생성
> Show me the cash flow report
April 2026:
Total Invoiced: $12,400.00
Collected: $8,200.00 (66.1%)
Outstanding: $4,200.00
Overdue: $1,800.00
Projected (30d): $2,400.00지원 통화
USD, EUR, GBP, CAD, AUD, JPY, CHF, TRY, BRL, INR
가격
티어 | 가격 | 월간 송장 수 | 기능 |
무료 | $0 | 5 | 기본 PDF 송장 |
프로 | $12/월 | 100 | AI 위험 점수, 스마트 알림, 결제 조정 |
비즈니스 | $29/월 | 500 | 다중 통화, 현금 흐름 보고, 우선 지원 |
MCPize 마켓플레이스에서 이용 가능합니다.
개발
npm run dev # Hot reload
npm run build # Production build
npm test # Run tests
npm run inspect # MCP Inspector테스트
테스트는 핵심 비즈니스 로직을 다룹니다:
저장소 — CRUD 작업, 필터링, 순차적 송장 번호
위험 모델 — 4가지 가중치 요인을 포함한 AI 점수 엔진, 위험 분류
현금 흐름 — 보고서 생성, 회수율, 예상치, 고객별 분석
npm test # Run all tests
npx vitest --watch # Watch mode프로 라이선스
InvoiceFlow는 무료 모드로 제공됩니다. invoice_demo_seed, client_manage, invoice_create, invoice_list, invoice_mark_paid, invoice_remind는 무료로 사용 가능합니다. 다음 도구는 프로 라이선스가 필요합니다:
invoice_send— PDF 생성 + SendGrid 이메일 발송invoice_risk— 연체 위험 예측payment_reconcile— Stripe/PayPal/은행 결제 내역과 송장 매칭cashflow_report— 포트폴리오 전체 현금 흐름 + 30일 예상치
프로 라이선스 구매 (€12, 평생, 3대 기기): https://automatiabcn.lemonsqueezy.com/buy/2d439c05-f463-4137-8883-950e8ee1112d
또는 Indie MCP Stack Bundle (€69, 4개 서버 전체)를 구매하세요.
export LEMONSQUEEZY_LICENSE_KEY=YOUR-KEY-HERE또는 MCP 클라이언트 설정에 추가:
{
"mcpServers": {
"invoiceflow-mcp": {
"command": "npx",
"args": ["-y", "invoiceflow-mcp-server"],
"env": { "LEMONSQUEEZY_LICENSE_KEY": "YOUR-KEY-HERE" }
}
}
}인증은 로컬에 24시간 동안 캐시되며, 첫 실행 후에는 완전히 오프라인으로 작동합니다.
라이선스
MIT 라이선스. 자세한 내용은 LICENSE를 참조하세요.
Automatia BCN 제작.
Available Tools
10 toolscashflow_reportCash Flow ReportARead-onlyIdempotent
Generate a portfolio-wide cash flow summary across all invoices. Returns {period, total_invoiced, total_collected, total_outstanding, total_overdue, collection_rate (percent), avg_days_to_payment (or null if no paid history), projected_income_30d (forecast based on due dates and historical pay rate), breakdown_by_status, breakdown_by_client}. Takes no input — always reports on the current full dataset. Ideal for dashboards and monthly close.
Inputs: no named parameters.
client_manageManage ClientAIdempotent
Create or upsert a client record used by invoice_create. Accepts name, email, company, address, city, country, tax_id, phone, default_currency ("USD"|"EUR"|"GBP"|...) and notes. Returns the stored client object including the generated id (UUID), an empty payment_history (populated as invoices are paid), and timestamps. Safe to call repeatedly: if a client with the same email already exists, the existing record is returned unchanged.
Inputs: name (required), email (required), city, notes, +6 more.
invoice_createCreate InvoiceAIdempotent
Create a new invoice for an existing client. Required: client_id (UUID) and line_items (non-empty array of {description, quantity, unit_price, tax_rate?, discount_percent?} — tax and discount are per-line). Optional: currency (defaults to the client's default_currency then USD), issue_date (YYYY-MM-DD or full ISO, defaults to today), due_date (same format, defaults to issue_date + 30 days), notes, and terms. Auto-calculates subtotal, discount_total, tax_total, and total; generates a sequential invoice_number in format INV-YYYY-NNNN; sets status="draft". Returns the full invoice object ready for invoice_send.
Inputs: client_id (required), line_items (required), notes, terms, +3 more.
invoice_demo_seedSeed Demo DataA
Populate the store with a realistic demo dataset: 8 clients across 5 archetypes (on-time, late-payer, high-value, new, chronic-late) and 25-45 invoices spanning the last 6 months (paid, sent, and overdue). Every invoice has line items, tax, payment history, and reminder metadata. Use this to evaluate InvoiceFlow via MCP Inspector without real Stripe, SendGrid, or PayPal credentials — invoice_list, cashflow_report, invoice_risk, and payment_reconcile all return meaningful results against the returned ids. Safe to call multiple times; each call appends a fresh batch with unique UUIDs. Returns counts plus sample_invoice_ids you can feed straight into invoice_risk or invoice_mark_paid.
Inputs: no named parameters.
invoice_listList InvoicesARead-onlyIdempotent
Search and filter invoices. Optional filters: status ("draft"|"sent"|"viewed"|"paid"|"overdue"|"cancelled"|"refunded"), client_id, min_amount, max_amount, date_from/date_to (ISO dates), overdue_only (boolean). Pagination via limit (default 50, max 200) and offset. Returns {total, invoices[]} where each invoice includes full line_items and payment state. Use this to build dashboards or drive invoice_remind/invoice_risk workflows.
Inputs: limit, offset, status, to_date, +5 more.
invoice_mark_paidMark Invoice PaidA
Record a full or partial payment against an invoice. Updates amount_paid and amount_due; sets status="paid" only when the outstanding balance reaches zero. As a side effect, a fully-paid invoice updates the client payment_history (total_revenue, paid_invoices, avg_days_to_payment, late_payment_count) which invoice_risk then uses for future predictions. Returns a confirmation with the paid amount and remaining balance.
Inputs: invoice_id (required), amount, payment_method.
invoice_remindRecord Payment ReminderA
Record that a payment reminder has been issued for an unpaid invoice. Increments reminder_count, sets last_reminder_at, and advances draft → sent. Returns the generated reminder message (custom or default) so the caller can relay it through their preferred channel — this tool itself does not send email; use invoice_send for actual delivery. Safely refuses to remind on already-paid invoices.
Inputs: invoice_id (required), message.
invoice_riskAssess Payment RiskARead-onlyIdempotent
Predict late-payment risk for a specific invoice on a 0-100 scale. The model combines invoice amount (relative to client average), client payment history (avg_days_to_payment, late_payment_count), days remaining until due date, and prior reminder_count. Returns {risk_score (0-100), risk_level ("low"|"medium"|"high"|"critical"), factors (array of {factor, impact, detail}), recommended_action (string), next_reminder_date (ISO string or null)}. Use for prioritizing collection effort on high-value invoices.
Inputs: invoice_id (required).
invoice_sendSend InvoiceA
Generate the invoice PDF and deliver it to the client. Always generates the PDF and marks the invoice status="sent". Email delivery via SendGrid is attempted automatically when the SENDGRID_API_KEY environment variable is set; without it the PDF is still generated and the status still advances so the caller can handle delivery out-of-band. Returns a confirmation message with the PDF size.
Inputs: invoice_id (required), message.
payment_reconcileReconcile PaymentA
Match an incoming external payment (e.g. Stripe webhook, PayPal IPN, bank transfer) to an open invoice. Matching rule: the payer_email must equal the invoice client_email (case-insensitive) AND the payment_amount must equal the invoice amount_due within one cent. On match the invoice is marked paid, amount_paid/amount_due are updated, and client payment_history is recomputed exactly like invoice_mark_paid. Returns a reconciliation message on match or a "no match" message otherwise (no error). If multiple invoices match, the first one is reconciled.
Inputs: payer_email (required), payment_amount (required), reference, payment_method.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a distinct purpose: portfolio summary, client management, invoice creation, demo seeding, invoice listing, payment recording, reminder tracking, risk prediction, PDF generation/delivery, and external payment reconciliation. No functional overlap exists.
Most tools follow a noun_verb pattern (e.g., invoice_create, invoice_list), but invoice_risk and invoice_demo_seed deviate (noun_noun and noun_noun_verb), and cashflow_report could be interpreted as compound noun. Inconsistent imperative style.
10 tools is well-scoped for an invoicing system, covering core workflows (client, invoice, payment, report, risk) without unnecessary bloat.
Missing client listing/deletion and invoice update/deletion; lacks refund handling. Demo seeding and risk tools add value, but CRUD gaps may cause agent failures in some workflows.
Maintenance
Related MCP Connectors
Invoicing you drive by talking to your AI: log time, raise invoices and track what's owed via MCP.
Create, send and track invoices from a conversation in Claude, ChatGPT or any MCP client that supports OAuth. Draft an invoice from one sentence or from last month's invoice for the same client, finalize it, email it to your client and send payment reminders for overdue ones. See revenue by month and by client, download PDFs and e-invoices (ZUGFeRD, XRechnung), and export DATEV packages for your tax advisor. Invoices follow the tax rules of 25 countries, including reverse charge and the small-business VAT exemption. New invoices are drafts, and nothing is emailed until you ask. Pay per invoice with no subscription: the first invoice is free.
Automated invoicing from your AI assistant. Incoming invoice sync. Issue invoices and receipts.
Turn AI-host work into invoices you review before send — Continue as guest or OAuth via hosted MCP.
Related MCP Servers
- AlicenseBqualityBmaintenanceTurn Claude, Cursor, and your AI agents into an autonomous CFO. Manage invoicing, expenses, real-time bank reconciliation, cash flow, and tax compliance in plain language — backed by Frihet ERP.100505 npm13MIT
- AlicenseNot gradedqualityCmaintenanceInvoice Generator AI - MCP server providing AI-powered tools and automation by MEOK AI Labs9 npm44 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceEnables MCP clients to search and inspect an invoice ledger, generate VAT summaries, run OCR on local documents, and use reusable prompts for chasing overdue invoices and reconciling entries.2-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and finance teams to extract structured fields from messy invoices and audit them before payment, applying seven evidence-backed risk rules that catch total/tax mismatches, duplicate invoices, missing fields, future dates, and round amounts, then returning a 0–100 score with a payment link. Exposes four MCP tools over stdio and Streamable HTTP (spec 2025-11-25) plus a web UI, backed by an optional AWS Bedrock or OpenAI-compatible extraction brain that degrades gracefully to a zero-dependency offline engine.MIT