Peru Invoice
БесплатноНе проверенEnables AI agents to issue Peruvian electronic invoices (factura/boleta) declared to SUNAT via Nubefact. Supports creating, querying, and canceling invoices wit
Описание
Enables AI agents to issue Peruvian electronic invoices (factura/boleta) declared to SUNAT via Nubefact. Supports creating, querying, and canceling invoices with automatic IGV tax computation.
README
Use it in 60 seconds
Paste this into your MCP client config (Claude Desktop, Cursor, Windsurf, or any MCP-capable agent):
{
"mcpServers": {
"peru-invoice": {
"type": "http",
"url": "https://inv-pe.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/peru-invoice-mcp && cd peru-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 Peru electronic CPE (comprobante de pago electrónico — factura for B2B, boleta for consumers), declared to SUNAT. Aggregation layer: two interchangeable OSE/PSE backends — Nubefact and APISUNAT (PSE cloud) — behind the same tools. Stateless, bring-your-own credentials, never stores anything.
Live endpoint: https://inv-pe.wishpool.app/mcp · Registry: app.wishpool/peru-invoice-mcp
Quick start
{
"mcpServers": {
"peru-invoice": {
"type": "http",
"url": "https://inv-pe.wishpool.app/mcp",
"headers": {
"x-nubefact-ruta": "https://api.nubefact.com/api/v1/<your-hash>",
"x-nubefact-token": "<your-token>"
}
}
}
}
A free DEMO account at nubefact.com gives you both a RUTA and a TOKEN (menu Api-Integración). The same credentials switch to production at the account level (numbering resets on go-live), so results report mode: "nubefact-account" honestly — verify demo vs production in your Nubefact dashboard.
Or use APISUNAT (second backend)
Prefer APISUNAT? Send its headers instead — the server auto-selects the backend from whichever credential you send (or force it with the tool's optional provider field: "nubefact" / "apisunat"):
"headers": {
"x-apisunat-persona-id": "<your-persona-id>",
"x-apisunat-persona-token": "<your-persona-token>",
"x-apisunat-ruc": "<your-11-digit-RUC>"
}
Free self-signup at apisunat.com; a DEV persona lets you test without sending to SUNAT before switching the persona to production (mode: "apisunat-account"). APISUNAT signs and sends your CPE with your persona's certificate (PSE model); this server only forwards the credentials.
Tools
| Tool | What it does |
|---|---|
create_invoice |
Issue a factura (buyer 11-digit RUC) or boleta (consumer DNI/none). You supply serie (F001/B001) and the next numero; item prices go in including IGV, and this layer computes valor_unitario, subtotal, IGV 18% and totals. Returns the SUNAT link + PDF/XML. |
query_invoice |
Status check by comprobante_type + serie + numero: ACCEPTED / PENDING / REJECTED, plus anulado and PDF/XML/CDR links. |
cancel_invoice |
Void (anular — comunicación de baja) a CPE at SUNAT with a motivo. Asynchronous: confirm later with query_invoice. |
⚠️ Numbering is merchant-managed. This server is stateless and does not track sequences — the caller supplies
serieand the nextnumero. Reusing anumerois rejected by SUNAT; skipping one leaves a gap.
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 in PEN.
Develop
node test/serve.js # local server on :3229
node test/e2e.js # protocol + validation + IGV math + fake-cred live probes
Safety
Pure stateless translation layer. The SUNAT certification burden sits with the chosen backend (Nubefact or APISUNAT, OSE/PSE); credentials travel per-request in headers, nothing is stored. Privacy policy.
Sister servers
Local payments in 81 countries, one family: mcp.wishpool.app · Taiwan e-invoice 電子發票 included. Invoice family live: Mexico CFDI 4.0 (inv-mx.wishpool.app). More invoice countries coming: Brazil NF-e · Chile DTE · Colombia · India GST · Poland KSeF · Italy SdI.
MIT licensed.
Установка Peru Invoice
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/junter1989k-ai/peru-invoice-mcpFAQ
Peru Invoice MCP бесплатный?
Да, Peru Invoice MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Peru Invoice?
Нет, Peru Invoice работает без API-ключей и переменных окружения.
Peru Invoice — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Peru Invoice в Claude Desktop, Claude Code или Cursor?
Открой Peru Invoice на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Stripe
Payments, customers, subscriptions
автор: Stripemalamutemayhem/unclick-agent-native-endpoints
110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n
автор: malamutemayhemwhiteknightonhorse/APIbase
Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa
автор: whiteknightonhorsetrackerfitness729-jpg/sitelauncher-mcp-server
Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr
Compare Peru Invoice with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории finance
