What is leis-mcp?
leis-mcp is an MCP server that gives AI assistants access to a public collection of more than 1.2 million Brazilian laws and regulations. It is designed for people who want to search legislation or retrieve a specific legal provision from an assistant such as Claude, Cursor, VS Code, or another MCP-compatible client. Results include the text of the provision, source details, and information or warnings about its status when available.
leis-mcp Features:
Norma Search: Search for legislation by reference, number, year, type, jurisdiction, state, or a supported nickname such as CLT, CDC, or LGPD.
Exact Provisions: Retrieve the text of an article, paragraph, subsection, or item, with the article's opening text included for context.
Text Search: Find a word or phrase in a specified law or across laws already cached, with each match tied to its article.
Status Details: See source-provided information on a law's status and text version, plus warnings for provisions marked repealed or vetoed.
Federal Updates: For federal laws, check online sources for status information and, for some laws, versions and amendment history for a provision.
Cached Access: Use a prebuilt SQLite index and download law texts on demand; cached content remains available offline.
leis-mcp Benefits:
Less Manual Searching: Locate a relevant law or provision through an assistant instead of browsing a large legislative collection by hand.
Grounded Answers: Give an assistant the wording of the provision itself, reducing reliance on a model's recollection or paraphrase.
Easier Verification: Use the supplied source reference and citation to check a result against the underlying legal publication.
Fewer Assumptions: Review status notes and warnings before relying on a provision, and see when the available sources do not establish its current force.
Work Offline: Continue looking up cached laws when an online connection or source is unavailable.
Use Cases:
Rental Law Questions: Find the Inquilinato Law provision on a tenant's duty to return a rented property or the handling of a rental deposit.
Consumer Rights: Look up the Consumer Defense Code when checking what remedies may apply to a poorly performed service.
Small Claims Research: Check the small claims law for its rules on whether a party needs a lawyer.
Amendment Checks: Review available versions and amendment details for a federal provision when checking how its wording has changed.
Legal Drafting Support: Retrieve cited provisions from laws such as the LGPD or CLT while preparing research notes or a draft.

