mcp
v0.1.2Brazilian public procurement (PNCP) and Federal Revenue CNPJ data — 16 tools, 4 prompts.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_licitacoes
Search Brazilian public procurement bids (licitações) on PNCP. PNCP requires a date range and at least one modality code per query. If you do not specify, defaults are: last 7 days and modalities [6, 8, 9] (Pregão Eletrônico, Dispensa, Inexigibilidade — most common). Modality codes: 1 = Leilão - Eletrônico 2 = Diálogo Competitivo 3 = Concurso 4 = Concorrência - Eletrônica 5 = Concorrência - Presencial 6 = Pregão - Eletrônico 7 = Pregão - Presencial 8 = Dispensa de Licitação 9 = Inexigibilidade 10 = Manifestação de Interesse 11 = Pré-qualificação…
| Parameter | Type | Description |
|---|---|---|
cnpjOrgao | string | Filter by procuring agency CNPJ (14 digits, no punctuation). |
codigoMunicipioIbge | string | IBGE municipality code (7 digits). |
dataFinal | string | End date in YYYYMMDD format. Default: today. |
dataInicial | string | Start date in YYYYMMDD format. Default: 7 days ago. |
modalidades | array | List of modality codes. Default: [6, 8, 9]. |
pagina | integer | |
palavraChave | string | Keyword to filter on objetoCompra (case-insensitive substring match). |
tamanhoPagina | integer | |
uf | string | Two-letter state code (e.g. SP, RJ). |
valorMaximo | number | Maximum estimated value in BRL. |
valorMinimo | number | Minimum estimated value in BRL. |
get_licitacao
Get the full details of a single licitação (procurement bid) on PNCP. Provide either numeroControlePNCP (the full PNCP control number string) or all three of orgaoCnpj, ano, sequencial.
| Parameter | Type | Description |
|---|---|---|
ano | integer | Year of the bid (e.g. 2024) |
numeroControlePNCP | string | PNCP control number, format like 00000000000000-1-000001/2024 |
orgaoCnpj | string | Procuring agency CNPJ (14 digits) |
sequencial | integer | Sequential number of the bid |
list_licitacao_itens
List the items (lots) of a licitação on PNCP. Each item has description, quantity, unit, estimated unit value and category. Provide either numeroControlePNCP, or orgaoCnpj/ano/sequencial.
| Parameter | Type | Description |
|---|---|---|
ano | integer | |
numeroControlePNCP | string | |
orgaoCnpj | string | |
sequencial | integer |
list_licitacao_resultados
List the bidding results (winners, runners-up, prices, suppliers) for a specific item of a licitação. You must specify which item — use list_licitacao_itens first to discover item numbers.
| Parameter | Type | Description |
|---|---|---|
numeroItem * | integer | The item number (numeroItem) to retrieve results for. |
ano | integer | |
numeroControlePNCP | string | |
orgaoCnpj | string | |
sequencial | integer |
list_licitacao_arquivos
List the files (edital PDFs, attachments, terms of reference) attached to a licitação on PNCP. Returns metadata and direct URLs — does not download the file content.
| Parameter | Type | Description |
|---|---|---|
ano | integer | |
numeroControlePNCP | string | |
orgaoCnpj | string | |
sequencial | integer |
search_contratos
Search public procurement contracts (contratos) on PNCP. Useful for analyzing market history, supplier behavior, and agency spending patterns. Defaults to last 30 days when no date range is provided.
| Parameter | Type | Description |
|---|---|---|
cnpjFornecedor | string | Filter by supplier CNPJ |
cnpjOrgao | string | Filter by procuring agency CNPJ |
dataFinal | string | End date YYYYMMDD |
dataInicial | string | Start date YYYYMMDD |
pagina | integer | |
palavraChave | string | Keyword filter on objetoContrato (client-side). |
tamanhoPagina | integer | |
valorMaximo | number | |
valorMinimo | number |
get_contrato
Get the full details of a public contract on PNCP. Provide either numeroControlePNCP or orgaoCnpj/ano/sequencial.
| Parameter | Type | Description |
|---|---|---|
ano | integer | |
numeroControlePNCP | string | |
orgaoCnpj | string | |
sequencial | integer |
list_contrato_termos
List the additive terms (termos aditivos) of a contract — extensions, value increases/reductions, term changes. Useful to understand contract evolution.
| Parameter | Type | Description |
|---|---|---|
ano | integer | |
numeroControlePNCP | string | |
orgaoCnpj | string | |
sequencial | integer |
list_contrato_instrumentos
List billing instruments (NFes, faturas) attached to a contract. Reveals real execution: when payments were due, NFe keys, etc.
| Parameter | Type | Description |
|---|---|---|
ano | integer | |
numeroControlePNCP | string | |
orgaoCnpj | string | |
sequencial | integer |
search_atas_rp
Search Atas de Registro de Preço (price-registry agreements) on PNCP. ARPs are pre-negotiated agreements that any compatible agency can use within the validity period — finding ones still in vigor with available balance is a key business opportunity. Defaults: last 90 days, only active (somenteVigentes=true).
| Parameter | Type | Description |
|---|---|---|
cnpjOrgao | string | Filter by procuring agency CNPJ |
dataFinal | string | End date YYYYMMDD |
dataInicial | string | Start date YYYYMMDD |
pagina | integer | |
palavraChave | string | Keyword filter on objetoContratacao |
somenteVigentes | boolean | Only include ARPs whose vigência has not expired and that are not cancelled. |
tamanhoPagina | integer |
get_ata_rp
Get the full details of an Ata de Registro de Preço, optionally including its items (with available balance and supplier info) and attached files. Use orgaoCnpj/anoCompra/sequencialCompra (the parent procurement) and sequencialAta (the ARP within that procurement).
| Parameter | Type | Description |
|---|---|---|
anoCompra * | integer | Year of the parent procurement |
orgaoCnpj * | string | Procuring agency CNPJ |
sequencialAta * | integer | Sequential of the ARP |
sequencialCompra * | integer | Sequential of the parent procurement |
includeArquivos | boolean | |
includeItens | boolean |
get_orgao
Get a public agency's profile from PNCP: legal name, branch of government (poder), federal/state/municipal level (esfera), legal nature, address.
| Parameter | Type | Description |
|---|---|---|
cnpj * | string | Agency CNPJ (14 digits) |
get_fornecedor_contratos
List public contracts where a given CNPJ appears as the supplier (fornecedor). Useful for analyzing a competitor or a potential partner. Defaults to the last 365 days.
| Parameter | Type | Description |
|---|---|---|
cnpj * | string | Supplier CNPJ (14 digits) |
diasAtras | integer | How many days back to search. |
pagina | integer | |
tamanhoPagina | integer |
search_pca
Search recently published/updated Plano de Contratação Anual (PCA) entries — what public agencies INTEND to buy. Returns PCA entries (one per agency unit) with their items embedded. Filter by classification: 'material' or 'servico'. Defaults: last 30 days, classification 'material'. Per Lei 14.133.
| Parameter | Type | Description |
|---|---|---|
classificacao | string | Top-level classification: material (codigoClassificacaoSuperior=01) or servico (=02). |
dataFim | string | End date YYYYMMDD. Default: today. |
dataInicio | string | Start date YYYYMMDD. Default: 30 days ago. |
pagina | integer | |
tamanhoPagina | integer |
list_pca_itens
List the planned items of a specific PCA: descriptions, estimated quantities, unit values, expected delivery dates, and CATSER/CATMAT classification. Optionally filter client-side by keyword on description.
| Parameter | Type | Description |
|---|---|---|
anoPca * | integer | |
orgaoCnpj * | string | |
sequencialPca * | integer | |
palavraChave | string | Filter on descricaoItem |
get_cnpj_data
Get a Brazilian company's public registration data: legal name, trade name, primary CNAE, secondary CNAEs, address, partners (QSA), capital, juridical nature, Simples/MEI status. Source: BrasilAPI by default (free aggregator over Receita Federal Open Data). Set CNPJ_PROVIDER=minhareceita to switch.
| Parameter | Type | Description |
|---|---|---|
cnpj * | string | CNPJ in any format — punctuation is stripped. 14 digits expected. |