npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codespar/mcp-nfe-io

v0.2.1

Published

MCP server for NFe.io — NF-e, NFS-e, CNPJ, CEP

Readme

@codespar/mcp-nfe-io

MCP server for NFe.io — NF-e / NFS-e fiscal document emission plus CNPJ and CEP lookups for Brazil.

npm License: MIT

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "nfe-io": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-nfe-io"],
      "env": {
        "NFEIO_API_KEY": "your-api-key",
        "NFEIO_COMPANY_ID": "your-company-id-or-cnpj"
      }
    }
  }
}

Claude Code

claude mcp add nfe-io -- npx @codespar/mcp-nfe-io

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "nfe-io": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-nfe-io"],
      "env": {
        "NFEIO_API_KEY": "your-api-key",
        "NFEIO_COMPANY_ID": "your-company-id-or-cnpj"
      }
    }
  }
}

Tools (22)

| Tool | Purpose | |---|---| | create_nfse | Issue an NFS-e (service invoice). | | get_nfse | Fetch a single NFS-e by id. | | cancel_nfse | Cancel an NFS-e. | | list_nfse | List NFS-e with pagination + optional flowStatus filter. | | email_nfse | Email the PDF of an already-issued NFS-e to a recipient. | | create_nfe | Issue an NF-e (product invoice). | | get_nfe | Fetch a single NF-e by id. | | cancel_nfe | Cancel an NF-e. | | list_nfe | List NF-e with pagination + optional status filter. | | get_nfe_pdf | Return the DANFE PDF URL for an issued NF-e. | | consult_cnpj | Look up Brazilian company data (razão social, status, address) by CNPJ. | | consult_cep | Resolve a Brazilian postal code (CEP) to a full address. | | correct_nfe | Issue a Carta de Correção (CC-e) for an authorized NF-e. | | get_nfe_xml | Return the authorized XML URL for an NF-e. | | get_nfse_pdf | Return the PDF URL for an issued NFS-e. | | get_nfse_xml | Return the XML URL for an issued NFS-e. | | list_companies | List companies registered on the NFe.io account. | | get_company | Fetch a single company by id or CNPJ. | | create_company | Provision a new company on NFe.io. | | list_webhooks | List webhook endpoints registered for a company (invoice event callbacks). | | create_webhook | Register a webhook endpoint. | | delete_webhook | Remove a webhook endpoint by id. |

Environment

| Variable | Required | Notes | |---|---|---| | NFEIO_API_KEY | yes | Issuance + query scopes. NFe.io supports splitting this into two keys; either is fine. | | NFEIO_COMPANY_ID | no | Default company id (or CNPJ). Per-call company_id arguments override it. |

Hosts

NFe.io segments its API across three hostnames. This server maps tools to the correct one automatically:

  • api.nfse.io — product invoices
  • api.nfe.io — service invoices + company management
  • nfe.api.nfe.io — lookups (CNPJ, CEP)

Demo mode

Pass --demo or set MCP_DEMO=true to return canned responses without hitting the network. Useful for documentation, screencasts, and CI.

Links

License

MIT