@litt-law/mcp
v1.2.1
Published
MCP connector for LITT — Indian legal research inside Claude & any MCP client. Search Supreme Court, High Courts and tribunal (NCLT/NCLAT/DRT/IBBI/SEBI/Consumer) case law by query or citation, check good-law status, ask a legal AI, and translate — with on
Maintainers
Keywords
Readme
@litt-law/mcp
Indian legal research for Claude — and any MCP client.
A Model Context Protocol connector for LITT. It gives an AI assistant real tools to search Indian case law, verify whether a judgment is still good law, ask a legal AI, and translate — grounded in actual sources, not model recall. Authenticated with your LITT API key and metered on the same credit wallet as the app.
- 🔎 Search 9 corpora — Supreme Court, High Courts, NCLT, NCLAT, DRT, IBBI, SEBI, Consumer, or all at once
- 🧾 Query in natural language or a citation in any order (
scc 2018 627,air 2019 sc 100) - ⚖️ Good-law check — see how later judgments treated a case (followed / distinguished / overruled)
- 💬 Ask LITT's legal AI with threaded follow-ups
- 🌐 Translate passages into Indian languages
- 🔐 One-command browser login — no manual key copying
Quick start
1. Install & connect (Claude Code):
claude mcp add litt -- npx -y @litt-law/mcpThen in a chat, run the litt_login tool — it opens your browser, you approve while signed in to
LITT, and a scoped key is minted and saved automatically. Done.
2. Or Claude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"litt": {
"command": "npx",
"args": ["-y", "@litt-law/mcp"]
}
}
}Restart Claude Desktop, then run litt_login.
Prefer to set the key yourself? Add
"env": { "LITT_API_KEY": "litt_sk_live_…" }to the config (Desktop) or--env LITT_API_KEY=litt_sk_live_…to theclaude mcp addcommand — and skiplitt_login.
Authentication
You need a LITT API key. Two ways to get one:
Option A — browser login (recommended)
Just run the litt_login tool. It:
- opens
https://app.litt.law/connect?user_code=…in your browser, - you confirm the code matches and click Authorize (while signed in to LITT),
- a scoped key is minted, returned to the connector, and saved to
~/.litt/config.json.
No copy-paste. The key persists across restarts. Re-run litt_login anytime to reconnect.
Option B — manual key
Create one at app.litt.law → Settings → API Keys with the scopes you need
(search:read, chat:write, translate:write), then supply it via LITT_API_KEY (see above).
API keys are server-to-server. Never paste one into browser/front-end code — a key used from a browser is treated as leaked, blocked, and you'll get a security email. The connector stores it locally (
~/.litt/config.json, mode0600).
Tools
| Tool | What it does | Scope |
|------|--------------|-------|
| litt_login | Connect this MCP to your LITT account via the browser (mints + saves a key). | — |
| litt_search | Search a corpus (supreme_court, high_courts, nclt, nclat, drt, ibbi, sebi, consumer, all) by query or citation. 1 credit/call. | search:read |
| litt_cited_by | Reverse citation — which Supreme Court judgments cite a case, and how they treated it. Free. | search:read |
| litt_list_sources | List the searchable corpora. Free. | search:read |
| litt_chat_ask | Ask LITT's legal AI a full question; pass back thread_id to continue. Billed per reply. | chat:write |
| litt_translate | Translate text into an Indian language. Billed by length. | translate:write |
| litt_list_languages | List supported translation languages. | translate:write |
| litt_credit_balance | Check remaining credits. Read-only, free. | any key |
| litt_status | Show connector version, whether an update is available, and connection state. | — |
litt_search
{
"corpus": "supreme_court", // or high_courts, nclt, nclat, drt, ibbi, sebi, consumer, all
"query": "aadhaar right to privacy", // natural language OR a citation ("scc 2018 627")
"filters": { // optional
"practice_area": "constitutional",
"year_from": 2015, "year_to": 2018,
"constitution_bench": true // Supreme Court only
},
"page": 1, "page_size": 20 // pages 2+ of the SAME query are free
}Returns ranked case cards: title, citations[], court, date, summary, keywords,
related (cited/citing cases with names), card_meta (status chip, timeline, precedent graph),
and a short-lived document link.
litt_cited_by
{ "citation": "(2017) 10 SCC 1" } // or { "id": "…" } or { "citations": ["…","…"] }litt_chat_ask
{ "message": "What is the ratio in Kesavananda Bharati?", "thread_id": "…optional to continue…" }Example prompts
- "Use litt_search on the supreme_court corpus for aadhaar right to privacy and summarise the top 3."
- "Find the case for citation scc 2018 627."
- "Which judgments cite (2017) 10 SCC 1? Use litt_cited_by and flag any that overruled it."
- "Ask litt_chat_ask: draft a note on the doctrine of basic structure with authorities."
- "Check litt_credit_balance before running a batch of searches."
Billing & limits
- Each search costs 1 credit; pages 2+ of the same query are free — a new query is a fresh charge.
- chat and translate are billed by size.
litt_cited_by,litt_list_sources,litt_credit_balanceare free. - Every call is metered on your LITT wallet — the same balance the app uses. Check it with
litt_credit_balance.
Configuration (environment)
| Variable | Required | Default | Notes |
|----------|----------|---------|-------|
| LITT_API_KEY | No¹ | — | Your litt_sk_live_… key. ¹Optional if you use litt_login. |
| LITT_API_BASE_URL | No | https://api-app.litt.law/api/v1 | Override the API base. Must include /api/v1. |
Troubleshooting
| Symptom | Cause / fix |
|---|---|
| "Not connected to LITT" | No key yet — run litt_login, or set LITT_API_KEY. |
| 401 | Key missing/invalid — reconnect with litt_login. |
| 403 | Key revoked/expired, or missing the tool's scope (search:read / chat:write / translate:write). |
| 429 | Rate limit — slow down, then retry. |
| 404 / "Cannot GET …" | Wrong base URL. It must end in /api/v1 — set LITT_API_BASE_URL=https://api-app.litt.law/api/v1. |
| HTML "not found" page | Base URL points at the marketing site, not the API. Use the api-app host above. |
Staying updated
LITT ships changes frequently. The connector checks npm on startup and shows a one-time
"update available" note (and litt_status reports it anytime). To always run the newest build,
point your config at @latest:
claude mcp add litt -- npx -y @litt-law/mcp@latestTo force a refresh if a stale version is cached:
npm cache clean --forceThen restart your MCP client.
Interactive prompts (elicitation)
On clients that support MCP elicitation (e.g. Claude Desktop/Code), the connector may ask you
to confirm before a federated all search, and to choose answer depth for litt_chat_ask. On
clients without elicitation it proceeds with sensible defaults — nothing breaks.
Local development
git clone <repo> && cd mcp
npm install
npm run build
LITT_API_KEY=litt_sk_live_… npm start # runs on stdioLinks
- LITT: https://litt.law
- Dashboard / API keys: https://app.litt.law
- Model Context Protocol: https://modelcontextprotocol.io
License
Apache-2.0 © LITT
