home / mcp / mexican law mcp server

Mexican Law MCP Server

Provides access to Mexican federal laws and regulatory data with Spanish full-text search, including data protection, fintech, cybercrime, and consumer protection.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-mexican-law-mcp": {
      "url": "https://mexican-law-mcp.vercel.app/api/mcp",
      "headers": {
        "YOUR_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

You can access comprehensive Mexican federal legislation through this MCP server, enabling you to search and retrieve federal laws, regulations, and related guidance with Spanish full-text search. It covers key areas such as data protection, fintech regulation, cybercrime, commercial law, consumer protection, and constitutional foundations, making it a practical tool for developers, researchers, and legal professionals who work with Mexican law.

How to use

You connect to the Mexican Law MCP server using either a remote HTTP endpoint or a local stdio client configuration. The HTTP option lets you query a public MCP instance, while the stdio option lets you run the server locally on your machine and interact with it directly through the MCP client.

How to install

Prerequisites: ensure you have Node.js and npm installed on your system. You may also install the MCP server locally via the npm package if you prefer a global CLI approach.

# Install the MCP server globally
npm install -g @ansvar/mexican-law-mcp

# Optional: verify the package is installed
mexican-law-mcp --version

Additional sections

Configuration and usage details are provided through the available connection methods. You can use the public endpoint for quick access or run the local MCP server for full control and offline testing.

Available tools

get_provision

Retrieve a specific article from a Mexican federal law.

search_legislation

Perform a full-text search across all federal legislation in Spanish.

list_laws

List all available laws with their metadata.

get_law_structure

Get the table of contents or structure of a specific law.

get_provision_eu_basis

Cross-reference Mexican law to EU or international equivalents.

search_regulations

Search federal regulations and NOM standards (requires upgrade).

get_inai_guidance

Retrieve INAI guidelines and resolutions (requires upgrade).