Skip to content
MCP server

DOF: Diario Oficial de la Federación

MCP server giving AI agents read access to Mexico's official gazette (DOF) and daily

Runs locally
Install
Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
1.0.0
Listing updated
1 day ago

Similar MCP servers

About DOF: Diario Oficial de la Federación

DOF: Diario Oficial de la Federación is an open-source MCP server for legal and government. It runs locally on your machine and is started by your AI client.

The README says the server lets Claude and other agents read the Diario Oficial de la Federación day by day: editions, full note texts converted to Markdown, and title search across date ranges. It also surfaces the FIX exchange rate, UDIS and TIIE rates the gazette publishes each day, with history queries over up to 400 days.

It runs over stdio or streamable HTTP and wraps an undocumented government API, throttled with spacing, retries and caching. Search matches note titles only, not full text, and covers at most 92 days per call, so cold scans of long ranges are slow.

The project targets lawyers, compliance teams and analysts who need to check federal publications, with every result linked to the official DOF note. The author states the project is unofficial and that the printed DOF remains authoritative.

Install

Run in a terminal

claude mcp add mcp-dof -- docker run -i --rm ghcr.io/beg-lag/mcp-dof:1.0.0

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-dof": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/beg-lag/mcp-dof:1.0.0"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-dof": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/beg-lag/mcp-dof:1.0.0"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-dof": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/beg-lag/mcp-dof:1.0.0"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-dof": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/beg-lag/mcp-dof:1.0.0"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-dof": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/beg-lag/mcp-dof:1.0.0"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

list_edition
Table of contents of a day's DOF edition, grouped by issuing agency.
get_note
Full text of a note as Markdown with a metadata table.
search_notes
Title search over up to 92 days, newest first.
get_indicators
FIX exchange rate, UDIS and TIIE values for a date.
get_indicator_history
One indicator over up to 400 days with first, last, change, low and high.

What it does

Daily edition table of contents
Lists each day's notes grouped by issuing agency, with note codes, pages and links to the edition PDF.
Full note text as Markdown
Converts a published note into Markdown with bold, tables and links kept, paginating long instruments.
Title search over date ranges
Searches note titles across up to 92 days with accent-insensitive matching, phrases and acronyms.
Practice-area presets
Offers built-in search presets such as energia, hidrocarburos, fiscal and laboral.
Daily indicators and history
Returns the FIX rate, UDIS and TIIE values for a date and their movement over a period.

Good for

  • Check each morning which federal decrees or rules affect energy or mining
  • Pull the full text of a decree and list its transitory deadlines
  • Track the FIX exchange rate or TIIE movement over a chosen month
  • Build a regulatory digest for a practice area over the past weeks

Pricing

Open source

Free, MIT licensed open source.

DOF: Diario Oficial de la Federación FAQ

How do I connect it to Claude Code?

The README gives the command: claude mcp add dof -- uvx --from git+https://github.com/BEG-lag/mcp-dof mcp-dof. It needs uv installed.

Does search cover the full text of notes?

No. The README says search covers titles only, and at most 92 days per call.

Are judicial notices included in results?

They are hidden by default and can be listed with include_avisos. Their titles are reference codes, so they are not searchable by content.

Is it an official government product?

No. The README's disclaimer says it is unofficial and not affiliated with the Secretaría de Gobernación or the DOF.

Is DOF: Diario Oficial de la Federación free?

Yes. DOF: Diario Oficial de la Federación is open source, so you can use and self-host it for free.

How do I add DOF: Diario Oficial de la Federación to Claude Code?

Run this command in your terminal: claude mcp add mcp-dof -- docker run -i --rm ghcr.io/beg-lag/mcp-dof:1.0.0

What are the best alternatives to DOF: Diario Oficial de la Federación?

The closest alternatives to DOF: Diario Oficial de la Federación are Leyes MX: Mexican federal law at any date, Free Agentic Publication Digester, Lex API MX, JurisNet: Latin American legal data and DataX Spain & EU Official Registries.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers