legal-search-mcp
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-search-mcpSearch for precedent on unfair dismissal"
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 Search MCP
Korean case law, statutes and sentencing data as MCP tools. Point an AI client at it and the model can look up statute text as it stood on a given date, find judgments by the facts of a case, read one judgment and answer a question about it, and compute a sentencing range the way a Korean court does.
Five read-only tools:
Tool | What it does |
| Find judgments by facts, charge, court, year or case number |
| Read one judgment body and answer a question about it |
| Statute and administrative-rule articles, current or as of a date |
| Observed first-instance sentencing distribution for a charge |
| Statutory range → processed range → guideline range → verification |
This is the production system behind 법률AI, and
the descendant of the research prototype in
legal_mcp — see Paper.
Quick start — hosted
The full corpus (190k+ judgments, statutes with their amendment history, administrative rules, sentencing guidelines) is served for you. Get a free key at console.crow-tit.com and add:
{
"mcpServers": {
"legal-search": {
"type": "http",
"url": "https://mcp.crow-tit.com/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}Works with Claude Desktop, Claude Code, Cursor and any other MCP client. No rate limits.
Related MCP server: Legal Search MCP
Quick start — self-host
The repository ships a sample corpus so a clone runs immediately:
git clone https://github.com/LimEulYoung/legal-search-mcp
cd legal-search-mcp
pip install -e .
legal-search-mcp # stdio
legal-search-mcp --transport http --port 8100Register it with a client:
{
"mcpServers": {
"legal-search": {
"command": "legal-search-mcp"
}
}
}Configuration is all environment variables — see .env.example.
Nothing is required; the defaults use the bundled corpus.
The dive tool needs a model
Four of the five tools are pure database reads. precedent_dive sends one
public judgment body to a language model and asks it to extract an answer,
so it needs an endpoint:
export DIVE_API_KEY=...
export DIVE_BASE_URL=https://api.openai.com/v1 # any OpenAI-compatible endpoint
export DIVE_MODEL=...Without those three the tool is not registered and the other four run normally.
The corpus
The tools read one SQLite file. What ships here is a bounded sample, not the whole thing:
Sample ( | Hosted | |
Judgments | 800 | 190,000+ |
Statutes | 27 core laws, current text | All, with amendment history |
Administrative rules | 20 | All |
Sentencing guidelines | Complete | Complete |
Charge taxonomy | Complete | Complete |
The sample is enough to exercise every tool and run the tests. For real work, use the hosted corpus.
Search combines two lexical indexes: a character-trigram FTS and a
morpheme FTS built with Kiwi, fused
with reciprocal rank fusion. The morpheme index is not an optimisation —
Korean charge names are often two characters (사기, 절도, 폭행), and a
trigram index cannot form a trigram from two characters, so those queries
return nothing without it.
Judgments are non-copyrightable under Article 7 of the Korean Copyright Act. Court and case-number provenance is preserved in the data.
Building your own
scripts/build_sample_db.py carves a sample out of a full corpus and is also
the reference for the schema — which tables the tools read, how the
full-text indexes are built, and how statute versions resolve:
python scripts/build_sample_db.py --source /path/to/corpus.db \
--dest my_sample.db --cases 5000 --statutes allPaper
The retrieval and tool-use design was evaluated on the Korean Bar Examination:
Agentic RAG for Legal Question Answering in Civil Law: Evidence from the Korean Bar Examination Eul Young Lim and Jihun Park
Benchmark code, questions and per-model results are archived in
legal_mcp. If you use this tool
in research, please cite the paper (CITATION.cff).
Also available
Legal Search API — one question in, a grounded answer out, in Anthropic Messages format. crow-tit.com
법률AI — the free consumer service: chat, search, labour calculators, legal document drafting. lawful.crow-tit.com
Notes
This is a search tool over public legal sources, not legal advice. What it returns is source material and statistics; deciding what they mean for a particular matter is a lawyer's job.
Development happens in a private repository and lands here in batches, so issues are welcome but pull requests may be merged by hand rather than through the button.
MIT licensed.
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
- AlicenseAqualityAmaintenanceMCP server for Korean law data (statutes, precedents, regulations) with citation verification, impact analysis, and time comparison tools.Last updated104,3782,383MIT
- FlicenseAqualityDmaintenanceMCP server that enables AI agents to search Korean laws and retrieve article contents using the Korean Ministry of Legislation's law information API.Last updated2
- Flicense-qualityCmaintenanceThis MCP server integrates South Korea's national law information, building registers from MOLIT, and KOSIS statistics for housing development research. It enables searching laws, retrieving building details, and accessing statistical data through natural language.Last updated
- AlicenseAqualityCmaintenanceMCP server providing comprehensive Korean legal data access (laws, precedents, regulations, ordinances) with citation verification, temporal comparison, impact graphs, and legal research workflows.Last updated104,378MIT
Related MCP Connectors
Academic research MCP server for paper search, citation checks, graphs, and deep research.
MCP server for doc2mcp documentation, generated by doc2mcp.
An MCP server for deep research or task groups
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/LimEulYoung/legal-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server