mcp

v0.1.2
io.github.Licinexus/mcp Checked 5 days ago Published 6 months ago

Brazilian 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…

ParameterTypeDescription
cnpjOrgaostringFilter by procuring agency CNPJ (14 digits, no punctuation).
codigoMunicipioIbgestringIBGE municipality code (7 digits).
dataFinalstringEnd date in YYYYMMDD format. Default: today.
dataInicialstringStart date in YYYYMMDD format. Default: 7 days ago.
modalidadesarrayList of modality codes. Default: [6, 8, 9].
paginainteger
palavraChavestringKeyword to filter on objetoCompra (case-insensitive substring match).
tamanhoPaginainteger
ufstringTwo-letter state code (e.g. SP, RJ).
valorMaximonumberMaximum estimated value in BRL.
valorMinimonumberMinimum 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.

ParameterTypeDescription
anointegerYear of the bid (e.g. 2024)
numeroControlePNCPstringPNCP control number, format like 00000000000000-1-000001/2024
orgaoCnpjstringProcuring agency CNPJ (14 digits)
sequencialintegerSequential 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.

ParameterTypeDescription
anointeger
numeroControlePNCPstring
orgaoCnpjstring
sequencialinteger

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.

ParameterTypeDescription
numeroItem *integerThe item number (numeroItem) to retrieve results for.
anointeger
numeroControlePNCPstring
orgaoCnpjstring
sequencialinteger

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.

ParameterTypeDescription
anointeger
numeroControlePNCPstring
orgaoCnpjstring
sequencialinteger

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.

ParameterTypeDescription
cnpjFornecedorstringFilter by supplier CNPJ
cnpjOrgaostringFilter by procuring agency CNPJ
dataFinalstringEnd date YYYYMMDD
dataInicialstringStart date YYYYMMDD
paginainteger
palavraChavestringKeyword filter on objetoContrato (client-side).
tamanhoPaginainteger
valorMaximonumber
valorMinimonumber

get_contrato

Get the full details of a public contract on PNCP. Provide either numeroControlePNCP or orgaoCnpj/ano/sequencial.

ParameterTypeDescription
anointeger
numeroControlePNCPstring
orgaoCnpjstring
sequencialinteger

list_contrato_termos

List the additive terms (termos aditivos) of a contract — extensions, value increases/reductions, term changes. Useful to understand contract evolution.

ParameterTypeDescription
anointeger
numeroControlePNCPstring
orgaoCnpjstring
sequencialinteger

list_contrato_instrumentos

List billing instruments (NFes, faturas) attached to a contract. Reveals real execution: when payments were due, NFe keys, etc.

ParameterTypeDescription
anointeger
numeroControlePNCPstring
orgaoCnpjstring
sequencialinteger

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).

ParameterTypeDescription
cnpjOrgaostringFilter by procuring agency CNPJ
dataFinalstringEnd date YYYYMMDD
dataInicialstringStart date YYYYMMDD
paginainteger
palavraChavestringKeyword filter on objetoContratacao
somenteVigentesbooleanOnly include ARPs whose vigência has not expired and that are not cancelled.
tamanhoPaginainteger

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).

ParameterTypeDescription
anoCompra *integerYear of the parent procurement
orgaoCnpj *stringProcuring agency CNPJ
sequencialAta *integerSequential of the ARP
sequencialCompra *integerSequential of the parent procurement
includeArquivosboolean
includeItensboolean

get_orgao

Get a public agency's profile from PNCP: legal name, branch of government (poder), federal/state/municipal level (esfera), legal nature, address.

ParameterTypeDescription
cnpj *stringAgency 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.

ParameterTypeDescription
cnpj *stringSupplier CNPJ (14 digits)
diasAtrasintegerHow many days back to search.
paginainteger
tamanhoPaginainteger

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.

ParameterTypeDescription
classificacaostringTop-level classification: material (codigoClassificacaoSuperior=01) or servico (=02).
dataFimstringEnd date YYYYMMDD. Default: today.
dataIniciostringStart date YYYYMMDD. Default: 30 days ago.
paginainteger
tamanhoPaginainteger

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.

ParameterTypeDescription
anoPca *integer
orgaoCnpj *string
sequencialPca *integer
palavraChavestringFilter 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.

ParameterTypeDescription
cnpj *stringCNPJ in any format — punctuation is stripped. 14 digits expected.