# mcp-brasil-public-apis

Wires an agent into 28 Brazilian public APIs — economy, legislation, courts, elections, environment, health. 26 of them need no key.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 872 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/mcp-brasil-public-apis/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/mcp-brasil-public-apis

## What it does

The skill stands up the `mcp-brasil` MCP server, which hands your agent 213 tools, 55 resources and 45 prompts. Questions about Brazilian government data go in plain language: deputies and bills, the Selic rate and IPCA, court cases, campaign finance, wildfire hotspots, hospital beds. Under the hood sits the `mcp_brasil` package with one folder per API — an `httpx` client, Pydantic v2 schemas, constants holding base URLs. The root `server.py` discovers features by scanning for `FEATURE_META`, so nothing gets registered by hand.

Two setup routes. For the Claude CLI: `claude mcp add mcp-brasil -- uvx --from mcp-brasil python -m mcp_brasil.server`. For Cursor and VS Code, drop `.vscode/mcp.json` into the project root. There is also an HTTP transport — `fastmcp run mcp_brasil.server:mcp --transport http --port 8000` serves at `http://localhost:8000/mcp`.

Keys are required for exactly two APIs: `TRANSPARENCIA_API_KEY` for Portal da Transparência and `DATAJUD_API_KEY` for DataJud/CNJ, both free to register. The other 26 answer without one. Tool discovery is tuned with `MCP_BRASIL_TOOL_SEARCH`, which takes `bm25`, `code_mode` or `none` and defaults to `bm25`. Timeouts and retry counts live in `MCP_BRASIL_HTTP_TIMEOUT` and `MCP_BRASIL_HTTP_MAX_RETRIES`. Skip the two registrations and those tools stay silent.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill mcp-brasil-public-apis -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mcp-brasil-public-apis/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mcp-brasil-public-apis/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill mcp-brasil-public-apis -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mcp-brasil-public-apis/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill mcp-brasil-public-apis -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mcp-brasil-public-apis/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills mcp-brasil-public-apis
```

2. **Manually: put the files in place**
- File: `.github/skills/mcp-brasil-public-apis/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill mcp-brasil-public-apis -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/mcp-brasil-public-apis
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mcp-brasil-public-apis/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill mcp-brasil-public-apis -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/mcp-brasil-public-apis/SKILL.md

## When to use it
- pull the Selic rate and IPCA from a Banco Central series
- trace bills and floor votes for a given deputy
- check contracts and sanctions in Portal da Transparência
- look up court cases through DataJud
- gather candidate and campaign finance records from TSE

## Example prompts
- Connect mcp-brasil and list the available features
- Find education bills in Câmara dos Deputados
- Plan a query: Transparência contracts plus TCU rulings for one supplier

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 186 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
