Quick install
For most agents (Claude Code, Cursor, Codex, Windsurf, etc.), run in your project directory:.claude/skills/, .cursor/skills/, etc.) automatically.
Using Claude.ai on the web or desktop? The web app can’t run
npx. Follow the
Install on Claude manually guide to upload the ZIP directly.Setup
- Create a free account at cnpj-api.com and generate a token.
- Export the token as an environment variable:
What’s included
Full cnpj-api coverage via 8 endpoints:| Endpoint | Plan | Description |
|---|---|---|
GET /v1/cnpj/{cnpj} | free+ | Full company profile |
POST /v1/bulk-cnpj | pro | Batch lookup (up to 20) |
GET /v1/simples/{cnpj} | free+ | Simples Nacional and SIMEI status |
GET /v1/socios/{pessoaId} | free+ | Partner profile and companies |
GET /v1/cidades/{id} | free+ | IBGE city aggregates |
GET /v1/cnae/{cnae} | free+ | Industry classification aggregates |
GET /v1/usage | free+ | Current plan and rate limit |
validate-cnpj.ts and bulk-lookup.ts).
How to use it
After install, ask your agent in natural language:Single lookup
“Look up CNPJ 82.845.322/0001-04”
Simples Nacional
“Is this company in Simples Nacional?”
Partners
“Show me the partners of this company”
Bulk enrichment
“Enrich this list of 50 CNPJs”
api-token header automatically.
Compatibility
Works with any agent that supports the Agent Skills format:Claude Code
Cursor
Codex
Windsurf
OpenCode
Amp
Antigravity
+35 more
Limits and plans
See plans and pricing at cnpj-api.com/precos. Batch lookup (/v1/bulk-cnpj) requires the Pro plan.
Open source
The skill is MIT-licensed and public:- Repository: github.com/cnpj-api/skills
- Agent Skills spec: agentskills.io
Next steps
Install on Claude manually
Step-by-step guide for Claude.ai (web and desktop) with ZIP upload.
GitHub repository
View the skill source, SKILL.md, references, and scripts.