Leis do Brasil — Claude Code MCP server: what it does, how to install
Leis do Brasil — an MCP server for Claude Code and other environments that provides access to the official text of over 1.2 million Brazilian legal norms. It uses a local SQLite index to retrieve exact citations and source links.
MIT ★ 71 updated 2026-11-13
claude mcp add leis-mcp -- uvx leis-mcpWhat Leis do Brasil does
This tool enables AI agents to search and cite Brazilian legislation without relying on external search engines. It downloads a database of laws and runs locally, which speeds up data retrieval and enables offline access.
The server requires uv to manage dependencies. Installing ripgrep is recommended for efficient searching. Run uvx leis-mcp index before starting to download the necessary database.
What it helps with
- retrieve exact text of a legal article
- verify the validity of a regulation
- get an official source link for a law
- cite specific legal provisions in documentation
Example prompts for the agent
- Retrieve article 23 inciso III of law 8245/1991
- What does the LGPD say about data protection?
- Find regulations regarding residential leasing
How to install Leis do Brasil
Platform CLI
claude mcp add leis-mcp -- uvx leis-mcpuvx runs the command named after the package; if the README names another one, use uvx --from leis-mcp <command>
Platform CLI
codex mcp add leis-do-brasil -- uvx leis-mcpuvx runs the command named after the package; if the README names another one, use uvx --from leis-mcp <command>
Config file
{
"mcpServers": {
"leis-do-brasil": {
"command": "uvx",
"args": [
"leis-mcp"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from leis-mcp <command>
Config file
{
"servers": {
"leis-do-brasil": {
"type": "stdio",
"command": "uvx",
"args": [
"leis-mcp"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from leis-mcp <command>
Platform CLI
gemini mcp add leis-do-brasil uvx leis-mcpuvx runs the command named after the package; if the README names another one, use uvx --from leis-mcp <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Leis do Brasil
How to install Leis do Brasil in Claude Code?
Run uvx leis-mcp index to download the database, then add the server using claude mcp add leis-do-brasil -- uvx leis-mcp.
What does Leis do Brasil do?
It provides access to a database of 1.2 million Brazilian laws, allowing AI agents to cite articles and check their status.
What is required to run Leis do Brasil?
You need uv installed for package management and Python 3.12+.