korea-invoice-mcp
Enables AI agents to issue, query, and transmit Korean electronic tax invoices (전자세금계산서) via POPBiLL/Linkhub, including VAT computation and NTS reporting.
README
Korea Invoice MCP 🇰🇷 — How can my AI agent issue a 전자세금계산서 (electronic tax invoice) in Korea?
<!-- install-cta -->
Use it in 60 seconds
Paste this into your MCP client config (Claude Desktop, Cursor, Windsurf, or any MCP-capable agent):
{
"mcpServers": {
"korea-invoice": {
"type": "http",
"url": "https://inv-kr.wishpool.app/mcp"
}
}
}
Nothing to install. Credentials, when you need them, travel as HTTP headers on each request and are never stored — see the threat model.
Or run it yourself
Would you rather not send production credentials to a server you do not control? Deploy this identical code to your own account and point your agent at your own URL:
git clone https://github.com/junter1989k-ai/korea-invoice-mcp && cd korea-invoice-mcp && npx vercel --prod
MIT-licensed. Self-hosting removes us from the picture entirely, at no cost and with no loss of function.
Remote MCP server that lets any AI agent issue, query and transmit Korean 전자세금계산서 (electronic tax invoices) through POPBiLL / Linkhub — Korea's national-scale e-tax-invoice ASP that issues the invoice to the buyer and reports it to 국세청 (NTS / National Tax Service). It mints a Linkhub session token (HMAC-SHA256) per request, computes 부가세 (VAT), issues in one step (registIssue / 즉시발행), and returns the 문서관리번호 and 국세청 승인번호. Stateless, bring-your-own credentials, never stores anything.
Pure BYO — we are not an authentication intermediary. You self-issue your own Linkhub
LinkID+SecretKey(free at linkhub.co.kr, 파트너 신청, ~20 min), join popbill.co.kr (연동회원가입), and register your 공동인증서 (certificate) on your own POPBiLL account. This server never holds a LinkID and never issues invoices on a shared identity. See Why no ISV-managed mode.
Live endpoint: https://inv-kr.wishpool.app/mcp · Registry: app.wishpool/korea-invoice-mcp
Quick start
{
"mcpServers": {
"korea-invoice": {
"type": "http",
"url": "https://inv-kr.wishpool.app/mcp",
"headers": {
"x-popbill-linkid": "your-linkhub-linkid",
"x-popbill-secretkey": "your-linkhub-secretkey",
"x-popbill-corpnum": "1234567890",
"x-popbill-mode": "prod"
}
}
}
}
x-popbill-corpnum is your 10-digit 사업자번호 — the invoicer/seller; invoices are issued from this business. Omit x-popbill-mode to stay in POPBILL_TEST (no fiscal effect). Your keys and certificate stay with you — this server never stores them.
Getting your credentials (self-service, free)
- Linkhub 파트너 신청 at linkhub.co.kr → you receive your own
LinkID+SecretKey(issued in ~20 minutes). - POPBiLL 연동회원가입 at popbill.com with the same business.
- Register your 공동인증서 (전자세금계산서용 인증서) on your POPBiLL account — required by the NTS to issue tax invoices. It stays on your account; it never passes through this server.
Tools
| Tool | What it does |
|---|---|
create_invoice |
Issue a 전자세금계산서 in one step (registIssue = 즉시발행) — invoicer_corp_name, invoicer_ceo_name, invoicee_corp_name (+ invoicee_corp_num for 사업자 buyers), items (item_name, qty, unit_cost KRW/NET), tax_type (과세/영세/면세), purpose_type (영수/청구) in; mgt_key + ntsConfirmNum out. The seller 사업자번호 comes from the header; 부가세 is computed for you. mgt_key auto-generated if omitted. |
query_invoice |
Look up one invoice by mgt_key + mgt_key_type (SELL default / BUY / TRUSTEE) — returns the stateCode (200 발행완료, 300 국세청 전송대기, 320 국세청 전송완료, 330 전송실패, 400 발행취소), ntsConfirmNum, timestamps and totals. |
send_to_nts |
Force immediate 국세청 (NTS) transmission of an already-issued invoice. Normally transmission is automatic the next day (익일전송); this only sends it now instead of waiting for the batch. |
Owner policy guardrails ride optional headers (x-agentpay-max-amount, x-agentpay-approval-above, x-agentpay-allowed-tools) — set by the human owner in client config; the agent cannot relax them. The cap applies to the invoice total (KRW).
부가세 (VAT) — computed server-side
POPBiLL does not compute VAT; this server does, deterministically:
- 과세 (standard): per-line
tax = floor(supplyCost × 0.10)— 원 단위 절사 (integer truncation). - 영세 (zero-rated export) / 면세 (exempt):
tax = 0.
Each line carries a NET unit_cost in whole won; the server sums supplyCostTotal, taxTotal and totalAmount and stringifies the amounts as POPBiLL expects.
How it works (POPBiLL / Linkhub flow)
- Session token (HMAC-SHA256, per request, never cached):
POST auth.linkhub.co.kr/{POPBILL|POPBILL_TEST}/Tokenwith body{"access_id": "<사업자번호>", "scope": ["member", "110"]}(110 = 세금계산서 scope). The request is signed:signature = base64( HMAC_SHA256( base64_decode(SecretKey), "POST\n" + base64(sha256(body)) + "\n" + callDT + "\n2.0\n/{ServiceID}/Token" ) ), with headersx-lh-date,x-lh-version: 2.0,Authorization: LINKHUB {LinkID} {signature}. Returnssession_token. - Issue:
POST /Taxinvoicewith headerX-HTTP-Method-Override: ISSUEand theTaxinvoiceJSON (forceIssueset for 즉시발행). Business hostpopbill-test.linkhub.co.kr(test) /popbill.linkhub.co.kr(prod),Authorization: Bearer {session_token},x-pb-version: 1.0. Returns the 국세청 승인번호. - Transmit / status:
POST /Taxinvoice/{MgtKeyType}/{MgtKey}(overrideNTS) forces transmission;GET /Taxinvoice/{MgtKeyType}/{MgtKey}reads the stateCode.
The token signing and forwarding happen in memory per-request; nothing is embedded or stored.
Why no ISV-managed mode
An ASP integrator could hold one master LinkID/SecretKey and issue invoices for many merchants on that shared identity (an "ISV-managed" or 대행 model). This server deliberately does not do that: it would make us an authentication intermediary holding other businesses' issuing power and, in Korea, the 공동인증서 that legally binds a 전자세금계산서. Pure BYO keeps issuing authority — and liability — entirely with the merchant, and keeps this server a stateless forwarder that stores nothing. It costs the merchant one free 20-minute signup; we think that is the right trade.
Scope & honest gaps
- Issue + query + force-transmit in v0.1. Cancelling/amending an issued invoice (수정세금계산서 / 발행취소) is a separate POPBiLL operation kept out of this version to stay focused. To correct a mistake, issue a 수정세금계산서 through your POPBiLL account.
- KRW only, whole-won integer amounts.
- NTS transmission timing:
create_invoiceissues to the buyer immediately and gets a 승인번호; the actual 국세청 전송 defaults to next-day (익일전송).send_to_ntsforces it now. There is no way to make issuance itself skip the buyer — issuing is delivering to the buyer. - No real-credential live issue was run here — see below.
Develop
node test/serve.js # local server on :3244
node test/e2e.js # protocol + validation + 부가세-math + HMAC-SHA256 test vectors + LIVE probes
The e2e suite asserts the Linkhub signature algorithm against a fixed test vector (fixed input → fixed HMAC-SHA256 base64), the VAT math (과세 floor / 영세 / 면세), and makes two real calls to the government-facing POPBiLL/Linkhub test infrastructure:
- Fake
LinkID→auth.linkhub.co.kr/POPBILL_TEST/Tokenreturns-99004021("링크아이디가 존재하지 않습니다.") — the auth endpoint is alive and the full HMAC signing path is exercised. - Fake
Bearer→popbill-test.linkhub.co.kr/Taxinvoice/SELL/...returns-99910004("Token decryption failed.") — the business endpoint is alive.
These are the deepest live proofs possible without a portal-minted LinkID and a registered 공동인증서.
Safety
Pure stateless translation layer to the POPBiLL / Linkhub API. Credentials travel per-request in headers; the session token is minted (HMAC-SHA256) and used in memory only, then discarded; the 공동인증서 stays on the merchant's own POPBiLL account. Nothing is stored or logged. Privacy policy.
Sister servers
National e-invoices: Mexico CFDI 4.0 inv-mx · Brazil NFS-e inv-br · Chile DTE inv-cl · Poland KSeF inv-pl · Hungary NAV inv-hu · Malaysia MyInvois inv-my. Korea payments (card / KakaoPay / NaverPay / 가상계좌 via Toss) mcp-kr · Shipping for AI agents logi-tw · Local payments in 81+ countries, one family: mcp.wishpool.app (Taiwan e-invoice 電子發票 included).
MIT licensed.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。