NFe.io MCP. Issue, validate, and manage Brazilian invoices.
Works with every AI agent you already use
…and any MCP-compatible client
Just plug in your AI agents and start using Vinkius.
NFe.io MCP Server manages Brazilian fiscal documents. Your AI agent uses this server to issue, cancel, and retrieve service and merchandise invoices (NFS-e/NF-e).
It also validates municipal codes (IBGE) and maintains corporate tax metadata directly from your workflow.
What your AI agents can do
Cancel merchandise invoice
Reverses an already issued physical goods invoice (NF-e).
Cancel service invoice
Reverses an already issued service invoice (NFS-e).
Create company
Registers a new company entity, allowing it to issue invoices through NFe.io.
Create and issue both Service Invoices (NFS-e) and Merchandise Invoices (NF-e).
Reverse issued invoices using dedicated tools for service or merchandise types.
Get the full status and details of any existing invoice by its unique ID, including download links for PDF/XML.
List all registered companies or pull detailed tax metadata for a specific corporate issuer.
Check municipal compatibility and validate IBGE codes necessary for compliant invoicing.
Ask AI about this MCP
Supported MCP Clients
Waiting for input…
NFe.io MCP Server: 10 Tools for Brazilian Fiscal Operations
Your AI agent can use these tools to manage the full lifecycle of invoicing—from company setup and code validation to issuing, canceling, and retrieving all required fiscal documents.
019d845fcancel merchandise invoice
Reverses an already issued physical goods invoice (NF-e).
019d845fcancel service invoice
Reverses an already issued service invoice (NFS-e).
019d845fcreate company
Registers a new company entity, allowing it to issue invoices through NFe.io.
019d845fget company details
Pulls detailed fiscal and tax information for a specific company issuer ID.
019d845fget merchandise invoice
Retrieves all details about an existing physical goods invoice (NF-e).
019d845fget service invoice
Retrieves all details about an existing service invoice (NFS-e).
019d845fissue merchandise invoice
Creates and issues a new physical goods invoice (NF-e) compliant with Brazilian tax rules.
019d845fissue service invoice
Generates and issues a new service invoice (NFS-e) for billing services rendered.
019d845flist companies
Provides a list of every company entity currently registered under your NFe.io account.
019d845flist webhooks
Lists all the external webhooks you have configured for notifications from NFe.io.
Choose How to Get Started
Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.
Build Your Own
Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.
- Import from OpenAPI, Swagger, or YAML specs
- Create Agent Skills with progressive disclosure
- Deploy to edge with MCPFusion framework
- Built in DLP, auth, and compliance on every call
- Real time usage dashboard and cost metering
- Publish to catalog or keep private
Make Your AI Do More
Start with NFe.io, then connect any of our 4,700+ other servers whenever your AI needs more. One click, no limits.
- Use this MCP plus 4,700+ others, all in one place
- Add new capabilities to your AI anytime you want
- Every connection is secured and compliant automatically
- Track usage and costs across all your servers
- Works with Claude, ChatGPT, Cursor, and more
- New servers added to the catalog every week
What you can do with this MCP connector
Listen up. If you're dealing with Brazilian fiscal documents—the whole shebang of invoices and corporate tax stuff—you need NFe.io. This isn't some flimsy API wrapper; it's a full-stack MCP that manages the entire lifecycle of your financial records, from setting up a new entity to canceling an invoice years later.
Your AI agent connects here to handle all the complex state changes in Brazilian tax law for you.
Managing Your Corporate Identity
You gotta know who you are before you can bill anybody. You tell your agent to use create_company and it registers a brand new corporate entity, giving you the necessary ID to start issuing documents through NFe.io. If you've got multiple business fronts running, list_companies spits out every company registered under your account so you can pick the right one.
Need the deep details on one specific issuer? Run get_company_details. It pulls all the granular fiscal and tax metadata for that corporate ID—everything you need to know about their compliance status.
Issuing Invoices: Goods or Services
When it's time to bill, this server handles both types of transactions. You can generate a new physical goods invoice (the NF-e) by calling issue_merchandise_invoice. This tool makes sure the resulting document is compliant with all Brazilian tax rules for merchandise sales. If you're billing for services rendered—like consulting hours or setup fees—you use issue_service_invoice to generate the required service invoice (NFS-e).
Both functions create and issue the documents, making them instantly usable.
Retrieving and Correcting Invoices
Life happens, right? Sometimes an invoice needs correcting, or you just need a copy of what was issued. To pull up all the details for any existing physical goods invoice (NF-e), your agent uses get_merchandise_invoice with the unique ID. It doesn't just give you basic info; it pulls the full status and every detail about that specific merchandise document, including links to download both the PDF and XML files.
Same deal for services: get_service_invoice retrieves all the details for an existing service invoice (NFS-e). If an invoice needs reversing—whether it's goods or services—you use dedicated tools. To reverse a physical goods transaction, call cancel_merchandise_invoice. For services, you run cancel_service_invoice. These functions ensure the reversal is processed correctly through the system.
Advanced Operations and Webhooks
Beyond just invoices, this server handles backend setup too. If your business process requires external notifications—say, when an invoice changes status—you can use list_webhooks to see every single one of those configured endpoints. You also manage the credentials for your agent; if you ever need a list of all companies registered, running list_companies is your go-to move.
How NFe.io MCP Works
- 1 First, you subscribe to the NFe.io MCP Server and log into your dashboard.
- 2 Next, you pull the API Key and Company ID credentials required for issuing transactions.
- 3 Finally, you instruct your agent (e.g., 'Issue an NFS-e for this client') and it runs the appropriate tool against the live Brazilian fiscal system.
The bottom line is: You hand off the complex compliance logic to the server; your AI client just needs to know which action to trigger.
Who Is NFe.io MCP For?
This is for SaaS developers building B2B platforms in Brazil, or finance teams who are tired of manually cross-referencing company tax status and invoice records across multiple dashboards. If your job involves generating revenue documents compliant with Brazilian law, you need this.
You integrate the issue_service_invoice tool into a client-facing workflow so that billing happens automatically when a user signs up.
You use the agent to bulk check and retrieve XML files for monthly reconciliation, pulling data via tools like get_service_invoice.
You monitor company records using list_companies before a major contract signing to ensure the legal entity is properly set up for invoicing.
What Changes When You Connect
- Automated Billing: Instead of writing complex integration code for every tax rule, use
issue_service_invoiceto generate compliant NFS-e documents in one call. Your agent handles the state changes; you just provide the payload. - Instant Status Checks: Need to know if an invoice cleared? Use
get_merchandise_invoiceorget_service_invoice. You get immediate status updates and download links for both PDF and XML, eliminating manual portal checks. - Compliance Guardrails: Before billing, validate the location. The server lets you check municipal compatibility using IBGE codes, stopping failed invoices before they even start. This prevents costly failures down the line.
- Company Setup Made Simple: Don't manually set up every client. Use
create_companyto register a new issuer and then useget_company_detailsto pull their tax metadata for immediate billing readiness. - Audit Trail Management: When an invoice needs adjustment, don't guess the process. Explicitly run
cancel_service_invoiceto ensure proper reversal records are created, keeping your books clean.
Real-World Use Cases
Client Onboarding and Billing
A new client signs up (Problem). The agent first runs get_company_details using the provided CNPJ to check their tax status. If good, it then uses issue_service_invoice, generating the required NFS-e document automatically for billing.
Post-Sale Adjustment
A client reports an error on a recent invoice (Problem). The agent first runs get_service_invoice to pull the original ID and status. Once verified, it uses cancel_service_invoice before issuing a corrected replacement.
Bulk Reconciliation
The accounting team needs monthly records (Problem). The agent executes list_companies, gets a list of all entities, and then iterates through them using get_merchandise_invoice to pull all necessary XML data for reconciliation.
System Health Check
You need to know if your webhook setup is accurate (Problem). The agent runs list_webhooks first, and then uses the resulting list to confirm that every required billing event has a configured notification endpoint.
The Tradeoffs
Assuming Data Consistency
The developer tries to issue an invoice (issue_service_invoice) without first confirming the client's tax status, leading to immediate API rejection and a failed transaction.
→
Always run get_company_details first. Validate that the company is active before calling any issuance tools. Use this sequence: get_company_details $\rightarrow$ check response $\rightarrow$ issue_service_invoice.
Mixing Invoice Types
Trying to cancel a merchandise invoice (cancel_merchandise_invoice) using the service invoice ID, causing the system to fail due to mismatched record types.
→
Always use the dedicated tool for the document type. For physical goods, use get_merchandise_invoice and cancel_merchandise_invoice. For services, use the 'service' tools.
Overlooking Webhooks
Building a system that relies on invoice status changes but forgets to check if webhooks are set up (list_webhooks), causing the downstream service to stall silently.
→
Before launching any critical workflow, run list_webhooks to verify which events (e.g., 'invoice_issued') have active listeners.
When It Fits, When It Doesn't
Use this MCP Server if your primary need is generating, managing, or validating invoices that must adhere to specific Brazilian fiscal compliance standards. You'll use it when the transaction involves tax codes (IBGE) or requires official document generation (PDF/XML).
Don't use this server if you only need simple record-keeping—if your internal system already tracks invoice status and doesn't require official government-mandated receipts, stick with your existing database. Also, don't use it just because you want to list companies; always pair list_companies with get_company_details if you need the actual tax metadata for billing.
This is a transactional tool. If failure handling and compliance are non-negotiable, this server provides the necessary structure.
Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by NFe.io. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
VINKIUS INFRASTRUCTURE
Cloud Hosted
Managed infra
V8 Isolated
Sandboxed per request
Zero-Trust Proxy
No stored credentials
DLP Enforced
Policy on every call
GDPR Compliant
EU data residency
Token Compression
~60% cost reduction
Works with Claude, ChatGPT, Cursor, and more
The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.
This server provides 10 capabilities that interface natively with Claude, ChatGPT, Cursor, and any MCP client. No middleware. No custom integration required.
Available Capabilities
Manually tracking invoices across multiple tabs takes forever.
Right now, generating or checking an invoice status means jumping through hoops: logging into the portal, finding the client's tax ID, navigating to the correct document type (service vs. merchandise), and then hitting 'View Status.' If you need the XML for accounting, it’s another click, often leading to outdated data or a confusing error message.
With this MCP server, that whole process collapses into one call. You tell your agent what you need—say, 'Check invoice ID X'—and it runs `get_service_invoice`. The result isn't just text; it's the structured status and direct download links for both PDF and XML.
NFe.io MCP Server: Manage invoices & company details
Before, setting up a new client meant gathering tax codes, manually verifying the IBGE code, and ensuring your internal system matched the fiscal configuration—a process that risked compliance errors before you even sent the first bill.
Now, you run `get_company_details` to pull all necessary metadata in seconds. The agent validates the company's standing right there, letting you build reliable billing workflows without any manual tax research or data entry.
Common Questions About NFe.io MCP
How do I cancel a service invoice using the `cancel_service_invoice` tool? +
You pass the specific Service Invoice ID to the tool. The server handles the reversal process and ensures all necessary accounting adjustments are recorded automatically.
Which tool should I use to list all my registered companies? Use `list_companies`. +
list_companies pulls a complete roster of every company entity associated with your account. This is the first step if you need to know which entities are available for billing.
I need to get the XML and PDF links for an invoice. Which tool should I use? Use `get_service_invoice` or `get_merchandise_invoice`. +
Both retrieval tools (get_service_invoice/get_merchandise_invoice) return a detailed payload that includes direct download links for both the PDF and XML versions, making them perfect for automated reporting.
What is the best way to start a new invoicing workflow? Use `create_company` first. +
create_company registers a new issuer entity in NFe.io. This must happen before you can successfully issue any invoices for that specific legal entity.
Before I run `get_company_details`, what credentials do I need for authentication? +
You must use an API Key and your Company ID. The server requires these two parameters to authenticate the request. Always grab your keys from the NFe.io Dashboard settings before calling any company-specific tool.
If I use `issue_service_invoice` with incorrect fiscal data, how do I know what went wrong? +
The tool returns a structured error code and message. It doesn't just fail; it tells you exactly which field—like the IBGE code or tax ID—is incompatible with Brazilian standards. Check the response payload for specific validation errors.
How can I monitor real-time updates using `list_webhooks`? +
You don't use list_webhooks to receive data; you use it to see what webhooks are configured. To actually monitor changes, you must set up a webhook endpoint in the NFe.io Dashboard that points back to your system.
When I run `get_merchandise_invoice`, does it provide all related tax metadata? +
Yes, it provides a detailed payload containing not only the invoice status but also the associated fiscal records and tax coefficients. This means your AI agent gets enough data to process compliance reports without needing extra calls.
Can my AI automatically issue an NFS-e for a specific customer? +
Yes! Use the issue_service_invoice tool with the Company ID and a JSON payload containing the customer data and service values. Your agent will trigger the issuance process with the relevant municipality.
How do I find the correct IBGE code for a Brazilian city? +
You can use the list_cities tool to search for municipalities by name or state. The agent will return the official IBGE codes required for fiscal document validation.
Can I retrieve the download link for an invoice PDF? +
Yes! Use the get_service_invoice tool with the unique Invoice ID. Your agent will return the metadata, including official links to download the PDF and XML versions of the document.
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
More in this category
MCPFusion Developer Prover
LLMs have never been trained on MCPFusion. They use raw z.object(), skip Presenters, mix semantic verbs, and violate MVA layering. This tool teaches the framework through structured reflection — forcing the agent to prove it understands defineModel(), Presenters, and the Model-View-Ag...
Copper CRM
Equip your AI agent to manage leads, people, and sales opportunities directly within Copper CRM.
Yida
Enterprise low-code development platform by DingTalk — manage forms, data instances, and approval workflows via AI.
You might also like
Tencent COS / 腾讯云对象存储
China's dominant cloud storage platform — manage files, metadata, and CDN endpoints via AI.
OpenAI Alternative
Manage OpenAI resources via API — list models, monitor fine-tunes, manage batches and inspect Assistants from any AI agent.
BrightHR
Simplify people management with holiday tracking, shift scheduling, and absence management built for UK and ANZ businesses.