[Integrations](https://spiral.ai/integrations) › [Cursor](https://spiral.ai/integrations/cursor) › [Gov.br agency directory](https://spiral.ai/integrations/cursor/gov-br-agency-directory)

# How to Use Gov.br agency directory in Cursor

Finds Brazilian federal agencies and their gov.br portal identifiers. Use it to identify the right publishing agency before looking for announcements.

|  |  |
| --- | --- |
| Model | Gov.br agency directory |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Gov.br agency directory in Cursor

- Use Gov.br agency directory to find Anvisa, ANPD, and Receita Federal, then add their returned portal identifiers to our project's agency selector.
- Use Gov.br agency directory to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Gov.br agency directory and tell me what changed since last week.
- Check Gov.br agency directory and summarize what you find in three bullet points.
- Pull the newest data from Gov.br agency directory and give me the result as a table.

## How to set up Gov.br agency directory in Cursor

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to Cursor on the console's Agents & MCP page, or add this to `.cursor/mcp.json` (one project) or `~/.cursor/mcp.json` (every project):

```json
{
  "mcpServers": {
    "spiral": { "url": "https://api.spiral.ai/mcp" }
  }
}
```

2. **Sign in**: Open Cursor Settings › MCP, click Connect next to spiral, sign in to Spiral and click Authorize. No API key. Spiral then shows as connected, with its tools listed.

### Use the Spiral skill

1. **Send Cursor this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Gov.br agency directory**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "gov-br/government-publications/list_agencies",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: Cursor finds Gov.br agency directory on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/cursor

## Gov.br agency directory tools and prices

- [gov.br (Brazilian federal government portal) · List agencies](https://spiral.ai/tools/alexandria/gov-br/government-publications/list_agencies) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  | — | Words to match in the portal name, slug or group, e.g. 'saude' or 'agencia nacional'. |

## What can you do with Gov.br agency directory in Cursor?

Build a Brazilian government news dashboard with agency links, announcements, and article details. A coding agent can turn the retrieved Gov.br material into a briefing view in your project.

### Prepare a tax operations briefing

Identify Receita Federal's portal, collect recent announcements, and read relevant articles to summarize tax deadlines and operational changes for a business team.

### Review health regulation announcements

Find Anvisa's portal, scan its news, and read selected announcements to prepare a review queue for a medical products team.

### Build a privacy policy reading list

Locate ANPD, gather recent news links, and read relevant pages to assemble a reading list about data protection guidance and consultations.

### Follow environmental agency publications

Identify Ibama's portal and review its announcements and article text for an environmental policy briefing.

### Research public health communications

Find the Ministry of Health portal, collect relevant announcements, and read the original pages to compare campaign messages and publication dates.

### Find government software documentation announcements

Locate Receita Federal, review news about technical documentation, and read the articles to identify the official documentation links they provide.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Cursor guides](https://spiral.ai/integrations/cursor)

## Gov.br agency directory in other agents

- [Amp](https://spiral.ai/integrations/amp/gov-br-agency-directory)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/gov-br-agency-directory)
- [Claude](https://spiral.ai/integrations/claude-desktop/gov-br-agency-directory)
- [Claude Code](https://spiral.ai/integrations/claude-code/gov-br-agency-directory)
- [Cline](https://spiral.ai/integrations/cline/gov-br-agency-directory)
- [Codex](https://spiral.ai/integrations/codex/gov-br-agency-directory)
- [Devin](https://spiral.ai/integrations/devin/gov-br-agency-directory)
- [dots](https://spiral.ai/integrations/dots/gov-br-agency-directory)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/gov-br-agency-directory)
- [Gemini](https://spiral.ai/integrations/gemini/gov-br-agency-directory)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/gov-br-agency-directory)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/gov-br-agency-directory)
- [goose](https://spiral.ai/integrations/goose/gov-br-agency-directory)
- [Grok](https://spiral.ai/integrations/grok/gov-br-agency-directory)
- [Grok Build](https://spiral.ai/integrations/grok-build/gov-br-agency-directory)
- [Hermes](https://spiral.ai/integrations/hermes/gov-br-agency-directory)
- [Instinct](https://spiral.ai/integrations/instinct/gov-br-agency-directory)
- [Manus](https://spiral.ai/integrations/manus/gov-br-agency-directory)
- [Muse](https://spiral.ai/integrations/muse/gov-br-agency-directory)
- [Muse Code](https://spiral.ai/integrations/muse-code/gov-br-agency-directory)
- [n8n](https://spiral.ai/integrations/n8n/gov-br-agency-directory)
- [Notion](https://spiral.ai/integrations/notion/gov-br-agency-directory)
- [OpenClaw](https://spiral.ai/integrations/openclaw/gov-br-agency-directory)
- [opencode](https://spiral.ai/integrations/opencode/gov-br-agency-directory)
- [Perplexity](https://spiral.ai/integrations/perplexity/gov-br-agency-directory)
- [Raycast](https://spiral.ai/integrations/raycast/gov-br-agency-directory)
- [VS Code](https://spiral.ai/integrations/vscode/gov-br-agency-directory)
- [Windsurf](https://spiral.ai/integrations/windsurf/gov-br-agency-directory)
- [Zapier](https://spiral.ai/integrations/zapier/gov-br-agency-directory)

## More Cursor guides

- [GOV.UK publication search](https://spiral.ai/integrations/cursor/gov-uk-publication-search)
- [Gov.br agency news](https://spiral.ai/integrations/cursor/gov-br-agency-news)
- [GOV.UK product safety notices](https://spiral.ai/integrations/cursor/gov-uk-product-safety-notices)
- [Gov.br page content](https://spiral.ai/integrations/cursor/gov-br-page-content)
- [GOV.UK page content](https://spiral.ai/integrations/cursor/gov-uk-page-content)
- [GovInfo U.S. Code browse](https://spiral.ai/integrations/cursor/govinfo-u-s-code-browse)

## Questions about Gov.br agency directory in Cursor

**Can Cursor use Gov.br agency directory?**

Yes. Add Spiral to Cursor as an MCP server, and Cursor can find and run Gov.br agency directory like any built-in tool.

**How much does Gov.br agency directory cost in Cursor?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Cursor plan is separate.

**Do I need an Alexandria account to use Gov.br agency directory in Cursor?**

No. Spiral runs Gov.br agency directory on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Gov.br agency directory in Cursor?**

About two minutes: add the hosted server, then sign in.

**Does Cursor wait while Gov.br agency directory runs?**

Gov.br agency directory runs in the background. Cursor starts the run, checks on it and gives you the json when it's ready.

**Which part of Brazil's government does Gov.br cover?**

The institutional portal covers the federal executive administration, including ministries, autonomous agencies, and public foundations. Its founding scope does not establish comprehensive coverage of state governments, municipalities, courts, or Congress.

**Who writes and maintains the information?**

Each federal agency controls its own content production, editing, and publication. Gov.br centralizes access while the publishing agency remains responsible for the information.

**Can a published announcement change later?**

Yes. Receita Federal's November 18, 2026, Cash Out announcement shows publication at 07:13 and an update at 08:19, so publication and update times can differ even on the same day.

**Does one news page contain the entire archive?**

Receita Federal's news archive spans multiple pages, with numbered navigation and links to earlier and later pages. A single listing page therefore covers only part of that agency's archive.

**Can I republish Gov.br content?**

The government directory displays a CC BY-ND 3.0 license notice. That license requires attribution and a license link and prohibits distributing modified material under its terms; check the notice on the specific content you intend to reuse.

