M

MCP Compras.gov.br

MCP server · by opedrosoares

Developer Tools PythonStreamable HTTP v0.4.0

Preços, atas, contratos e sanções das APIs públicas de compras do governo brasileiro

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

registry version 0.4.0

Python
uvx compras-mcp
Streamable HTTP
https://mcp-compras.up.railway.app/mcp

Setup by client

Pick your client — the config below is generated for this server (both local and hosted-endpoint forms). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "mcp-compras": {
      "command": "uvx",
      "args": [
        "compras-mcp"
      ],
      "env": {
        "TRANSPARENCIA_API_KEY": "<YOUR_TRANSPARENCIA_API_KEY>",
        "REDIS_URL": "<YOUR_REDIS_URL>"
      }
    }
  }
}

Remote (hosted) endpoint

https://mcp-compras.up.railway.app/mcp

Claude Desktop: Settings → Connectors → Add custom connector, paste this URL.

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • TRANSPARENCIA_API_KEY secret — Chave gratuita do Portal da Transparência (CGU). Habilita as tools de sanções (CEIS, CNEP, CEAF, CEPIM). Sem ela, as demais tools seguem funcionando. Cadastro: api.portaldatransparencia.gov.br/api-de-dados/cadastrar-emai
  • REDIS_URL secret — Opcional. Compartilha o cache TTL entre processos; sem ela o cache fica em memória local.
  • INCLUIR_CPF_COMPLETO — Default 'false': CPFs de servidores vêm mascarados (123.***.***-45) por LGPD. Use 'true' apenas quando estritamente necessário.

About this server

Distributed as Python, Streamable HTTP, listed under Developer Tools. Review our MCP security guide before granting access to real data.

Frequently asked questions

How do I install MCP Compras.gov.br?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is MCP Compras.gov.br free to use?

The MCP server itself is free to install. The source is public on https://github.com/opedrosoares/MCP_Compras. Any third-party service it calls may require its own API key and account.

Which clients support MCP Compras.gov.br?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/mcp-compras.svg)](https://mcpnav.net/server/mcp-compras/)

HTML

<a href="https://mcpnav.net/server/mcp-compras/"><img src="https://mcpnav.net/badge/mcp-compras.svg" alt="Listed on MCPNav" height="20"></a>