emailmd
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
Spanish invoice PDFs to validated data: NIF/IVA/IRPF extraction, arithmetic checks, IVA per quarter.
목록은 사용 점수(100점 만점)로 정렬되며 구성은 다음과 같습니다
| 인기 | 0/80 | GitHub 별 또는 주간 다운로드: 큰 쪽 60, 작은 쪽 20 |
|---|---|---|
| 최신성 | 7/12 | 30일 안에 릴리스나 코드 변경이 있으면 만점 |
| 응답 중 | 0/8 | 마지막 점검 때 클라우드 엔드포인트가 응답 |
| 사용 점수 | 7/100 |
품질: 기본 점검 3/3개 통과(표시만, 정렬에는 안 씀) · 상승세: 데이터 없음 (급상승 탭에서만 사용)
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
한 문장으로 AI에게 설치 맡기기
Facturas Inbox MCP 설치해 줘. https://mcp.popnx.com/i/pedrozapatadev-facturas-inbox-mcp.md 를 따라 하고, 명령을 먼저 보여 주고 내가 승인하면 실행해.내 컴퓨터에서 작업하는 AI(Claude Code, Cursor 등)에 붙여 넣으세요. 단계를 읽고 명령을 보여 준 뒤 승인을 기다립니다. 키도 가입도 필요 없습니다. · AI가 읽을 전체 내용 보기
검사 3/3 통과 · 내 컴퓨터에서 실행돼요 · ✓ 명령 확인 2026년 11월 14일
먼저: 어떤 AI를 쓰시나요?
쓰는 앱을 고르면 아래에 단계가 나옵니다.
Claude에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
이 메시지를 Claude 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Claude에 MCP server Facturas Inbox MCP을 설치해 주세요. 순서대로: 1) node -v로 Node.js가 있는지 확인. 없으면 https://nodejs.org/en/download에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "mcpServers": { "facturas-inbox": { "command": "npx", "args": [ "-y", "facturas-inbox-mcp" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 Facturas Inbox MCP의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
node -vMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: 공식 다운로드 페이지에서 LTS 버전과 클릭형 설치 파일을 고르세요: Mac은 .pkg · Windows는 .msi. 더블클릭 후 끝까지 진행하면 됩니다. curl 명령은 필요 없습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: node -v
한 번 설치하면 Node.js가 필요한 모든 도구에서 쓸 수 있습니다
SettingsDeveloperEdit Config
{
"mcpServers": {
"facturas-inbox": {
"command": "npx",
"args": [
"-y",
"facturas-inbox-mcp"
]
}
}
}Facturas Inbox MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude가 Facturas Inbox MCP을 쓰고 있다고 하거나 답에 Facturas Inbox MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
ChatGPT는 아직 Facturas Inbox MCP에 연결할 수 없어요
Facturas Inbox MCP는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요
A · Facturas Inbox MCP에 연결되는 앱 쓰기
B · 채팅 및 이메일에서 ChatGPT에 연결되는 다른 서버
같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요
Claude Code에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
이 메시지를 Claude Code 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Claude Code에 MCP server Facturas Inbox MCP을 설치해 주세요. 순서대로: 1) node -v로 Node.js가 있는지 확인. 없으면 https://nodejs.org/en/download에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): claude mcp add --scope user facturas-inbox -- npx -y facturas-inbox-mcp 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 Facturas Inbox MCP의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
node -vMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: 공식 다운로드 페이지에서 LTS 버전과 클릭형 설치 파일을 고르세요: Mac은 .pkg · Windows는 .msi. 더블클릭 후 끝까지 진행하면 됩니다. curl 명령은 필요 없습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: node -v
한 번 설치하면 Node.js가 필요한 모든 도구에서 쓸 수 있습니다
Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기
claude mcp add --scope user facturas-inbox -- npx -y facturas-inbox-mcpFacturas Inbox MCP이 목록에 있고 연결됨으로 보이면 돼요
Facturas Inbox MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude Code가 Facturas Inbox MCP을 쓰고 있다고 하거나 답에 Facturas Inbox MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Cursor에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 한 번에 설치하는 버튼이 없어요. 설정을 붙여 넣고 값을 직접 채우세요
이 메시지를 Cursor 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Cursor에 MCP server Facturas Inbox MCP을 설치해 주세요. 순서대로: 1) node -v로 Node.js가 있는지 확인. 없으면 https://nodejs.org/en/download에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "mcpServers": { "facturas-inbox": { "command": "npx", "args": [ "-y", "facturas-inbox-mcp" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 Facturas Inbox MCP의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
node -vMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: 공식 다운로드 페이지에서 LTS 버전과 클릭형 설치 파일을 고르세요: Mac은 .pkg · Windows는 .msi. 더블클릭 후 끝까지 진행하면 됩니다. curl 명령은 필요 없습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: node -v
한 번 설치하면 Node.js가 필요한 모든 도구에서 쓸 수 있습니다
~/.cursor/mcp.json
이 설정을 붙여 넣고 빈 값을 채운 뒤 저장
{
"mcpServers": {
"facturas-inbox": {
"command": "npx",
"args": [
"-y",
"facturas-inbox-mcp"
]
}
}
}Facturas Inbox MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Cursor가 Facturas Inbox MCP을 쓰고 있다고 하거나 답에 Facturas Inbox MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
VS Code에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 한 번에 설치하는 버튼이 없어요. 설정을 붙여 넣고 값을 직접 채우세요
이 메시지를 VS Code 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 VS Code에 MCP server Facturas Inbox MCP을 설치해 주세요. 순서대로: 1) node -v로 Node.js가 있는지 확인. 없으면 https://nodejs.org/en/download에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "servers": { "facturas-inbox": { "type": "stdio", "command": "npx", "args": [ "-y", "facturas-inbox-mcp" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 Facturas Inbox MCP의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
node -vMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: 공식 다운로드 페이지에서 LTS 버전과 클릭형 설치 파일을 고르세요: Mac은 .pkg · Windows는 .msi. 더블클릭 후 끝까지 진행하면 됩니다. curl 명령은 필요 없습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: node -v
한 번 설치하면 Node.js가 필요한 모든 도구에서 쓸 수 있습니다
MCP: Open User Configuration
이 설정을 붙여 넣고 빈 값을 채운 뒤 저장
{
"servers": {
"facturas-inbox": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"facturas-inbox-mcp"
]
}
}
}Facturas Inbox MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ VS Code가 Facturas Inbox MCP을 쓰고 있다고 하거나 답에 Facturas Inbox MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요
JSON 설정은 아래 “개발자용”에 있어요
Claude Code
claude mcp add --scope user facturas-inbox -- npx -y facturas-inbox-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"facturas-inbox": {
"command": "npx",
"args": [
"-y",
"facturas-inbox-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"facturas-inbox": {
"command": "npx",
"args": [
"-y",
"facturas-inbox-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"facturas-inbox": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"facturas-inbox-mcp"
]
}
}
}이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.
내 컴퓨터에서 실행하는 앱
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 19일 점검
레지스트리 이름이 GitHub 계정 pedrozapatadev 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
코드 마지막 변경: 42일 전
MIT 사용
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
OSV.dev에 facturas-inbox-mcp@0.1.0 항목이 없습니다
이 버전의 패키지 자체만 확인하며 모든 의존성은 아닙니다 · 확인 2026년 11월 16일
제작자라면 이 코드를 README에 붙여 넣으세요. 배지는 이 페이지로 연결됩니다.
[](https://mcp.popnx.com/en/servers/pedrozapatadev-facturas-inbox-mcp)질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.
아직 리뷰가 없어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 3개 중 3개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 42일 전 변경됐고, 최신 버전(0.1.0)은 42일 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.
같은 카테고리에는: emailmd, Kite Discord Bot Builder, e2a — email for AI agents, Infobip MCP, kernelCAD
같은 카테고리, 다른 제작자, 명령 확인 완료. 공식이 먼저, 그다음 스타 순.
카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
Build and fix Discord bots from a chat. Kite hosts them 24/7, with no code to deploy.
Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.
Infobip MCP server for omnichannel communication and messaging. SMS, RCS, WhatsApp, Viber and more.
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
| 이 항목 Facturas Inbox MCP | emailmd | Kite Discord Bot Builder | e2a — email for AI agents | Infobip MCP | kernelCAD | |
|---|---|---|---|---|---|---|
| 실행 위치 | 컴퓨터에 설치 필요 | 클라우드 또는 컴퓨터 설치 모두 가능 | 클라우드에서 동작, 설치 불필요 | 클라우드에서 동작, 설치 불필요 | 클라우드에서 동작, 설치 불필요 | 클라우드에서 동작, 설치 불필요 |
| 키 필요 | 아니요 | 아니요 | 아니요 | 아니요 | 아니요 | 아니요 |
| Claude에서 +로 추가 | 아니요 | 아니요 | 아니요 | 아니요 | 예 | 아니요 |
| 기본 점검 | 3/3 | 5/5 | 4/4 | 4/4 | 4/4 | 4/4 |
| 라이선스 | MIT | MIT | AGPL-3.0 | Apache-2.0 | MIT | MIT |
| 가격 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 | 등록 정보에 비용 없음 |
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
An MCP server that turns a folder of Spanish business documents into validated, structured data an AI agent can reason over. It classifies each PDF (factura, rectificativa, ticket, nómina, modelo AEAT…), extracts the invoice fields (NIF/CIF, base imponible, IVA per rate, IRPF, total), checks the arithmetic and the tax-ID checksums, and computes the IVA soportado / repercutido position for a quarter.
Local and offline. No API keys. It reads only the folders you give it.
Built for the everyday job of a Spanish *gestoría*: a client drops a month of PDFs in a folder and
someone has to work out what is what, what adds up and what the VAT position is.
Claude Code, Sonnet, pointed at the synthetic examples/inbox (11 documents, including a wrong total, a ticket, a credit note, a payslip, a modelo 303 and a scanned page). Real session; the answer is trimmed for length (full, unedited transcript in docs/demo-transcript.md):
> I'm the bookkeeper for Gestoría Demo Ficticia SL (CIF B87654323). Process the invoice
inbox and tell me our IVA position for Q3 2026, and flag anything I need to look at by hand. Answer in English, briefly.
⏺ facturas - scan_folder {} ⏺ facturas - vat_summary {"own_tax_id":"B87654323","quarter":"2026-Q3"} ⏺ facturas - validate_tax_id {"tax_id":"B87654323"}
Q3 2026 IVA position: €243.00 to pay (a pagar), provisional.
Check by hand:
5 turns · 23 s · $0.13. Every number comes from a tool result, not from the model doing arithmetic. Documents that fail a check are excluded and listed with a reason, so nothing is silently counted or silently dropped.
| Tool | What it does | Hints | |
|---|---|---|---|
scan_folder | Classify and extract every document in a folder; one compact row each, paginated with limit / cursor | read-only | |
classify_document | Label one document, with a confidence score and the signals behind the label | read-only | |
extract_invoice | Invoice number, date, issuer/recipient NIF, base, VAT lines, IRPF, total, plus every cross-check. `response_format: concise \ | detailed` | read-only |
validate_tax_id | NIF / NIE / CIF checksum validation. Says the expected control character when wrong | read-only | |
vat_summary | IVA repercutido vs. soportado for a quarter (2026-Q3) or a from/to range, by rate, with the exclusions listed | read-only | |
export_csv | Write the scan to a new .csv file (;-separated, decimal comma, opens directly in Spanish Excel). Never overwrites | writes a new file |
Every tool publishes an outputSchema and returns structuredContent, and the SDK validates both directions. All tools set full annotations (readOnlyHint, destructiveHint: false, idempotentHint, openWorldHint: false), so clients can auto-approve the read-only ones.
extract_invoice returns status: "ok" only when every check passes:
| Check | Rule |
|---|---|
issuer_tax_id | A checksum-valid NIF/NIE/CIF is present before the client section |
issue_date | A real calendar date was found (15/07/2026, 22 de septiembre de 2026, …) |
vat_rate_standard | Every VAT rate is a Spanish rate (0, 4, 5, 10, 21 %) |
vat_math | base × rate = VAT, per rate when the invoice breaks bases out (±1 cent) |
irpf_math | base × IRPF rate = withholding (±1 cent) |
total_math | base + VAT − IRPF = total |
All arithmetic is in integer cents.
Requires Node.js 20.12 or newer.
claude mcp add facturas-demo -- npx -y facturas-inbox-mcp --demo
--demo serves the synthetic inbox that ships with the package. Then ask Claude: *"I'm the bookkeeper for CIF B87654323. What's our IVA position for Q3 2026, and what should I check by hand?"*
claude mcp add facturas -- npx -y facturas-inbox-mcp ~/Documents/facturas
Add this to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": { "facturas": { "command": "npx", "args": ["-y", "facturas-inbox-mcp", "/Users/you/Documents/facturas"] } } }
It's a standard stdio server: npx -y facturas-inbox-mcp [more folders…], or npx -y facturas-inbox-mcp --demo. Folders can also come from FACTURAS_INBOX_DIRS (separated like PATH).
git clone https://github.com/pedrozapatadev/facturas-inbox-mcp && cd facturas-inbox-mcp
npm install && npm run build claude mcp add facturas -- node "$PWD/dist/index.js" "$PWD/examples/inbox"
Then ask: *"I'm the bookkeeper for CIF B87654323. What's our IVA position for Q3 2026?"*
To poke at the tools without an LLM, run npm run inspect (MCP Inspector).
null, not guessed. Documents that fail a check are excluded from totals *and listed with the reason*. Errors are returned as isError results that say how to fix the call ("Pass force: true to try anyway", "Run OCR first").scan_folder returns compact rows and paginates. extract_invoice is concise by default. export_csv returns a path and counts, not the data.realpath and must sit inside a folder given at startup, so ../ traversal and symlinks that point outside are rejected (and tested). The only write is export_csv, which creates new .csv files and never overwrites.untrusted_text_preview. CSV cells that start with =, +, - or @ are neutralized against spreadsheet formula injection. Exports are created 0600.console.log.Honest scope. This is a showcase-sized tool, not accounting software.
unreadable with an OCR hint (e.g. ocrmypdf); there is no built-in OCR.needs_review rather than wrong.vat_summary is a working figure for review, not a modelo 303.npm install
npm run fixtures # regenerate examples/inbox (synthetic data, valid-checksum fictional IDs) npm run typecheck npm test # unit + in-memory MCP client + stdio end-to-end (build first for the e2e) npm run build npm run inspect # MCP Inspector UI against the sample inbox
src/ index.ts stdio entry point, CLI args → allowed folders server.ts the six tools: schemas, annotations, error mapping schemas.ts zod input/output schemas pipeline.ts read → classify → extract, shared by all tools classify.ts rule-based document classifier with explainable signals extract.ts invoice field extraction + arithmetic checks taxid.ts NIF / NIE / CIF validation amounts.ts Spanish amounts and dates, in integer cents vat-summary.ts repercutido / soportado aggregation documents.ts sandboxed filesystem + PDF text extraction csv.ts Excel-friendly CSV export test/ MCP-level tests (in-memory client, stdio e2e, sandbox escapes)
Built on the official MCP TypeScript SDK v2 (@modelcontextprotocol/server), zod and unpdf.
version in package.json and both version fields in server.json.npm publish (runs build + tests first; needs npm 2FA).gh workflow run publish-mcp-registry.yml lists the new version in the MCP Registry via GitHub OIDC (no secrets).MIT © 2026 Pedro Zapata Medal. All sample documents are synthetic: the companies, people and tax IDs are fictional.