Public procurementColombiaNo keyBeta

Colombian public contracts (SECOP II)

Signed contracts and procurement processes of the Colombian State in SECOP II, by text, agency, NIT, department, dates, value or status, from datos.gov.co.

colombia_secop_search

Use it over MCP

  1. Connect the server https://mcp.betterllama.com/mcp in your client (setup per client).
  2. Ask your agent, for example:
    • «Software contracts signed this month in Antioquia»
    • «Procurement processes published by the Medellín mayor's office about road supervision»
  3. Or call the tool colombia_secop_search with these arguments:
arguments
{
  "dataset": "contratos",
  "query": "software",
  "department": "Antioquia",
  "maxItems": 5
}

This tool needs no key.

Beta: free and with no sign-up while we test the service.

Direct HTTP call (JSON-RPC)

Without an MCP client, POST to the same server:

curl
curl -s https://mcp.betterllama.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "colombia_secop_search", "arguments": {"dataset": "contratos", "query": "software", "department": "Antioquia", "maxItems": 5}}}'
python
import json, requests

# Call a Better Llama MCP tool over HTTP (JSON-RPC)
URL = "https://mcp.betterllama.com/mcp"
HEADERS = {"Accept": "application/json, text/event-stream"}

def call(tool, arguments):
    body = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
            "params": {"name": tool, "arguments": arguments}}
    r = requests.post(URL, json=body, headers=HEADERS, timeout=120)
    r.raise_for_status()
    result = r.json()["result"]
    data = json.loads(result["content"][0]["text"])
    if result.get("isError"):
        raise RuntimeError(data["error"])
    return data

data = call("colombia_secop_search", {"dataset": "contratos", "query": "software", "department": "Antioquia", "maxItems": 5})
for row in data["results"]:
    print(row)
print(data["attribution"])

The answer text is JSON with results, count, warnings, attribution and source.

Example response

Real results returned by the source (2026-11-19), shortened:

json
{
  "results": [
    {
      "tipo_registro": "contrato",
      "id_contrato": "CO1.PCCNTR.10142988",
      "referencia": "CPS 098-2026",
      "proceso": "CO1.BDOS.11123118",
      "estado": "Aprobado",
      "objeto": "SERVICIO DE SUSCRIPCIÓN ANUAL DEL ERP ARIESNET CON EL MODELO SOFTWARE COMO SERVICIO (SAAS) DE LOS MÓDULOS: PRESUPUESTO; TESORERIA Y PAC;…",
      "tipo_contrato": "Prestación de servicios",
      "modalidad": "Contratación directa",
      "entidad": {
        "nombre": "INSTITUTO MUNICIPAL DE DEPORTES DEL MUNICIPIO DE TURBO",
        "nit": "890985359",
        "departamento": "Antioquia",
        "ciudad": "Turbo",
        "orden": "Territorial",
        "sector": "deportes"
      },
      "proveedor": {
        "nombre": "SISTEMAS ARIES SAS",
        "tipo_documento": "NIT",
        "nit": "800210193",
        "es_pyme": "No"
      },
      "moneda": "COP",
      "valor_contrato": 17000000,
      "valor_pagado": 0,
      "valor_facturado": 0,
      "origen_recursos": "Recursos Propios",
      "fecha_firma": "2026-11-18T13:05:07.167",
      "fecha_fin": "2026-12-30T12:00:00.000",
      "duracion": "2 Mes(es)"
    },
    {
      "tipo_registro": "contrato",
      "id_contrato": "CO1.PCCNTR.10179450",
      "referencia": "VAD 1687 DE 2026",
      "proceso": "CO1.BDOS.11104023",
      "estado": "Aprobado",
      "objeto": "Servicio de soporte técnico especializado para la administración; configuración; parametrización e integración de las plataformas de soft…",
      "tipo_contrato": "Prestación de servicios",
      "modalidad": "Mínima cuantía",
      "entidad": {
        "nombre": "IU PASCUAL BRAVO COMPRADOR",
        "nit": "8909801583",
        "departamento": "Antioquia",
        "ciudad": "Medellín",
        "orden": "Nacional",
        "sector": "Educación Nacional"
      },
      "proveedor": {
        "nombre": "SOLUTRONIC SAS",
        "tipo_documento": "NIT",
        "nit": "900961031",
        "es_pyme": "Si"
      },
      "moneda": "COP",
      "valor_contrato": 48982780,
      "valor_pagado": 0,
      "valor_facturado": 0,
      "origen_recursos": "Recursos Propios",
      "fecha_firma": "2026-11-18T11:36:18.469",
      "fecha_fin": "2026-12-31T23:00:00.000",
      "duracion": "45 Dia(s)"
    }
  ],
  "attribution": "Fuente: Portal de Datos Abiertos www.datos.gov.co — SECOP II (Agencia Nacional de Contratación Pública – Colombia Compra Eficiente). Licencia CC BY-SA 4.0. La fecha de última actualización del conjunto viene en sourceUpdatedAt."
}

