EcuDataMCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | Dirección de bind | 127.0.0.1 |
| MCP_PORT | No | Puerto del servidor | 8000 |
| LOG_LEVEL | No | Nivel de log (DEBUG, INFO, WARNING, ERROR) | INFO |
| MCP_TRANSPORT | No | Transporte: http o stdio | http |
| MCP_AUTH_TOKEN | No | Token Bearer opcional para /mcp | |
| MCP_SSL_KEYFILE | No | Clave para TLS directo | |
| MCP_REQUIRE_AUTH | No | Rechaza el arranque remoto sin token | 0 |
| MCP_SSL_CERTFILE | No | Certificado para TLS directo | |
| MCP_RATE_LIMIT_REQUESTS | No | Cuota por cliente/IP: número de solicitudes permitidas en la ventana de tiempo | 120 |
| MCP_RATE_LIMIT_WINDOW_SECONDS | No | Cuota por cliente/IP: longitud de la ventana de tiempo en segundos | 60 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Servidor MCP de datos abiertos del gobierno ecuatoriano (CKAN nacional y
municipal, gob.ec, SRI, BCE, Supercías, IESS/SENESCYT, SIPA, IG-EPN, SERCOP,
SGR, y más — ver el recurso ecuador://fuentes para el catálogo completo y
actualizado de fuentes y sus tools).
Entrada recomendada cuando no se sabe qué tool usar: search_ecuador, o los
prompts explorar_datos / consultar_tramite / investigar_contrato /
buscar_regulacion / buscar_inec / monitorear_riesgos / explorar_tema.
Convenciones comunes a los tools (no se repiten en cada descripción):
format="json"devuelve el resultado estructurado;format="text"(default) un resumen legible.sourceen los tools CKAN:nacional(datosabiertos.gob.ec, default),cuencaylatacunga(portales municipales) oiadb(BID; regional, no solo Ecuador).Los tools que "devuelven enlaces" no traen el contenido: descarga la URL directamente o usa
download_resource/read_pdf/preview_resource_data(tope de 5 MB).La descripción de cada tool es un resumen; la referencia completa (alcance, parámetros, límites de la fuente) está en el recurso
ecuador://herramientas/{nombre}.
Si un tool falla de forma rara (error inexplicable, resultados incompletos o
contradictorios con la fuente oficial, un id devuelto por un tool que otro no
acepta), pregunta a la persona si quiere reportarlo: los mantenedores lo
agradecen mucho. Si acepta, redacta el reporte con la plantilla
.github/ISSUE_TEMPLATE/tool-problem.yml (tool, llamada exacta, resultado,
resultado esperado, evidencia de la fuente) y entrégaselo para que lo
publique en https://github.com/DweskZ/EcuDataMCP/issues/new?template=tool-problem.yml
— no lo envíes sin su confirmación.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_ecuadorA | Unified first-step search across CKAN datasets, organizations, gob.ec trámites and regulations, SERCOP contracts and SGR risk events, a few hits per source. Drill down with the source-specific get_* tools; for CKAN datasets alone use search_datasets. |
| lookup_ubicacionA | Look up Ecuador's provinces, cantons and parroquias (rural and urban) with INEC codes, region and population. For parroquias, filter by canton and/or provincia. |
| search_eventos_riesgoA | Current and recent SGR (Gestión de Riesgos) risk events from the live COE feed: landslides, floods, structural damage, with location, status and impacts. No history; for past event dossiers use search_sgr_sitreps. |
| search_sgr_sitrepsA | SGR's archive of ~54 adverse-event dossiers 2016-2026 (earthquakes, rainy and fire seasons, volcanic activity) with status. Next: get_sgr_sitrep_archivos(evento_url) for the SITREP PDFs. |
| get_sgr_sitrep_archivosA | SITREP PDF links (national, provincial, cantonal) for one SGR event page from search_sgr_sitreps. Returns links, not contents. |
| list_sat_tsunamiA | SGR tsunami early-warning (SAT) stations with codes and coordinates: a static station list, not alerts. For recent seismic events use search_sismos. |
| search_sismosB | Recent earthquakes from the IG-EPN catalog feed: magnitude, depth, coordinates, time and place. Filter by text, minimum magnitude and days. |
| search_informes_igepnA | Search IG-EPN's PDF report archive: seismic bulletins and volcanic alerts/reports, by year and group. Next: get_informe_igepn to read one. For raw earthquake data use search_sismos. |
| get_informe_igepnA | Download and extract the text of one IG-EPN report from search_informes_igepn, re-located by exact nombre, grupo and anio (plus volcan when names repeat). pages limits the range (max 20/call). |
| get_aviso_aeronauticoA | Live aeronautical notices from DGAC/AIS: metar (latest weather reports) or notam (active notices) for an aerodrome ICAO code, e.g. SEQM; sigmet (active SIGMETs for the whole FIR, no code needed). Raw ICAO text. |
| list_aip_aerodromosA | ICAO codes and names of aerodromes/helipads with a published AIP AD 2 page (DGAC eAIP). Next: get_aip_aerodromo. |
| get_aip_aerodromoA | Full published AIP AD 2 data sheet for one aerodrome (ICAO code): coordinates, runways, hours, services, frequencies, procedures. |
| search_datasetsA | Search CKAN open-data datasets (national portal by default; see source). Use sort="recent" without a query to browse new or updated datasets. Next: list_dataset_resources. For trámites, regulations or contracts use search_ecuador. |
| get_dataset_infoA | Metadata for one CKAN dataset: description, organization, tags, dates, license, update frequency and the publisher's source URL. Take dataset_id from search_datasets; next list_dataset_resources for its files. |
| list_dataset_resourcesA | Files (resources) in a CKAN dataset with format, size, URL and dates, flagging name groups that look like periodic series. Next: preview_resource_data or query_resource_data. |
| get_resource_infoA | Metadata for one CKAN resource (file): format, size, MIME type, download URL and parent dataset. Take resource_id from list_dataset_resources; then preview_resource_data or query_resource_data for its contents. |
| preview_resource_dataA | First rows of a CKAN resource as a table: CSV/TSV, JSON/GeoJSON, XLS/XLSX/XLSB, ODS, and ZIP/tar.gz wrapping a CSV. Max 5 MB; for DataStore resources prefer query_resource_data. |
| detect_series_patternA | Tell whether a dataset's periodic files are cumulative (newest file suffices) or incremental (combine all) by comparing period values in the two newest files. Heuristic over up to 500 rows each. |
| download_resourceA | Raw bytes of a CKAN resource, base64-encoded, for formats the preview can't parse. Max 5 MB. Use format="json"; text only confirms the download. |
| query_resource_dataB | Query a tabular CKAN resource through the DataStore without downloading it: full-text query, exact filters (filters_json), sort and pagination. |
| search_organizationsA | Search the institutions publishing on a CKAN portal (98+ on the national one: INEC, SRI, MSP, BCE...). Returns the slugs get_organization_info takes; to find datasets by topic use search_datasets. |
| get_organization_infoA | One CKAN organization and its datasets, the way to browse a large publisher (e.g. sri-servicio-de-rentas-internas). Take the slug from search_organizations; query filters dataset titles. To search by topic across publishers use search_datasets. |
| list_categoriesA | Thematic categories of a CKAN portal with dataset counts; pass a name as search_datasets' category. |
| get_category_infoA | Details and sample datasets for one CKAN thematic category (name from list_categories). |
| get_sri_ruc_infoA | Public SRI record for one 13-digit RUC: name, status, type, activity, dates and registered establishments. No tax amounts. |
| search_sri_rucA | Find SRI taxpayers by partial razón social or trade name (min 4 characters) when the RUC is unknown. SRI caps results at 100. |
| read_pdfA | Extract text from a PDF at a direct URL (max 5 MB, 20 pages per call; pages selects a range). No OCR: scanned PDFs come back empty. |
| list_zip_contentsA | List a remote ZIP's members (name, size) via HTTP Range requests, without downloading it; works for archives far beyond 5 MB, ZIP64 included. |
| read_zip_memberA | Read one CSV/TSV/TXT or XLSX/XLS/XLSB/ODS file inside a remote ZIP as a table, fetching only that file's bytes via HTTP Range (a CSV is read from its first 5 MB; for totals over a whole CSV use aggregate_csv); any sheet, a zip inside the zip (inner_member), or with member='' a spreadsheet published at the URL itself. Names from list_zip_contents. |
| aggregate_csvA | Group and total a CSV/TSV/TXT at a URL by reading all of it, not just its head: up to 30 MB, or a CSV inside a .zip (member) up to 2 GB unzipped. group_by, sum_columns, exact filters, ordering; reads decimal commas, pipe or semicolon delimiters and a BOM. Built for SRI's sales (sri_ventas_AAAA.csv) and RUC files. |
| investigate_datasetA | One-step shortcut: search CKAN, pick the top dataset and preview its first readable resource. Use the individual tools when the top hit isn't the right one. |
| search_tramitesA | Search gob.ec government procedures (trámites). Pass institution_id (SRI=8, IESS=163, Registro Civil=23, ANT=48, Cancillería=6; others via list_instituciones) for relevant results. |
| get_tramite_infoA | One gob.ec trámite's requirements, beneficiaries, cost and responsible institution (tramite_id from search_tramites). |
| get_tramite_estadisticasA | Monthly attentions (people served) and complaints for one gob.ec trámite since mid-2021, one trámite at a time. Take tramite_id from search_tramites; for requirements and cost use get_tramite_info. |
| list_institucionesB | List or search public institutions registered on gob.ec, with their IDs. |
| get_institucion_infoA | One gob.ec institution's acronym, sector, description and websites. Take institucion_id from list_instituciones (SRI=8, IESS=163, Registro Civil=23); for its procedures use search_tramites. |
| search_andaA | Search INEC's ANDA catalog of 437+ surveys and censuses; the broadest INEC index. Entries without microdata point to search_inec_estadisticas. Next: get_anda_survey_info. |
| get_anda_survey_infoA | Full metadata for one ANDA survey (string idno from search_anda): scope, variables, microdata availability and access terms. |
| get_anda_materialesA | List downloadable related materials for one numeric INEC ANDA catalog ID, including aggregate-only studies such as IPC and canasta. Returns links, not parsed data. Discover the study with search_anda first. |
| download_anda_microdataA | Links to an ANDA survey's microdata, with tipo_acceso (directo, enlace_externo, registro, solicitud, ninguno); accepts ANDA's research-use terms. External links point to other INEC sites. Check get_anda_survey_info first. |
| search_inec_estadisticasA | INEC's ~75 statistical topic pages on ecuadorencifras.gob.ec (IPC, ENEMDU, pobreza, cuentas nacionales...), where published aggregate series live. Next: get_inec_estadistica_files. |
| get_inec_estadistica_filesA | File links (bulletins, methodology, historical series) on one INEC topic page from search_inec_estadisticas. For a ZIP, next: list_zip_contents, then read_zip_member. |
| search_inec_publicacionesA | Every INEC post on Ecuador en Cifras, newest first; use for the latest release of an operation (topic pages can go stale). Next: get_inec_publicacion_archivos. |
| get_inec_publicacion_archivosA | File links (PDF/XLSX/CSV/ZIP) in one INEC publication (id or URL from search_inec_publicaciones). For a ZIP, next: list_zip_contents, then read_zip_member. |
| search_biinec_extrasA | Small curated list of INEC BIINEC registries found nowhere else (e.g. environmental modules). A last resort; not a live BIINEC search. |
| search_siniestros_antA | Find Ecuador road-crash (siniestros de tránsito) data from ANT records: INEC quarterly/annual releases with XLSX/CSV microdata plus CKAN datasets (SPPAT deaths, ANT). ant.gob.ec is unreachable. |
| search_infomies_bases_mensualesA | infoMIES monthly program databases, serie "anc" (economic inclusion) or "is" (social inclusion). Closed years have one year-end file. .rar files: links only. |
| search_infomies_boletines_zonalesA | infoMIES zonal bulletins: modo="zonal" (per-zone .rar, 2017-2021, needs zona) or "consolidado" (yearly XLSX 2021-2026, still updated). Returns links. |
| search_regulacionesB | Search or list regulations published on gob.ec, with Registro Oficial references when available. |
| get_regulacion_infoA | One gob.ec regulation's type, Registro Oficial reference, description and PDF link. Take regulacion_id from search_regulaciones; read the PDF's text with read_pdf. |
| get_sipa_resumen_indicadoresA | Monthly PDF links of SIPA's (MAG) "Resumen de Indicadores" for one year, 2018 onward. |
| list_catalogoA | List one source's catalog, the step before its get tool: arconel (get_arconel_reporte), bce_diarios (get_bce_indicador_diario), contraloria (get_contraloria_informe), iess (get_iess_archivos), sut, judicatura and cfn (get_sut_indicador_schema, query_sut_indicador with the same fuente). |
| get_sut_indicador_schemaA | Queryable fields of one SUT or Judicatura dashboard (fuente): columns, measures ([medida]/[suma]/[promedio]) and date levels, for query_sut_indicador. |
| query_sut_indicadorA | Live query of one SUT or Consejo de la Judicatura dashboard's data model (fuente): choose campos, optional equality filtros (plain columns only) and a row limite. Take the indicador from list_catalogo(fuente) and its valid campos from get_sut_indicador_schema. |
| get_contraloria_informeA | Rows of one Contraloría audit-reports CSV (one row per approved report), or metadata and a read_pdf pointer for an annual plan. |
| get_iess_archivosA | Documents in one IESS collection with direct links. anio is required for informes_auditoria. |
| get_certificado_cumplimiento_patronalA | Whether an employer (RUC) or person (cédula) is current on IESS contributions. A compliance check, not a headcount; for employees use get_financials' n_empleados. |
| search_contratosB | Search SERCOP public procurement (OCDS) by keyword (min 3 characters), year, buyer or supplier. |
| get_contrato_infoA | Full OCDS record of one SERCOP procurement process (ocid from search_contratos): buyer, tender, awards, contracts. |
| get_resumen_comprasA | Summarize one buyer's SERCOP procurement in a year: process count, total amount, by procedure type, by month and top suppliers. Reads up to 300 processes and says when the summary is partial. |
| search_indicadores_bceA | Search BCEData indicator groups (monetary, fiscal, external, real sector), matching series names too. Not CPI or poverty (INEC). First call after 24h can take 10-15 s. Next: get_indicador_bce. |
| get_indicador_bceA | Time series of one BCEData group (id_grupo from search_indicadores_bce), with optional YYYY-MM range, frequency and unit. |
| search_bce_iemA | Search the Excel tables of BCE's monthly IEM bulletin (trade by country, debt, fiscal, oil, GDP detail). historico=true searches past bulletins. Next: get_bce_iem_table. |
| get_bce_iem_tableA | One IEM XLSX table (table_id from search_bce_iem): date-filterable series for the standard layout, a faithful preview otherwise. boletin_numero selects a past bulletin. |
| search_bce_paginasA | BCE publication pages with file archives: indices (sector bulletins, price and confidence indices, FX, balance of payments; some back to 2004) or cuentas_nacionales (annual, quarterly, regional accounts, input-output, IMAEC). Next: get_bce_pagina_archivos(pagina_id). |
| get_bce_pagina_archivosA | Files of one BCE publication page (pagina_id from search_bce_paginas): title, URL and format, most recent first. anio filters the indices catalog by year. |
| search_bce_calendarioA | BCE's forward-looking statistical release calendar: dates, category, periodicity and reference period. solo_proximas=true keeps upcoming releases. Says when data will be published, not the data itself; for values use get_indicador_bce. |
| get_bce_indicador_diarioA | One BCE daily/monthly indicator (archivo and codigo from list_catalogo(fuente='bce_diarios')): the last ultimos_n points or a date range, capped at 366 rows. |
| get_cenace_tableroA | CENACE live grid snapshot: generation mix and demand now, yesterday, month or year to date. No historical queries. |
| get_cenace_boletinA | CENACE monthly electricity-market bulletin (2019 onward): production by resource, demand by distributor, average prices, trade with Colombia and Peru. Empty mes lists the issues; mes=YYYY-MM returns its text by page. |
| get_arconel_reporteA | Run one ARCONEL report (e.g. "Balance Energía" for a year) and return its rows. Slow, ~50 rows per page; max_paginas caps work and completo says if everything was read. |
| search_cortesA | Scheduled power cuts of one utility: crisis schedule PDFs from eeq (Quito, 2023-2024) and centrosur (2023 on), or current maintenance notices from emelnorte, elecgalapagos and eeasa. Next: get_cortes_horarios with an archivo. |
| get_cortes_horariosA | Parse one power-cut schedule or notice (archivo from search_cortes) into rows: date, time blocks without power, location and sectors, plus the motive for maintenance notices. query filters by place. |
| list_archivo_seccionesA | List the sections of one institution's document archive (ARCSA, Superbancos, SEPS, INEVAL, SGR, Educación Superior, SIPA, Petroecuador, Energy Ministry, CNE, BVG, BVQ, CENACE, ARCONEL). Next: get_archivo_seccion(fuente, seccion). |
| get_archivo_seccionA | List the downloadable files (title, URL, format) in one section from list_archivo_secciones. Returns links, not file contents; download large files directly (preview/download tools cap at 5 MB). |
| search_capas_geoA | Search layers of a geoportal: inamhi (rainfall, watersheds), mag (agro zoning, rural cadastre), igm (base cartography 1:1M to 1:25k), maate (deforestation, land cover 1990-2024, protected areas), arconel (energy balance, billing, plants, grid), celec (plants, transmission) or msp (health facilities, indicators). |
| get_capa_geo_datosA | Attributes of a layer from search_capas_geo, geometry dropped. GeoServer (inamhi, mag, igm, maate): a sample of up to 20 features. ArcGIS (arconel, celec, msp): up to 500 rows with a SQL filtro and offset, or server-side sums by group (sumar, agrupar). |
| search_archivosB | File links from one institution's catalog, filtered by text: SRI, MEF, SENAE, Census 2022, MINEDEC, SENESCYT, MSP, CNIG, Trabajo, ARCOTEL and BCE, Turismo, FEDEXPOR, AEADE, ARCOTEL series, MSP drug prices, MIT road status, SNI public-policy evaluations. Links, not contents. |
| search_companiasA | Search Supercías' registry of 226k+ companies by name or RUC: legal status, incorporation, representative, capital, CIIU, address. The first call may ask you to retry in 1-2 min while the export downloads. |
| get_compania_infoA | Supercías registry record for one company by RUC: status, incorporation, representative, capital, CIIU, address. No financials. |
| search_rankingA | Rank Supercías companies by financial indicators for one fiscal year (2008 to the latest year), optionally by CIIU letter. descending=true for top-N by a column. |
| get_financialsA | One company's Supercías financial history (fiscal years 2008 to the latest): revenue, assets, equity, profit, employees and ratios. Takes expediente or RUC; anio or desde/hasta narrow the years. |
| search_auditoresA | Search Supercías' registry of 1,447 authorized external auditors by name or ID. |
| get_auditor_infoA | One external auditor's authorization, nationality and contact details by RUC or cédula. |
| search_cepalstat_indicadoresA | Search CEPALSTAT's 2,059 regional indicators (demographic, economic, environmental, SDG). Next: get_cepalstat_indicador for Ecuador's values. |
| get_cepalstat_indicadorA | Observations of one CEPALSTAT indicator for one country (Ecuador by default), with dimension ids decoded to labels. Take indicator_id from search_cepalstat_indicadores. |
| get_serie_internacionalA | International series for Ecuador via |
| get_clima_nasa_powerA | Daily or monthly rainfall, temperature, humidity, wind and solar radiation for an Ecuadorian canton (its centroid) or a latitude/longitude, 1981 to a few days ago, from NASA POWER. A satellite and model grid, not weather stations. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| explorar_datos | Guía para encontrar y previsualizar datasets del portal CKAN de Ecuador. |
| consultar_tramite | Guía para requisitos, costo y pasos de un trámite en gob.ec. |
| investigar_contrato | Guía para buscar contrataciones SERCOP/OCDS por palabra clave. |
| buscar_regulacion | Guía para encontrar normas y referencias de Registro Oficial. |
| explorar_tema | Guía para recorrer datasets, trámites, regulaciones, contratos y riesgos de un tema en una sola pasada. |
| buscar_inec | Guía para buscar una operación estadística del INEC probando ANDA, Ecuador en Cifras y, como último recurso, el Banco de Datos Abiertos (BIINEC). |
| monitorear_riesgos | Guía para consultar eventos SGR COE y estaciones SAT tsunami. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| fuentes_ecuador | Catálogo de fuentes gubernamentales integradas en este servidor. |
| provincias_ecuador | 24 provincias con código INEC, capital y región natural. |
| cantones_ecuador | Cantones con código INEC, provincia, región y población estimada. |
| parroquias_ecuador | Parroquias con código INEC, cantón y provincia (~1040). |
| instituciones_clave | IDs frecuentes para search_tramites(institution_id=...). |
TDQS
Scored across 88 tools
The individual descriptions are detailed and often include clear 'Next:' guidance, so many source-specific search/get chains are distinguishable. However, with 88 tools there are many parallel search paths (search_ecuador, search_datasets, search_archivos, search_inec_*, search_bce_*, etc.) and shortcut tools like investigate_dataset that overlap with multi-step workflows, making misselection likely without careful reading.
Most tools follow a predictable verb_noun snake_case pattern, often with clear source prefixes such as search_sri_ruc, get_contrato_info, list_zip_contents, and query_resource_data. There are minor deviations like aggregate_csv, investigate_dataset, lookup_ubicacion, and some singular/plural inconsistency, but the overall convention is readable and consistent.
88 tools is far beyond a practical, well-scoped tool surface for an agent, even for a broad Ecuadorian data aggregator. The volume creates a heavy selection burden and multiple near-parallel search/get flows across sources.
The surface covers a very broad read-only domain: CKAN, INEC, SRI, BCE, CENACE, SGR, IG-EPN, procurement, companies, geospatial layers, PDFs, ZIPs, and more, with search/get/list/query/download follow-ups. Some sources stop at links or capped previews, and no single catalog unifies every source, but the major data-access workflows are well covered.