home / mcp / brazilian law mcp server

Brazilian Law MCP Server

Query Brazilian legislation from MCP clients with verbatim text, cross-references, and EU implementation data.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-brazil-law-mcp": {
      "url": "https://brazilian-law-mcp.vercel.app/mcp"
    }
  }
}

You can query Brazilian legislation directly from compatible MCP clients, including Claude and Cursor, using a dedicated MCP server that provides fast, verbatim statute text with cross-references and EU implementation data. This server makes Brazilian law searchable, auditable, and AI-ready for legal research, compliance work, and legal-tech applications.

How to use

Connect your MCP client to the hosted remote server or run the local MCP server to begin querying Brazilian law. You can search for provisions by topic, check whether statutes are in force, validate citations, and build legal stances across multiple laws. Use natural language questions like “What does the LGPD say about consent?” or “Which Brazilian laws implement the GDPR?” to retrieve exact provisions with context.

How to install

Prerequisites: Node.js and npm installed on your machine.

# Quick start: install dependencies, build, and run tests
git clone https://github.com/Ansvar-Systems/Brazil-law-mcp
cd Brazil-law-mcp
npm install
npm run build
npm test

# Start the server for development
npm run dev

Additional content and usage notes

Deployment options include a hosted remote MCP URL for quick start and a local runtime via npm for development and private deployments. The hosted endpoint is designed for zero-setup usage in client tools.

If you need to test locally, you can use the following commands to run the MCP server directly with npm. After starting, you can query the server using your MCP client of choice by pointing it at the appropriate URL or by integrating with your local process.

Available tools

search_legislation

FTS5 full-text search across all provisions with BM25 ranking.

get_provision

Retrieve a specific provision by statute plus chapter and section.

check_currency

Check if a statute is currently in force, amended, or repealed.

validate_citation

Validate a citation against the database to minimize errors.

build_legal_stance

Aggregate citations from multiple statutes to form a legal argument.

format_citation

Format citations according to Brazilian conventions (full, short, pinpoint).

list_sources

List all available statutes with metadata and references.

about

Provide server information, capabilities, and coverage summary.

get_eu_basis

Retrieve EU directives or regulations applicable to a Brazilian statute.

get_brazilian_implementations

Find Brazilian laws that implement a given EU act.

search_eu_implementations

Search EU documents with counts of Brazilian implementations.

get_provision_eu_basis

Obtain EU law references for a specific provision.

validate_eu_compliance

Check the implementation status of EU directives.