brazil-legislation-mcp-server

v0.2.2 pre-1.0

Search Brazilian federal legislation, read published and consolidated texts, and trace amendments by provision via MCP. STDIO or Streamable HTTP.

brazil-legislation.caseyjhand.com/mcp
claude mcp add --transport http brazil-legislation-mcp-server https://brazil-legislation.caseyjhand.com/mcp
codex mcp add brazil-legislation-mcp-server --url https://brazil-legislation.caseyjhand.com/mcp
{
  "mcpServers": {
    "brazil-legislation-mcp-server": {
      "url": "https://brazil-legislation.caseyjhand.com/mcp"
    }
  }
}
gemini mcp add --transport http brazil-legislation-mcp-server https://brazil-legislation.caseyjhand.com/mcp
{
  "mcpServers": {
    "brazil-legislation-mcp-server": {
      "command": "bunx",
      "args": [
        "mcp-remote",
        "https://brazil-legislation.caseyjhand.com/mcp"
      ]
    }
  }
}
{
  "mcpServers": {
    "brazil-legislation-mcp-server": {
      "type": "http",
      "url": "https://brazil-legislation.caseyjhand.com/mcp"
    }
  }
}
curl -X POST https://brazil-legislation.caseyjhand.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"1.0.0"}}}'

Tools

6

brlaw_get_norm

open-world

Get one federal norm by Senado ID, URN, citation or nickname. Inspect its ementa (official summary), Senado publications, subject indexing and change counts. Pass publication_id to brlaw_get_text for an exact edition, or request consolidated text to check for a Senado, Câmara or Planalto compilation.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "brlaw_get_norm",
    "arguments": {
      "norm": "<norm>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "norm": {
      "type": "string",
      "minLength": 1,
      "description": "Senado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD."
    },
    "include_lexml": {
      "default": false,
      "description": "Include exact-URN LexML metadata, the bill of origin and doctrine citations when available.",
      "type": "boolean"
    },
    "lexml_doctrine_limit": {
      "default": 10,
      "description": "Maximum LexML doctrine rows on this page. Defaults to 10.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "lexml_doctrine_offset": {
      "default": 0,
      "description": "Zero-based offset in the doctrine table. Continue with lexml.doctrine.next_offset.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "norm",
    "include_lexml",
    "lexml_doctrine_limit",
    "lexml_doctrine_offset"
  ],
  "additionalProperties": false
}
view source ↗

brlaw_get_text

open-world

Read consolidated or as-published federal legislation, including available translations. Select an exact publication ID from brlaw_get_norm. Text over 24,000 characters returns an outline: pass its section IDs back with the same edition, or select provisions by address. Inspect the served publication and dated amendment evidence.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "brlaw_get_text",
    "arguments": {
      "norm": "<norm>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "version": {
      "description": "Text version. Defaults to consolidated. Omit when selecting a publication ID.",
      "type": "string",
      "enum": [
        "consolidated",
        "as_published"
      ]
    },
    "publication_id": {
      "description": "Exact publication ID returned by brlaw_get_norm for this norm.",
      "type": "string",
      "pattern": "^\\d+$"
    },
    "language": {
      "description": "Text language. Defaults to Portuguese or the language of the explicit publication.",
      "type": "string",
      "enum": [
        "pt",
        "en",
        "fr"
      ]
    },
    "articles": {
      "description": "Article or provision addresses in request order. The first 10 are processed.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "sections": {
      "description": "Section IDs from the outline for the same source version. Omit when selecting provisions.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "include_superseded": {
      "description": "Show struck Planalto text as historical markup. Defaults to false.",
      "type": "boolean"
    },
    "norm": {
      "type": "string",
      "minLength": 1,
      "description": "Senado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD."
    }
  },
  "required": [
    "norm"
  ],
  "additionalProperties": false
}
view source ↗

brlaw_get_changes

open-world

Trace acts affecting a federal norm or a selected provision, or earlier norms it changed. Group by act or provision, filter by dates, STF ruling class or Senado action, and continue with next_offset.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "brlaw_get_changes",
    "arguments": {
      "norm": "<norm>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "norm": {
      "type": "string",
      "minLength": 1,
      "description": "Senado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD. For changed_by, optionally append a single provision such as Art. 55."
    },
    "direction": {
      "default": "changed_by",
      "description": "changed_by for later acts affecting this norm, changes for earlier affected norms, or both.",
      "type": "string",
      "enum": [
        "changed_by",
        "changes",
        "both"
      ]
    },
    "view": {
      "default": "by_act",
      "description": "by_act groups by related act. by_article groups by affected norm and provision.",
      "type": "string",
      "enum": [
        "by_act",
        "by_article"
      ]
    },
    "actions": {
      "description": "Portuguese item action labels from brlaw_list_reference, such as Revogação. Exact spelling wins, otherwise case and accents are ignored for unique matches.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "relation_kinds": {
      "description": "Portuguese relation labels from brlaw_list_reference. Exact spelling wins, otherwise case and accents are ignored for unique matches.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "act_classes": {
      "description": "Classes of related acts to include. Add unclassified to include acts without enough classification evidence. other covers known classes outside the listed categories.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "stf_ruling",
          "law",
          "complementary_law",
          "decree",
          "decree_law",
          "provisional_measure",
          "veto_message",
          "resolution",
          "constitutional_amendment",
          "legislative_decree",
          "other",
          "unclassified"
        ]
      }
    },
    "date_from": {
      "description": "Inclusive earliest signature date in YYYY-MM-DD form.",
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "date_to": {
      "description": "Inclusive latest signature date in YYYY-MM-DD form.",
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "limit": {
      "default": 25,
      "description": "Requested page size. Defaults to 25 and clamps to 200.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "offset": {
      "default": 0,
      "description": "Zero-based offset. Pass next_offset to continue.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "page_token": {
      "description": "Optional token from the previous page to verify that its result set is unchanged.",
      "type": "string"
    }
  },
  "required": [
    "norm",
    "direction",
    "view",
    "limit",
    "offset"
  ],
  "additionalProperties": false
}
view source ↗

