# DOF: Diario Oficial de la Federación

> DOF: Diario Oficial de la Federación is an open-source MCP server for legal and government. MCP server giving AI agents read access to Mexico's official gazette (DOF) and daily. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/beg-lag/mcp-dof
- **MCP Registry name:** io.github.BEG-lag/mcp-dof
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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

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

## Alternatives

- [Leyes MX: Mexican federal law at any date](https://ai-powered.com/mcp/leyes-mx-mexican-federal-law-at-any-date): Leyes MX: Mexican federal law at any date is an open-source MCP server for legal and government.
- [Free Agentic Publication Digester](https://ai-powered.com/mcp/free-agentic-publication-digester): Free Agentic Publication Digester is a free MCP server for legal and government.
- [Lex API MX](https://ai-powered.com/mcp/lex-api-mx): Lex API MX is a free MCP server for legal and government.
- [JurisNet: Latin American legal data](https://ai-powered.com/mcp/jurisnet-latin-american-legal-data): JurisNet: Latin American legal data is an MCP server for legal and government.
- [DataX Spain & EU Official Registries](https://ai-powered.com/mcp/datax-spain-and-eu-official-registries): DataX Spain & EU Official Registries is a paid MCP server for legal and government.
- [MéxicoAPI](https://ai-powered.com/mcp/mexicoapi): MéxicoAPI is an MCP server for finance and payments.
- [DataX Portugal & EU Official Registries](https://ai-powered.com/mcp/datax-portugal-and-eu-official-registries): DataX Portugal & EU Official Registries is a freemium MCP server for legal and government.
- [Spain Official Gazette (BOE) to JSON](https://ai-powered.com/mcp/spain-official-gazette-boe-to-json): Spain Official Gazette (BOE) to JSON is a paid MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/dof-diario-oficial-de-la-federacion
