MCP Nfse Nacional
The MCP server is used to query, obtain details, and download electronic service invoices (NFSe) on the Brazilian National NFSe Portal through digital certificates, supporting automatic authentication and session management.
rating : 2 points
downloads : 5.6K
What is the NFSe Nacional MCP Server?
This is an MCP server specifically designed for Brazilian electronic service invoices (NFSe). It allows AI assistants (such as Claude) to securely access the Brazilian National NFSe Portal (nfse.gov.br) through digital certificates (e - CNPJ/e - CPF) and query information on service invoices issued by enterprises or individuals. The server automatically handles complex authentication processes, enabling users to easily search, view, and download invoices.How to use the NFSe Nacional MCP Server?
Before use, you need to prepare a valid Brazilian digital certificate (.pfx/.p12 file) and its password. After configuring the certificate path and password, the AI assistant can query invoices through simple natural language instructions, such as 'Search for all NFSe invoices issued by my company last month' or 'Download the PDF file of invoice number XXX'.Applicable scenarios
Suitable for scenarios where Brazilian corporate finance personnel, accountants, and freelancers need to query and manage service invoices. It can be used for monthly reconciliation, tax audit preparation, customer invoice query, historical record archiving, etc. It is especially suitable for users who need to query invoices frequently but do not want to manually log in to the complex government portal every time.Main features
Invoice search
Search for issued NFSe electronic invoices by date range and return a list containing the date, recipient, amount, status, and invoice key.
Invoice details viewing
Get the complete detailed information of the invoice through the invoice key, including the header, issuer, amount, service description (DPS), and automatically save the XML file.
PDF download
Download the official PDF version (DANFSe) of the invoice, suitable for printing, archiving, or sending to customers.
Automatic authentication management
Automatically handle digital certificate login and transparently retry when the session expires. Users do not need to worry about complex authentication processes.
Multiple operation modes
Supports both stdio direct integration and HTTP server modes to adapt to different usage scenarios.
Advantages
Automate complex processes: Automatically handle the login and session management of the government portal.
Natural language interaction: Query through simple language using an AI assistant without learning a complex interface.
Save time: Quickly query and download in batches to improve work efficiency.
Local data storage: Automatically save XML and PDF files for subsequent processing.
Flexible deployment: Supports local operation and Docker containerized deployment.
Limitations
Requires a digital certificate: Must have a valid Brazilian e - CNPJ or e - CPF digital certificate.
Certificate management: Certificates have an expiration date and need to be updated regularly.
Technical dependence: Requires certain technical knowledge for initial configuration.
Limited to Brazil: Only applicable to the Brazilian NFSe invoice system.
Network requirements: Requires a stable Internet connection to access the government portal.
How to use
Prepare a digital certificate
Ensure that you have a valid Brazilian digital certificate (.pfx or.p12 file) and the corresponding password. Certificates are usually issued by certification authorities, such as Certisign, Serasa, etc.
Configure environment variables
Set the necessary environment variables to specify the certificate path and password. You can set them directly in the command line or use a.env file.
Select the operation mode
Select the operation mode according to your usage scenario: The stdio mode is suitable for direct integration with Claude Desktop, etc., and the HTTP mode is suitable for running as an independent service.
Configure the AI client
Configure the MCP server connection in your AI assistant client (such as Claude Desktop). Add the server configuration and point to the instance you are running.
Start querying
After configuration is complete, you can directly query invoice information from the AI assistant through natural language, such as 'Help me search for all invoices from last month'.
Usage cases
Monthly financial reconciliation
Financial personnel need to reconcile and archive all issued service invoices every month. The traditional method requires manually logging in to the government portal and querying and downloading month by month.
Customer invoice query
Customers request detailed information or the PDF version of a specific invoice, which needs to be quickly located and obtained.
Tax audit preparation
When facing a tax audit, you need to organize all invoice records and related files within a specific period.
Frequently Asked Questions
What kind of digital certificate do I need to use this service?
Is the certificate password safe? Will it be leaked?
What is the difference between the Stdio mode and the HTTP mode?
Where are the downloaded invoice files stored?
What should I do if the certificate expires?
Is this service charged?
Which AI assistants are supported?
Are there any query restrictions?
Related resources
Official documentation of the MCP protocol
Official specification documentation of the Model Context Protocol
Brazilian NFSe National Portal
Official government portal website for Brazilian electronic service invoices
Digital certificate certification authority
One of the major Brazilian digital certificate issuing authorities
GitHub repository
Project source code and latest updates
Docker usage guide
Official documentation for Docker containerized deployment

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
24.6K
4.5 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
39.0K
5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
28.1K
4.3 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
82.6K
4.3 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
71.3K
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
39.0K
5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
108.4K
4.7 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
23.7K
4.5 points



