LeXML-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LEXML_SRU_URL | No | SRU endpoint | https://www.lexml.gov.br/busca/SRU |
| LEXML_TIMEOUT | No | HTTP request timeout (seconds) | 15.0 |
| LEXML_CACHE_TTL | No | Cache TTL (seconds) | 300 |
| LEXML_URN_TEMPLATE | No | URN resolution template | https://www.lexml.gov.br/urn/{urn} |
| LEXML_CACHE_MAXSIZE | No | Max cache entries | 256 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| lexml_searchA | Search the LexML SRU acervo. Args: query: CQL query string (e.g. 'dc.title any "constituição"') start_record: First record position (default 1) maximum_records: Max records to return (default 10, max 100) record_schema: Record schema (default 'dc', allowed: dc, oai_dc) filters: Structured filters {title, terms[], document_type, authority, date_from, date_to}. Mutually exclusive with query. When provided, generates safe CQL. |
| lexml_resolve_urnA | Resolve a LexML URN to its public URL. Args: urn: LexML URN (e.g. 'urn:lex:br:federal:lei:1990-09-11;8078') verify: If True, follow redirects and validate final host (SSRF guard). Default False — only constructs the URL without network call. |
| lexml_explainA | Retrieve metadata about the LexML SRU service (explain operation). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| explain_resource | Return cached explain data from the SRU service. |
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: search for documents, resolve URNs to URLs, and retrieve service metadata. No overlap.
All tool names follow the consistent pattern 'lexml_verb' (search, resolve_urn, explain), making them predictable.
Three tools cover the core functionality of searching, resolving identifiers, and explaining the service—well-scoped for a legal document server.
Covers search (with flexible filters), URN resolution, and service info. Missing direct document retrieval, but URN resolution provides URL for fetching.