Parameters

ArgumentDescriptionType
datasetcontratos = SECOP II Electronic Contracts (jbjy-vk9h); procesos = SECOP II Procurement Processes (p6dx-8zbt).
Values: contratos, procesos; Default: "contratos"
string
queryFree text (Socrata full-text search), e.g. "software", "interventoría vial".string
entityPart of the buying entity's name, e.g. "Alcaldía de Medellín".string
entityNitNIT of the buying entity (digits only, without check digit).string
supplierNitNIT of the awarded supplier (digits only).string
departmentDepartment of the entity, e.g. "Antioquia", "Bogotá", "Valle del Cauca".string
fromDateFrom (YYYY-MM-DD). Contracts: signing date. Processes: publication date.string
toDateTo (YYYY-MM-DD), inclusive.string
minValueMinimum value in Colombian pesos (contracts: contract value; processes: base price).number
statusStatus (partial match). Contracts: e.g. "En ejecución", "Firmado", "terminado". Processes: e.g. "Publicado", "Adjudicado", "Seleccionado".string
offsetResults to skip (pagination).
Default: 0; Max: 10000
integer
maxItemsMaximum number of results to return (1-50). Default 10.
Default: 10; Max: 50
integer

Source and attribution

Fuente: Portal de Datos Abiertos www.datos.gov.co — SECOP II (Agencia Nacional de Contratación Pública – Colombia Compra Eficiente). Licencia CC BY-SA 4.0. La fecha de última actualización del conjunto viene en sourceUpdatedAt. Source site: www.datos.gov.co.

The SECOP II datasets on datos.gov.co are published under the CC BY-SA 4.0 license. If you reuse the data, cite «Fuente: Portal de Datos Abiertos www.datos.gov.co» together with the update date that every answer includes in the sourceUpdatedAt field, and share derived works under the same license. CC BY-SA 4.0 license text.

FAQ

What data does it return?

Signed electronic contracts (dataset jbjy-vk9h) or published procurement processes (dataset p6dx-8zbt) from SECOP II, Colombia's public procurement system, via the datos.gov.co open data portal: buying agency, purpose, procurement method, values in Colombian pesos, dates, supplier (when it is a company) and a link to SECOP.

Do I need a key?

No. The datos.gov.co open data API needs no key for these queries, and the server caches answers for 30 minutes.

How should I cite the source?

The datasets are licensed CC BY-SA 4.0. Cite «Fuente: Portal de Datos Abiertos www.datos.gov.co» and the dataset update date, which every answer includes in the sourceUpdatedAt field; the attribution field has the full text.

Does it include personal data?

It returns no legal representatives, spending officers, supervisors or bank accounts. When the supplier is a natural person, their name and ID number are omitted.

How much does it cost?

Free during the beta, with no sign-up and a limit of 60 requests per minute per IP. If paid plans come later, we will announce them on betterllama.com first.