Portuguese Law AI MCP: Search DGSI & Diário da República
Learn how a Portuguese Law AI MCP connects Claude, ChatGPT, Cursor, and Codex to live DGSI decisions and Diário da República legislation.

Portuguese legal research has a source problem before it has an AI problem. A language model can explain legal concepts, but its training data cannot guarantee that a decision is current, that a diploma has not been amended, or that a citation exists exactly as written.
A Portuguese Law AI MCP takes a different approach. It gives an AI client tools for reaching the legal source when the question is asked. Lauyer currently connects compatible clients to Portuguese court decisions on DGSI and legislation or official publications on Diário da República.
Why Legal AI Needs Live Sources
General-purpose models are useful for drafting a search strategy, translating terminology, comparing arguments, and summarizing supplied text. They are much weaker as an authority for what Portuguese law says today.
Three things change constantly:
- legislation is amended, rectified, regulated, or revoked;
- court decisions are added and later authority changes how earlier decisions should be read;
- source portals change their indexes, identifiers, and available document text.
The safest workflow is retrieval first, interpretation second. Find the source, open it, identify the controlling text, and only then use AI to help analyze it.
What Lauyer Connects
DGSI Court Decisions
DGSI publishes decisions from several Portuguese courts. Lauyer can search across supported courts, filter by date, return result metadata, and fetch the full decision when the source makes it available.
Useful requests include:
- “Find recent Supremo Tribunal de Justiça decisions about non-compete clauses.”
- “Search Tribunal da Relação do Porto decisions mentioning workplace harassment since 2023.”
- “Open this DGSI result and extract the court, process number, date, holding, and cited provisions.”
Every result should retain a link to DGSI. That link is more important than a confident paragraph from any model because it lets you inspect what was actually published.
Diário da República Legislation
Diário da República is the official publication source for Portuguese legislation and other public acts. Lauyer can search acts, filter by type or date, fetch a specific publication, and list recent publications.
That supports questions such as:
- “What employment legislation was published today?”
- “Find the latest version of acts matching telework and occupational safety.”
- “Fetch this decree-law and identify what it amends or revokes.”
Search results are not a legal consolidation service. You still need to check the publication, subsequent amendments, rectifications, commencement rules, and any consolidated version provided by an authoritative source.
How MCP Fits Into the Workflow
MCP is a standard that lets an AI client call external tools. Instead of copying a legal database into every assistant, the client discovers Lauyer’s tools and calls them when your prompt requires Portuguese legal information.
A typical flow looks like this:
- Add Lauyer as a remote HTTP MCP server in a compatible client.
- The client opens Lauyer in the browser.
- Sign in and review the requested authorization scope.
- Return to the client and start a fresh conversation.
- Ask a research question that requires DGSI or Diário da República.
- The client calls the relevant Lauyer tool and receives linked source material.
OAuth keeps the connection account-based. You do not paste a permanent Lauyer API key into an editor configuration file.
Research Prompts That Produce Better Results
A good legal-research prompt names the source task, jurisdiction, date range, and the output you need. Compare these two prompts:
Tell me everything about dismissal law in Portugal.
Search Diário da República for legislation published since 2022 concerning dismissal for employee misconduct. Return the title, number, publication date, affected provisions, and source link. Then search STJ decisions applying those provisions and separate source text from your analysis.
The second prompt gives the assistant a retrieval plan and a verification format. Other useful constraints include:
- name the court or courts;
- specify
sinceanduntildates; - ask for process and diploma numbers exactly as published;
- request direct quotations only when full text was fetched;
- require a source URL beside each material claim;
- ask the assistant to state when it only received a headnote.
What AI Summaries Can and Cannot Do
Lauyer can ask an AI model to summarize a fetched decision or act. This is useful for triage: deciding whether a long document deserves closer reading, identifying the operative section, or producing a first checklist of issues.
It is not a substitute for the document. Generated summaries can omit an exception, confuse a headnote with the full reasoning, misread procedural history, or invent a citation. A model also cannot tell you that a later authority changed the position unless that later source is retrieved and supplied.
The AI & Data Use page explains the provider path and the information recorded when a summary is requested.
Privacy and Professional Responsibility
Your AI client, Lauyer, the legal source, and an AI model can all be separate processing points. That matters when a query contains client details, employee information, privileged communications, criminal-offence data, or another person’s identifiers.
Keep searches source-focused. Remove names and facts that are not needed. Before using any external AI or MCP service for professional work, check your secrecy duties, client instructions, workplace policy, records rules, and lawful basis for processing personal data.
Lauyer does not keep a private mirror of the Portuguese legal corpus. Ordinary searches are fetched live. AI summaries are different: the selected legal text is sent through OpenRouter to the configured model provider. The Privacy Policy describes the complete data flow.
A Verification Checklist
Before relying on a result:
- Open the original DGSI or Diário da República link.
- Confirm the court, process number, act number, publication date, and series.
- Check whether the result is full text, an excerpt, or only a headnote.
- Check amendments, revocations, rectifications, commencement provisions, appeals, and later authority.
- Separate quoted source text from the assistant’s interpretation.
- Remove unnecessary personal information before sharing the output.
- Have a qualified person review work that affects rights, employment, compliance, litigation, or money.
Where a Portuguese Law AI MCP Helps Most
The strongest use case is not “AI knows Portuguese law.” It is AI can reach Portuguese legal sources while you work.
That can shorten the first research pass, make source links easier to collect, and reduce portal switching. The final judgment remains human: whether a result is authoritative, current, relevant, complete, and appropriate for the matter in front of you.