npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@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

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/mcp

Then 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 the claude mcp add command — and skip litt_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:

  1. opens https://app.litt.law/connect?user_code=… in your browser,
  2. you confirm the code matches and click Authorize (while signed in to LITT),
  3. 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, mode 0600).


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_balance are 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@latest

To force a refresh if a stale version is cached:

npm cache clean --force

Then 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 stdio

Links

  • LITT: https://litt.law
  • Dashboard / API keys: https://app.litt.law
  • Model Context Protocol: https://modelcontextprotocol.io

License

Apache-2.0 © LITT