brlaw_search_norms

open-world

Search Portuguese ementas (official summaries) and apelidos (nicknames) across indexed Brazilian federal norms. Browse Senado live by omitting query and setting both signature year bounds to the same year or both dates within one year. On a temporary Senado failure, use the completed index when it covers that year. Use brlaw_lookup_citation for a specific citation and next_offset to continue a search.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "brlaw_search_norms",
    "arguments": {}
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "description": "Accent-insensitive Portuguese search in ementas and nicknames. Separate required words with spaces and use uppercase OR between alternatives. Positive plain terms may match vetted singular and plural forms. Double-quote a word to keep it literal or a phrase to require adjacency. Use word* for a prefix and -word for a literal exclusion within its alternative. Each alternative requires at least one positive term.",
      "type": "string"
    },
    "types": {
      "description": "Senado type codes from brlaw_list_reference, in any case. Family siglas such as LEI also select their subtypes. Citation abbreviations such as MP, LC, DL and EC read as MPV, LCP, DEL and EMC.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "year_from": {
      "description": "First signature year, inclusive.",
      "type": "integer",
      "minimum": 1000,
      "maximum": 9999
    },
    "year_to": {
      "description": "Last signature year, inclusive.",
      "type": "integer",
      "minimum": 1000,
      "maximum": 9999
    },
    "date_from": {
      "description": "Earliest ISO signature date. Omit year bounds when using dates.",
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "date_to": {
      "description": "Latest ISO signature date.",
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "number": {
      "description": "Exact norm number, with optional Portuguese thousands separators.",
      "type": "string"
    },
    "sort": {
      "description": "Relevance defaults for text queries, newest otherwise.",
      "type": "string",
      "enum": [
        "relevance",
        "newest",
        "oldest"
      ]
    },
    "ementa": {
      "description": "Return full ementas or excerpts of up to 32 words. When omitted, excerpt STF ruling headnotes and keep other ementas full.",
      "type": "string",
      "enum": [
        "full",
        "snippet"
      ]
    },
    "limit": {
      "default": 25,
      "description": "Requested page size. Defaults to 25 and clamps to 200.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "offset": {
      "default": 0,
      "description": "Zero-based offset. Pass next_offset to continue.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "page_token": {
      "description": "Optional token from the previous page to verify that its result set is unchanged.",
      "type": "string"
    }
  },
  "required": [
    "limit",
    "offset"
  ],
  "additionalProperties": false
}
view source ↗

brlaw_lookup_citation

open-world

Resolve Portuguese legal citations, nicknames and LexML URNs in input order. Indexed summaries include coverage. Use the returned Senado ID and provision with brlaw_get_text. A non-federal URN can return LexML metadata only.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "brlaw_lookup_citation",
    "arguments": {
      "citations": "<citations>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "citations": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Citation strings such as Lei 13.709/2018, art. 7º, I, ADI 6587, art. 5º da CF, art. 10 do ADCT, or CPC/2015. Resolves the first 25 and lists any remaining inputs."
    }
  },
  "required": [
    "citations"
  ],
  "additionalProperties": false
}
view source ↗

brlaw_list_reference

open-world

Look up Senado type codes, publication kinds, relation labels and item actions, or inspect citation syntax and index coverage. Choose a vocabulary topic to browse or filter by query. ADC denotes Ato Declaratório in type filters and ADCon denotes the STF ruling.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "brlaw_list_reference",
    "arguments": {}
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "topic": {
      "default": "overview",
      "description": "overview gives coverage and syntax. types, publications, relations and actions list their respective Senado vocabularies.",
      "type": "string",
      "enum": [
        "overview",
        "types",
        "publications",
        "relations",
        "actions"
      ]
    },
    "query": {
      "description": "Nonblank literal substring of a vocabulary label, abbreviation or code, ignoring case and accents. Use with types, publications, relations or actions.",
      "type": "string"
    },
    "limit": {
      "default": 25,
      "description": "Requested page size. Defaults to 25 and clamps to 200.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "offset": {
      "default": 0,
      "description": "Zero-based offset. Pass next_offset to continue.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "page_token": {
      "description": "Optional token from the previous page to verify that its result set is unchanged.",
      "type": "string"
    }
  },
  "required": [
    "topic",
    "limit",
    "offset"
  ],
  "additionalProperties": false
}
view source ↗

Extensions

1

io.modelcontextprotocol/skills

{
  "directoryRead": true
}