Legal MCP server
Ask Claude, Cursor or any MCP client to convert an IPC section to BNS, search inside Acts and judgments, read a judgment, or work out a limitation date. Seventeen read-only tools over the same data as the REST API and the explorer.
It uses your legal key (leg_…), the same one as the REST API; ask for a free beta key. Finance, accounting and medical keys do not work here; their MCP servers are at fin.ejiapi.com, acc.ejiapi.com and med.ejiapi.com.
Connect
claude mcp add --transport http eji-legal https://legal.ejiapi.com/mcp \ --header "x-api-key: YOUR_LEGAL_KEY"
{
"mcpServers": {
"eji-legal": {
"url": "https://legal.ejiapi.com/mcp",
"headers": { "x-api-key": "YOUR_LEGAL_KEY" }
}
}
}
{
"mcpServers": {
"eji-legal": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://legal.ejiapi.com/mcp",
"--header", "x-api-key:${EJI_LEGAL_KEY}"],
"env": { "EJI_LEGAL_KEY": "YOUR_LEGAL_KEY" }
}
}
}
It reaches remote servers through the mcp-remote helper. Keep your key out of shared config files and repositories.
Try without a key
Connect without the header and the tools use the explorer's public demo: the same data, limited to 60 calls a minute per visitor. Answers then carry "demo": true.
claude mcp add --transport http eji-legal-demo https://legal.ejiapi.com/mcp
Tools
All tools are read-only. Every answer carries source and disclaimer, and the server asks the assistant to pass both on. The section table has not been reviewed by a lawyer, and says so. Start with legal_search_judgments (its id feeds the text tool) or legal_section_lookup.
legal_search_acts_textRead-onlyFull-text search inside the text of central Acts (India Code), best match first, with the matching passage in [square brackets].
legal_list_actsRead-onlyCentral Acts, the Constitution, ordinances and repealed Acts by title, kind or year: year, number, dates, ministry and the India Code link.
legal_get_actRead-onlyOne Act with its long title, summary, PDF link and, if asked, its full text.
legal_section_lookupRead-onlyThe matching section in the other law: IPC to BNS, CrPC to BNSS, Indian Evidence Act (IEA) to BSA, and back.
legal_section_searchRead-onlySections of IPC, CrPC, Evidence Act, BNS, BNSS and BSA whose title contains the words, e.g.
legal_search_judgmentsRead-onlyCourt judgments by parties, court, year or dates, newest first: title, court, judge, CNR, citation, decision date and outcome.
legal_get_judgmentRead-onlyMetadata of one judgment.
legal_get_judgment_textRead-onlyThe text of one judgment, read from its PDF in the open dataset (the first request fetches it, a few seconds).
legal_search_judgment_textRead-onlyWords inside the judgments whose text we hold (those already asked for plus the newest Supreme Court judgments, growing daily).
legal_parse_citationRead-onlyWhat kind of citation or CNR number this is, its parts (year, court, number), and the judgment id when we hold it.
legal_courtsRead-onlyThe Supreme Court and the 25 High Courts: seat, benches, the states they cover and their sites.
legal_pendencyRead-onlyPending cases in district and taluka courts from the National Judicial Data Grid: civil, criminal, total, cases filed and disposed last month, and filed by women and senior citizens.
legal_billsRead-onlyBills introduced in Parliament: house, dates, committee, assent and the Act number if it became law.
legal_limitationRead-onlyLast day to file under the Limitation Act 1963 for common claims, with the Article, the starting event and what can move the date.
legal_cheque_bounceRead-onlyDates under Negotiable Instruments Act ss.138 and 142: validity of the cheque, the 30-day demand-notice window, the 15 days to pay and the one-month window to file the complaint.
legal_interestRead-onlySimple (365-day year) or yearly-compound interest between two dates.
legal_data_statusRead-onlyWhat is loaded (Acts, searchable Act texts, judgments, bills, pendency days) and when each load last finished.
Questions to try
legal_section_lookuplegal_search_judgments, legal_get_judgment_textlegal_search_acts_textlegal_cheque_bouncelegal_limitationlegal_pendency, legal_billsYour data and safety
- The server keeps no session: each request uses the key it came with and nothing else.
- It reads public law and court data only. Nothing about you or your case reaches EJI beyond the search text.
- Party names are hidden in matrimonial, child-protection, sexual-offence, juvenile and adoption cases, and their text is not served.
- This is reference information, not legal advice. The tools say so; the assistant should send people to a lawyer, never tell them what to do in their own case.
- Calls count against your key like REST calls. Free during the beta.
Acts: India Code. Judgments: eCourts and the Supreme Court of India, compiled by Dattam Labs (CC-BY-4.0). Pendency: NJDG. Bills: Sansad. Reference information only, not legal advice.