API · MCP
This page covers how to use LawDiver from your own software or from an AI assistant. You can call a REST API directly, or connect Claude, ChatGPT, and other MCP clients so they search and retrieve from LawDiver instead of inventing cites from memory.
LawDiver offers four research surfaces: general U.S. caselaw, federal tax, federal trademark, and immigration. Each surface is available on the website, over MCP for AI assistants, and over a dedicated REST API for applications you build.
Claude and ChatGPT have official or directory listings for some of these surfaces. Where a listing is live, install from that listing. Where it is not, the guides below show the manual connector or Custom GPT Action path. The sections that follow explain what each option covers and link to the full setup page.
An API (application programming interface) lets your own software call LawDiver over HTTPS. You send a search or a citation, and LawDiver returns structured JSON — case metadata, opinion text, cite-check results, or specialty authorities. You choose when to call it and how to show the answer in your product.
LawDiver issues product-scoped keys (for example ld_live_ for caselaw, ld_tax_ for tax). The same key can also authenticate header-based MCP clients. Full field reference lives in the API documentation.
MCP (Model Context Protocol) lets an AI assistant call LawDiver as a tool while you chat. Instead of guessing a case cite, the model can search the corpus, open an opinion, or check a citation, then answer from what came back.
LawDiver hosts MCP over Streamable HTTP. Caselaw is at https://lawdiver.com/mcp. Tax, trademark, and immigration each have their own server URL and tools. Claude.ai and ChatGPT often use OAuth (sign in and Allow). Editors such as Cursor usually send an API key in a header.
Active — LawDiver is listed in the Claude directory. Connect once, then turn the connector on for each chat.
Gives Claude search, retrieval, and cite-check over more than 10 million U.S. opinions, plus statutes and specialty cite resolve where the corpus holds them. On Claude web and desktop, view_case and view_authority open an interactive viewer for opinions, statutes, regulations, and court rules (good-law badge, Cited by, neighbouring sections). This is the caselaw connector, not Tax or Trademark.
Install from the Claude directory, sign in to LawDiver, and click Allow. No API key paste on claude.ai.
Active — LawDiver is an officially approved ChatGPT app. Install from the ChatGPT listing; do not paste a key into chat.
Same caselaw research tools as the Claude connector: search cases, open opinions, and check citations against the live corpus while you work in ChatGPT.
Install LawDiver for ChatGPT, sign in, and click Allow.
Call search, retrieval, cite-check, and bulk upload from your own application. Licensed for any commercial purpose — your desk, your firm, or a product you ship. Coverage includes more than 10 million U.S. court opinions, 60,000 U.S. Code sections, the Code of Federal Regulations, over 1.9 million state statutes, federal and state court rules, U.S. and state constitutions, and specialty corpora (IRS tax authorities).
Authenticate with an ld_live_ key. Endpoints live under /api/v1. The product page summarizes commercial use and endpoints; the docs cover every field.
Active — LawDiver Tax is approved in the Claude directory (separate from caselaw LawDiver).
Tax research over a dedicated corpus and five MCP tools at https://lawdiver.com/mcp/tax. What you can reach:
REST mirrors the same work: POST /api/v1/tax/search, /retrieve, /case, /treaty, /check. Keys use the ld_tax_ prefix.
Active — LawDiver Tax is an officially approved ChatGPT app (separate from caselaw LawDiver). Install from the ChatGPT listing; do not paste a key into chat.
You get the same Tax access described in LawDiver Tax for Claude. Install once, sign in to LawDiver, and click Allow — ChatGPT can then search the Code and regs, open IRS guidance, pull Tax Court opinions and treaties, and check whether a ruling is still good. Builders can still wire a Custom GPT Action to /api/v1/tax/* with an ld_tax_ key in Action auth settings.
Same Tax corpus as above, called from your code with ld_tax_ keys. Caselaw ld_live_ keys do not open /api/v1/tax/*.
Active — LawDiver for Trademark is approved in the Claude directory (separate from caselaw and Tax).
Trademark research at https://lawdiver.com/mcp/trademark. What you can reach:
REST: POST /api/v1/trademark/search, /retrieve, /case, /matter, /topics. Keys use ld_tm_.
Not yet listed as an official ChatGPT Trademark app. Same Trademark corpus as above; use the web product or a Custom GPT Action until the listing ships.
Same access as LawDiver Trademark for Claude. On OpenAI, point a Custom GPT Action at /api/v1/trademark/* with an ld_tm_ key in Action auth, or work side by side with /trademark.
Same Trademark corpus as above, from your application with ld_tm_ keys under /api/v1/trademark/*.
Not yet in the Claude directory. Add a custom connector pointing at https://lawdiver.com/mcp/immigration, or use an ld_imm_ key in header-based clients.
Immigration research over a dedicated MCP server. What you can reach:
Tools: immigration_search, immigration_retrieve, get_immigration_case, check_immigration_authority, get_visa_bulletin. REST mirrors those under /api/v1/immigration/* with ld_imm_ keys.
Not yet listed as an official ChatGPT Immigration app. Same Immigration corpus as above; use the web reader or a Custom GPT Action.
Same access as LawDiver Immigration for Claude. On OpenAI, wire a Custom GPT Action to /api/v1/immigration/* with an ld_imm_ key, or research on /immigration.
Same Immigration corpus as above, from your code with ld_imm_ keys under /api/v1/immigration/*.
Cursor, Claude Code, Perplexity, Codex, OpenCode, and other MCP clients can use the same servers. Caselaw is at https://lawdiver.com/mcp; specialty servers append /tax, /trademark, or /immigration. Most editors send Authorization: Bearer with the matching key prefix. Perplexity can use OAuth on a paid plan.
Pick an agent below for copy-paste steps.
Choose your agent for the best setup instructions.