MCP server · Free beta

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.

Streamable HTTP legal.ejiapi.com/mcp Read-only tools Your own leg_ key

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" }
    }
  }
}
Claude Desktop needs Node.js

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 Code, demo
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-only

Full-text search inside the text of central Acts (India Code), best match first, with the matching passage in [square brackets].

legal_list_actsRead-only

Central Acts, the Constitution, ordinances and repealed Acts by title, kind or year: year, number, dates, ministry and the India Code link.

legal_get_actRead-only

One Act with its long title, summary, PDF link and, if asked, its full text.

legal_section_lookupRead-only

The matching section in the other law: IPC to BNS, CrPC to BNSS, Indian Evidence Act (IEA) to BSA, and back.

legal_section_searchRead-only

Sections of IPC, CrPC, Evidence Act, BNS, BNSS and BSA whose title contains the words, e.g.

legal_search_judgmentsRead-only

Court judgments by parties, court, year or dates, newest first: title, court, judge, CNR, citation, decision date and outcome.

legal_get_judgmentRead-only

Metadata of one judgment.

legal_get_judgment_textRead-only

The text of one judgment, read from its PDF in the open dataset (the first request fetches it, a few seconds).

legal_search_judgment_textRead-only

Words inside the judgments whose text we hold (those already asked for plus the newest Supreme Court judgments, growing daily).

legal_parse_citationRead-only

What kind of citation or CNR number this is, its parts (year, court, number), and the judgment id when we hold it.

legal_courtsRead-only

The Supreme Court and the 25 High Courts: seat, benches, the states they cover and their sites.

legal_pendencyRead-only

Pending 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-only

Bills introduced in Parliament: house, dates, committee, assent and the Act number if it became law.

legal_limitationRead-only

Last 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-only

Dates 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-only

Simple (365-day year) or yearly-compound interest between two dates.

legal_data_statusRead-only

What is loaded (Acts, searchable Act texts, judgments, bills, pendency days) and when each load last finished.

Questions to try

Prompt“What is the BNS section for IPC 420 and for 304B, and has either changed in substance?”Uses legal_section_lookup
Prompt“Find Supreme Court judgments from 2023 with Bihar in the title and read the first one.”Uses legal_search_judgments, legal_get_judgment_text
Prompt“Which Acts mention dowry death in their text?”Uses legal_search_acts_text
Prompt“My cheque dated 10 January 2026 bounced on 1 February. By when must the demand notice go?”Uses legal_cheque_bounce
Prompt“I lent money on 15 January 2024. When does the limitation period end?”Uses legal_limitation
Prompt“How many cases are pending in district courts, and which Parliament bills on data protection are pending?”Uses legal_pendency, legal_bills

Your data and safety

Read-only, one key per request
  • 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.