How to Use the Focus NFe MCP in Claude Code
Automate Brazilian tax compliance from your terminal by connecting Claude Code to the Focus NFe MCP server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Focus NFe MCP to Claude Code
Create your Vinkius account to connect Focus NFe to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Terminal-Driven Product Invoice Emission
The `emit_nfe` tool issues Brazilian product invoices directly from your command-line interface via the MCP server. Claude Code executes this tool to trigger live or sandbox emissions without opening a browser or an IDE. You can pipe JSON payloads from local files directly into the tool. The CLI client processes the SEFAZ response, allowing you to build lightweight shell scripts for automated billing runs.
Headless Service Invoice Generation
The `emit_nfse` tool generates municipal service invoices via the command line. Claude Code calls this tool to handle complex city-level tax structures during automated cron jobs or deployment scripts. This headless execution makes it simple to integrate service billing into your CI/CD pipelines. You can trigger emissions after successful subscription renewals without writing backend glue code.
CLI Document Verification and Cancellation
The `consult_document` tool checks the status of any invoice directly inside your terminal session. Claude Code runs this to inspect SEFAZ processing times and return raw tax data. If a transaction fails validation or needs a rollback, you can invoke `cancel_document` with a justification string. You can also run `download_xml` to pipe the authorized fiscal XML directly into other CLI utilities.
Set up Focus NFe MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seefocus-nfe-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Focus NFe transactions." It will automatically discover and invoke the available Focus NFe tools.
claude mcp add --transport http focus-nfe-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Focus NFe MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Focus NFe MCP today
We host it, we monitor it, we maintain it. You just paste one token.