Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Fiscal Brasil

MCP server by DeHor-Labs Community

MCP Fiscal Brasil is an MCP server that gives AI assistants Brazilian tax tools for CNPJ, NF-e, SPED, Simples Nacional and tax reform (IBS/CBS) data. It is aimed at developers, ERPs and internal automations, and many tools need no API key.

  • Score 84
  • 452 stars
  • MIT
  • Updated

Install MCP Fiscal Brasil

Built from the published package, never by AI.

claude mcp add mcp-fiscal-brasil -- uvx mcp-fiscal-brasil

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Fiscal Brasil in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-fiscal-brasil block.

About

MCP Fiscal Brasil is an MCP server that connects AI assistants to Brazilian fiscal data. It covers CNPJ and CPF lookups, Simples Nacional and MEI status, NF-e and NFC-e tools, SPED and eSocial analysis, certificates, and offline reference tables for NCM, CFOP and CNAE. The publisher is DeHor-Labs, and the server is installed with uvx from PyPI as mcp-fiscal-brasil.

Several tools work offline, such as NF-e key validation, XML parsing, DANFE PDF generation, signature checks and SPED analysis. Lookups use BrasilAPI and public sources, and cpfcnpj.com.br can be enabled as an optional premium provider. Tools that call SEFAZ web services need a local A1 digital certificate, which is never sent to an external server. The project is aimed at developers, ERPs, CRMs and internal automations that need fiscal data, and at agents that run supplier due diligence.

Written from the project's README and checked against it.

Tools it gives your assistant

  • consultar_cnpjReturns full company data, including corporate name, partners, main CNAE and address.
  • consultar_simples_nacionalChecks whether a company is a Simples or MEI taxpayer, with entry and exclusion dates.
  • validar_chave_nfeValidates the check digit of a 44-digit NF-e key and extracts state, CNPJ, date and number.
  • consultar_nfeLooks up a complete NF-e by its 44-digit access key.
  • parse_nfe_xmlParses raw NF-e or NFC-e XML and returns structured data.
  • gerar_danfeGenerates an A4 DANFE PDF from an NF-e XML file (model 55).
  • validar_assinatura_nfeValidates the XMLDSig signature of an NF-e and extracts certificate data.
  • analisar_spedAnalyzes an EFD, ECD or ECF file for period, company and errors.
  • risk_score_supplierGives a 0-100 supplier risk score with factors and a hiring recommendation.
  • analyze_cnpj_complianceBuilds a compliance report for a CNPJ, combining company and Simples/MEI and CNAE data.

What you need

  • uv, to run the server with uvx
  • Python, as the server is implemented in Python
  • An A1 digital certificate (.pfx or .p12) for SEFAZ tools
  • A cpfcnpj.com.br token for full NFC-e lookup or premium data (optional)

Try asking

  • Check whether the company with CNPJ 12.345.678/0001-90 is in Simples Nacional
  • Is this NF-e access key valid? Check the check digit and issuing state
  • Analyze this SPED file and list its period, company and errors

Good to know

  • Tools that call SEFAZ web services require an A1 digital certificate.
  • Full NFC-e lookup requires a cpfcnpj.com.br token, otherwise only partial data from public sources is returned.
  • The NFS-e tool returns a link to the municipal portal and needs manual action there.
  • The hosted web demo runs on Render's free tier and may take 30 seconds to wake up.

Security check

B
  • Downloads a script from the internet and runs it (a well-known installer)In README.md: curl -LsSf https://astral.sh/uv/install.sh | sh

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to MCP Fiscal Brasil

All alternatives →
mcp stripe
96

Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.

AAA Remote 2.1k
TradingMCPatilaahmettaner
94

Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.

AAA Remote 5.4k
CCXTccxt
94

CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.

AAA Local 45k
Finance ToolkitJerBouma
94

Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.

AAA Local and remote 5.6k
Vapi Network MCP vAPI-Network
94

Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.

AAA Local 6.2k
Finance DatabaseJerBouma
94

Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.

AAA Local and remote 9.7k

Compare with mcp, TradingMCP or CCXT

MCP Fiscal Brasil: common questions

Does MCP Fiscal Brasil need an API key?

The project works without an account or API key by default. A cpfcnpj.com.br token is only needed for the optional premium provider and full NFC-e lookup.

Can it check whether a Brazilian company is an MEI or in Simples Nacional?

Yes. The consultar_simples_nacional tool reports Simples and MEI status with entry and exclusion dates, using BrasilAPI.

Does the server send my digital certificate to external servers?

The source says the certificate and its password are never sent to any external server, and mTLS and XMLDSig signing are done locally.

How do I install MCP Fiscal Brasil?

In Claude Code run claude mcp add mcp-fiscal-brasil -- uvx mcp-fiscal-brasil. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Fiscal Brasil the official server?

MCP Fiscal Brasil is a community project by DeHor-Labs, not verified by a company domain.

Is MCP Fiscal Brasil free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MCP Fiscal Brasil safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (downloads a script from the internet and runs it (a well-known installer)). Review the code before you install. How grades work.

What are alternatives to MCP Fiscal Brasil?

Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.

Does MCP Fiscal Brasil work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP Fiscal Brasil Install

Add to stack

Loading.