Legal Research Agent
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Legal Research AgentFind recent Supreme Court decisions on the Second Amendment."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Legal Research Agent
A small MCP server that gives students a Claude-based research assistant backed by real, citable, free legal sources — no Westlaw/Lexis login required:
CourtListener (run by the nonprofit Free Law Project) — full-text US case law search and opinion text.
Cornell Law School's Wex — a free, authoritative legal dictionary/encyclopedia.
Students connect to it as a remote connector in Claude.ai — no local install, no API keys of their own. You (the instructor) host one server; every student in the class points Claude at the same URL.
Tools it exposes
Tool | What it does |
| Searches CourtListener's case law index. Returns case name, citation, court, date, a snippet, a link to the full case, and a |
| Fetches the full opinion text for a case found via |
| Looks up a term in Cornell's Wex dictionary. Tries the exact page first, then falls back to browsing Wex's alphabetical index for the closest match (handles typos/variants). |
Every response includes its source URL so students can (and should) verify and cite the original.
Related MCP server: CourtListener MCP Server
1. Run it locally first (sanity check)
cd law
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python server.pyThis starts a Streamable HTTP server on http://127.0.0.1:8000/mcp. This
step is just to confirm it boots on your machine — students won't run this
themselves.
2. Deploy it somewhere it can stay running
Students need a stable URL, so this needs a real (if tiny) host — GitHub Pages alone can't run a Python process. Render's free tier is the easiest option and needs no code changes:
Push this repo to GitHub (see below).
In Render, New > Blueprint, point it at your GitHub repo — it will read
render.yamland configure everything. (Or: New > Web Service, build commandpip install -r requirements.txt, start commandpython server.py.)Deploy. Render gives you a URL like
https://legal-research-agent.onrender.com.Your MCP endpoint is that URL plus
/mcp:https://legal-research-agent.onrender.com/mcp
Note: Render's free tier sleeps after inactivity, so the first request after a quiet period takes ~30-50 seconds to wake up. Fine for a classroom tool; worth mentioning to students so they don't think it's broken.
Getting a free CourtListener API token (recommended)
Unauthenticated search works out of the box at a low rate limit — fine for trying it out, risky for a whole class hitting it during an assignment.
Create a free account at courtlistener.com.
Go to your profile settings > API and copy your token.
In Render, go to your service > Environment > add
COURTLISTENER_API_TOKEN= your token. Redeploy.
This also unlocks get_opinion_text (full opinion text requires auth on
CourtListener's side regardless of rate limit).
3. Push to GitHub
git remote add origin https://github.com/<your-username>/legal-research-agent.git
git push -u origin main(Nothing sensitive is in this repo — the token lives only in Render's
environment variables, never in git, per .gitignore.)
4. Give students the connector URL
In Claude.ai: Settings > Connectors > Add custom connector, paste your
/mcp URL from step 2. Once connected, students can ask things like:
"Find the case where the Supreme Court established the Miranda warning requirement, and give me the citation."
"What's the legal definition of promissory estoppel?"
Limitations students should know
CourtListener is a large, reputable, but not-exhaustive free database — it doesn't have everything Westlaw/Lexis has, especially older or obscure state cases.
This is a research aid, not legal advice and not a substitute for reading the actual opinion — always click through to the source.
Wex is Cornell's own reference material, written for public education; it's a great starting definition, not a substitute for a case-specific legal argument.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP Server providing AI agents access to over 3 million US court decisions via CourtListener and EU legislation via EUR-Lex, with tools for searching cases, citations, judges, and court information.Last updated6MIT
- Flicense-qualityDmaintenanceA comprehensive Model Context Protocol (MCP) server for accessing CourtListener's legal database. Provides Claude Desktop with powerful legal research capabilities including court opinions, case dockets, judge profiles, and comprehensive legal analysis.Last updated1
- Alicense-qualityCmaintenanceA remotely callable MCP server for US legal research that provides tools to search, retrieve, and analyze US case law from the CourtListener API, enabling agents to build evidence packs from primary sources without generating legal content.Last updatedMIT
- AlicenseAqualityBmaintenanceMCP server for free U.S. case-law and court-docket search via CourtListener, providing tools for opinion search, docket lookup, citation verification, and more.Last updated6MIT
Related MCP Connectors
Connect AI to millions of laws and court cases with the Lawstronaut MCP.
MCP for CourtListener: US federal and state opinions, dockets, judges, plus eCFR regulations.
MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jcpask/legal-research-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server