peru-invoice-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@peru-invoice-mcpissue a factura to RUC 20123456789 for 'Consultoría' at S/1,200"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Peru Invoice MCP 🇵🇪 — How can my AI agent issue a factura o boleta electrónica in Peru?
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 --prodMIT-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
Related MCP server: Mexico 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 |
| Issue a factura (buyer 11-digit RUC) or boleta (consumer DNI/none). You supply |
| Status check by |
| Void (anular — comunicación de baja) a CPE at SUNAT with a |
⚠️ 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 probesSafety
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables AI assistants to interact with Brazilian electronic invoices (NF-e, NFC-e, NFS-e) via Nuvem Fiscal API, including CNPJ lookup, invoice issuance, cancellation, and PDF generation.Last updated1
- Alicense-qualityBmaintenanceEnables AI agents to issue Mexico CFDI 4.0 electronic invoices (factura electrónica) via Facturapi, with tools for creating, querying, canceling, and sending invoices.Last updatedMIT
- Alicense-qualityBmaintenanceEnables AI agents to issue Chilean electronic tax documents (boleta and factura) stamped at SII via OpenFactura, with stateless bring-your-own-credentials.Last updatedMIT
- Alicense-qualityBmaintenanceEnables AI agents to issue Italian FatturaPA electronic invoices and transmit them to the SdI via Invoicetronic. Supports creating and querying invoices with Italian VAT rates.Last updatedMIT
Related MCP Connectors
Chile DTE for AI agents - boleta/factura electronica via OpenFactura or LibreDTE. Stateless BYO.
Chilean DTE/SII invoicing — issue invoices, reconcile payments and manage clients with AI agents.
Mexico CFDI 4.0 invoices for AI agents - issue, query, cancel facturas via Facturapi.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/junter1989k-ai/peru-invoice-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server