Legal MCP server · Claude · ChatGPT · Cursor

Legal MCP server for Claude, ChatGPT, and your own agents

Give your assistant real caselaw. The LawDiver legal MCP server lets Claude, ChatGPT, Cursor, or your own agent search more than 10 million U.S. court opinions, read the full text, and cite-check against the corpus instead of recalling cases from memory.

  • 10 million+ opinions
  • Search · read · cite-check
  • OAuth for ChatGPT and Claude
  • Any commercial use

What the legal MCP server does

Search caselaw. Semantic, boolean, and citation search across federal and state opinions, scoped by jurisdiction and court. The assistant gets the passage that made each case relevant.

Read the opinion. Full text and structured metadata (court, dates, holdings, citations), so the model reasons over the actual decision.

Cite-check. Confirm a citation exists and report treatment, drawing on close to 100 million authority relationships, plus verification of U.S. Code, C.F.R., state statutes, court rules, and constitutions.

Tools the server exposes

Each tool below is a function the assistant can call. Names are as the server registers them.

  • search_cases: search federal and state caselaw. Always set the jurisdiction. Returns case name, citation, court, date and good-law flags.
  • retrieve_case: resolve a citation or case name to one case, with did-you-mean candidates when it is ambiguous.
  • get_case: metadata for a known case id, without the opinion body.
  • get_opinion_text: full opinion text for a case id. Long opinions paginate.
  • get_good_law: whether a case is still good law, with negative-treatment signals when they are recorded.
  • goodlaw_check: the cases that cite a case, with citation status. A reversal is listed first.
  • retrieve_statute: full text of a U.S. Code or C.F.R. section, or a state section when LawDiver holds it.
  • browse_statute: where a section sits in its code, with the previous and next sections.
  • get_statute_citing_cases: cases that cite a statute or regulation section, newest first.
  • check_citation: verify one or more citations against the corpus, including treatment.
  • list_jurisdictions: the jurisdiction and circuit codes to use with search_cases.

The server also exposes view_case and view_authority for interactive in-client document viewing alongside the research tools above.

Connect ChatGPT or Claude in a minute

Both listings connect with a LawDiver sign-in. Create a free account first and the connection is one click.

ChatGPT

LawDiver is an officially approved ChatGPT app. Open the listing, click Install, sign in to LawDiver, and click Allow.

Open the ChatGPT app

Claude

LawDiver is listed in the Claude directory. Click Connect, sign in to LawDiver, and click Allow. No key to paste.

Open the Claude directory

Live status and score for this server, from the mcptry directory of MCP servers:

mcptry status badge for the LawDiver MCP server

Cursor, Claude Code, and other MCP clients

Point any MCP client that speaks Streamable HTTP at https://lawdiver.com/mcp and send your LawDiver API key as a Bearer header. Create the key under Account → API Keys after signup.

In Claude Code, add the same URL as an HTTP MCP server with your key in the Authorization header, then run /mcp inside Claude Code to check the connection. In Cursor, use the JSON below in your MCP settings.

{
  "mcpServers": {
    "lawdiver": {
      "url": "https://lawdiver.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_LAWDIVER_API_KEY" }
    }
  }
}

How to compare legal MCP servers

Many legal tools now offer an MCP server. Before you connect one to an assistant or build an agent on it, ask the same questions of each. LawDiver's answers:

  • Is it primary law, or your own documents? Practice-management and document-management servers expose your matters and files. LawDiver exposes public law: 10 million+ opinions, statutes, regulations, and rules.
  • Can every citation be verified? Each LawDiver result carries a citation, court, date, and a link to the full opinion, and a cite-check tool confirms existence and treatment.
  • How does it authenticate? OAuth sign-in for ChatGPT and Claude; a revocable API key for every other client.
  • May you build a product on it? LawDiver permits any commercial use, including a product that competes with LawDiver.
  • Is there a REST API behind it? The same key calls the REST API, so an agent you build and the assistant you chat with query the same corpus.

LawDiver and the CourtListener MCP server

CourtListener, from Free Law Project, also offers an MCP server. The rows below use only facts that CourtListener publishes on its own help page, and LawDiver's public description of its own server.

TopicCourtListener MCPLawDiver MCP
What it searchesCase law and opinions, PACER data, oral arguments, and judge recordsFederal and state opinions, U.S. Code, C.F.R., state statutes, court rules and constitutions
Citation toolsCitation network (what cases cite, and what cites them) and citation verificationCitation check, good-law status, and the cases that cite a statute or case
How it signs inOAuth with a CourtListener account; Claude Code opens a browser for OAuthOAuth sign-in for ChatGPT and Claude; a LawDiver API key for other MCP clients
Access levelsAll CourtListener users get API access; elevated access comes from a Free Law Project membership or a commercial agreementFree during the current rollout, with no credit card; any commercial use is permitted
Other practice areasNot listed on its MCP help pageSeparate MCP servers for tax, trademark and immigration authorities

Building your own legal agent?

The same key calls the REST API. Search federal opinions from your own code, then see the API documentation and the legal API page for retrieval and cite-check.

curl -X POST https://lawdiver.com/api/v1/search \
  -H "Authorization: Bearer $LAWDIVER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "\"qualified immunity\" AND \"clearly established\"",
    "jurisdiction": { "type": "all_federal" },
    "searchType": "boolean",
    "limit": 10
  }'

Frequently asked questions

What is a legal MCP server?
Model Context Protocol (MCP) is an open standard that lets an AI assistant call external tools. A legal MCP server exposes legal research as tools: the LawDiver server offers case search, opinion retrieval, and citation checking, so the assistant queries a database of real court opinions instead of generating a citation from memory.
Which assistants can use the LawDiver legal MCP server?
ChatGPT (official app), Claude (listed in the Claude directory), Perplexity, Claude Code, Cursor, Codex, OpenCode, and any client that speaks MCP over Streamable HTTP.
Do I need an API key?
Not for the ChatGPT app or Claude.ai: both use OAuth, so you sign in to LawDiver and click Allow. Cursor, Claude Code, Codex, and other MCP clients send your LawDiver API key as a Bearer header. One key covers the REST API and MCP.
Does a legal MCP server stop AI from inventing case citations?
It changes where the authority comes from. The assistant queries a database of real opinions and quotes what it finds, and every result carries the case name, citation, court, and date plus a link to the full opinion, so you can verify before relying on it.
Can I use it in a commercial product or agent?
Yes. Any commercial purpose, including an agent or product you charge for. The same key calls the REST API from your own code.
What does it cost?
Free during the current rollout. No credit card.
How is this different from the CourtListener MCP server?
CourtListener’s MCP is built on its docket, PACER and oral-argument data and its judge records. LawDiver’s is built on opinions, statutes, regulations and court rules, with cite-check and good-law tools, plus separate tax, trademark and immigration servers. The comparison table on this page lists the public facts for each.
Is there a Clio or LexisNexis MCP server?
This page does not claim one. We have not verified a public MCP server from either vendor, so this page describes only what LawDiver offers.

Create a free account and connect

Free during the current rollout. No credit card. ChatGPT and Claude connect with a sign-in.