diario-oficial-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@diario-oficial-mcp download today's Diario Oficial"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Diario Oficial MCP
🌐 English | Español
An MCP server that obtains the Colombian
Diario Oficial daily PDF from the Imprenta Nacional public consultation
portal (https://svrpubindc.imprenta.gov.co/diario/).
The server's job is acquisition: it downloads the official PDF and returns its file path plus metadata. Reading the document or building alerts on top of it is left to the calling agent / user.
Disclaimer. This is an unofficial, community project. It is not affiliated with, endorsed by, or supported by the Imprenta Nacional de Colombia. It works by reading the public consultation portal's current HTML, so it may break if the site changes. Use it responsibly and keep request volume modest against a government service.
Tools
Tool | Description |
| List the most recent editions (numero, tipo, fecha). No download. |
| Download the newest published edition. |
| Download the edition for a given day ( |
| Download a specific edition by number ( |
Each download tool saves the PDF and returns:
{
"numero": "53.524",
"tipo": "Ordinaria",
"fecha": "16/06/2026",
"path": "/Users/you/Downloads/diario-oficial/DiarioOficial_53524_2026-06-16.pdf",
"size_bytes": 13265672
}Related MCP server: DJEN (Diário de Justiça)
Where PDFs are saved
In order of precedence:
The
output_dirargument passed to the tool.The
DIARIO_OFICIAL_DIRenvironment variable.Default:
~/Downloads/diario-oficial.
Use it (recommended: no clone)
You only need uv installed. uv fetches the
code from git, sets up an isolated environment, and runs the server — no manual
clone or install. Add this to your MCP config:
Kiro:
.kiro/settings/mcp.json(workspace) or~/.kiro/settings/mcp.json(global)Claude Desktop:
claude_desktop_config.json
{
"mcpServers": {
"diario-oficial": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkamilo81/diario-oficial-mcp",
"diario-oficial-mcp"
],
"env": {
"DIARIO_OFICIAL_DIR": "/Users/you/Documents/diario-oficial"
},
"disabled": false,
"autoApprove": ["list_recent_editions"]
}
}
}Pin a released version by appending a tag, e.g.
git+https://github.com/jkamilo81/diario-oficial-mcp@v0.1.0.
Verify it runs at all:
uvx --from git+https://github.com/jkamilo81/diario-oficial-mcp diario-oficial-mcp(The process starts and waits for an MCP client on stdio; press Ctrl+C to exit.)
A colleague can then ask their agent things like "download today's Diario Oficial" or "get edition 53.510", then read or set up alerts on the saved PDF.
Local development
git clone https://github.com/jkamilo81/diario-oficial-mcp
cd diario-oficial-mcp
uv venv
uv pip install -e ".[dev]"
uv run diario-oficial-mcp # run over stdio
pytest -q # smoke tests against the live portalConfig pointing at your local checkout instead of git:
{
"mcpServers": {
"diario-oficial": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/diario-oficial-mcp", "diario-oficial-mcp"]
}
}
}How it works
The portal is a JSF/PrimeFaces application. Downloading an edition is a
session-bound, three-step flow handled by client.py:
GET /diario/— obtain theJSESSIONIDcookie and JSFViewState; the landing page already lists the most recent editions with per-row "Ver Diario" buttons.POSTthe row button — returns a viewer page containing a PrimeFaces streamed-content URL.GETthat streamed-content URL (same session) — returns the PDF bytes.
Search by date or number is a POST of the search form that re-renders the
editions table with the matching row, after which the same download flow runs.
Troubleshooting
No editions returned / "Could not find ... ViewState". The portal HTML likely changed. The brittle parts are the PrimeFaces component ids in
client.py(e.g.dtbDiariosOficiales:*:j_idt38). Runpytest -qto confirm and update the parsing.No edition found for date .... No edition was published that day (weekends/holidays), or the date is not indd/MM/yyyyformat.TLS / certificate errors.
httpxbundles its own CA store, so this is usually a network/proxy issue rather than the portal.The server "hangs" when run manually. Expected — it waits for an MCP client on stdio. It's meant to be launched by Kiro / Claude Desktop.
Notes & limitations
Depends on the portal's current HTML structure; see Troubleshooting.
Editions are typically large scanned PDFs (10+ MB). Text extraction / OCR for reading or alerting is intentionally out of scope for this server.
Be considerate with request volume against a government service.
License
Available Tools
4 toolsdownload_edition_by_dateA
Download the Diario Oficial edition published on a specific date.
Args: date: Publication date in dd/MM/yyyy format (e.g. "16/06/2026"). output_dir: Directory to save the PDF (see download_latest_edition).
Returns metadata plus the saved file path and size. Raises if no edition was published on that date.
Inputs: date (required), output_dir.
download_edition_by_numberB
Download a specific Diario Oficial edition by its edition number.
Args: number: Edition number, with or without thousands separators (e.g. "53524" or "53.524"). output_dir: Directory to save the PDF (see download_latest_edition).
Returns metadata plus the saved file path and size. Raises if the edition number is not found.
Inputs: number (required), output_dir.
download_latest_editionA
Download the newest published Diario Oficial edition as a PDF.
Args: output_dir: Directory to save the PDF. Defaults to the DIARIO_OFICIAL_DIR environment variable, or ~/Downloads/diario-oficial.
Returns metadata (numero, tipo, fecha) plus the saved file path and size.
Inputs: output_dir.
list_recent_editionsA
List the most recently published Diario Oficial editions (newest first).
Returns each edition's number, type (e.g. Ordinaria), and date (dd/MM/yyyy). Use this to discover what is available before downloading.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool serves a unique and clearly distinct purpose: downloading the latest edition, downloading by date, downloading by number, and listing recent editions. No ambiguity between them.
All tool names follow a consistent verb_noun pattern in snake_case: download_latest_edition, download_edition_by_date, download_edition_by_number, list_recent_editions. The naming is predictable and uniform.
With 4 tools, the set is well-scoped for the domain of downloading official gazette editions. Each tool earns its place without unnecessary redundancy.
The tool surface covers all key workflows: listing available editions, downloading the latest, downloading by date, and downloading by number. No critical gaps in the core functionality.
Maintenance
Related MCP Connectors
Colombian, Peruvian, and Mexican public data: judicial cases, registries, legislation, web search.
Validates CPF (check digits) and discovers lawsuits by CPF, searching by NAME in the official gazett
Official EUR-Lex, UK, US, and gazette search, metadata fetch, and change-only watches.
datos.gov.co — Colombia's national open-data portal (Socrata platform).
Related MCP Servers
- FlicenseAqualityDmaintenanceAllows querying the Diário Oficial do Estado do Piauí (DOE-PI) in natural language: list editions, search content, and read full texts without downloading PDFs.4-
- AlicenseNot gradedqualityCmaintenanceEnables searching Brazilian National Electronic Court Gazette (DJEN) publications and judicial notifications by OAB, lawyer name, case number, court, and date, returning full text and certificate links, plus party-name case discovery.2MIT
- AlicenseAqualityBmaintenanceEnables searching and reading Peru's Official Gazette for norms, resolutions, booklets, and PDFs through a local MCP harness. It provides full-text search with date and booklet filters, plus retrieval of document summaries, integral text, and public PDF URLs.92Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables querying Brazilian judicial case data through CNJ public APIs: fetching case metadata and movements via DataJud, searching publications and intimations from the national electronic justice gazette (DJEN) by case number or OAB, and downloading publication certificates as PDFs.-