# FiscalAPI MCP server

> Allows AI agents to query Brazilian tax information including CNPJ, State Registration, Simples Nacional, and various tax clearance certificates.

- Repository: https://github.com/fiscalapi-br/fiscalapi-mcp
- Page: https://hostedmcp.org/servers/fiscalapi-br/fiscalapi-mcp
- Transport: remote
- Stars: 0
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add --transport http fiscalapi-mcp https://mcp.fiscalapi.com.br/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "fiscalapi-mcp": {
      "url": "https://mcp.fiscalapi.com.br/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "fiscalapi-mcp": {
      "type": "http",
      "url": "https://mcp.fiscalapi.com.br/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"fiscalapi-mcp","type":"http","url":"https://mcp.fiscalapi.com.br/mcp"}'
```

### Codex

```sh
codex mcp add fiscalapi-mcp --url https://mcp.fiscalapi.com.br/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.fiscalapi-mcp]
url = "https://mcp.fiscalapi.com.br/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http fiscalapi-mcp https://mcp.fiscalapi.com.br/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "fiscalapi-mcp": {
      "url": "https://mcp.fiscalapi.com.br/mcp",
      "type": "http"
    }
  }
}
```

## FAQ

### Are there any free tools available?

Yes, the 'validar_inscricao_estadual' and 'cobertura' tools work without a key and do not incur costs.

### How much does it cost to use the paid tools?

Costs vary by plan (Lite, Starter, Pro, Enterprise) per query, ranging from R$ 0,67 to R$ 0,025 per consultation.

### How can I prevent accidental charges?

Paid tools require the 'confirmo_custo=true' parameter; without it, the tool only explains the cost without performing the query.
