Skip to main content

MCP server for THEMIS — Indian statutory law Q&A via retrieval-grounded LLM

Project description

themis-mcp

MCP server for THEMIS — Indian statutory law Q&A via retrieval-grounded LLM.

What is this?

An MCP (Model Context Protocol) server that wraps the themis-llm SDK, making Indian legal knowledge available to any MCP-compatible client (Claude Desktop, opencode, etc.).

Requirements

  • Python 3.11+
  • GPU with ~13GB VRAM (for local model inference)
  • themis-llm SDK

Install

pip install -e .

Usage

Run directly

python -m themis_mcp

Via entry point

themis-mcp

MCP Configuration

Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "themis": {
      "command": "themis-mcp"
    }
  }
}

Or for development:

{
  "mcpServers": {
    "themis": {
      "command": "python",
      "args": ["-m", "themis_mcp"]
    }
  }
}

Tools

themis_ask

Ask a legal question about Indian statutory law.

Parameter Type Default Description
question string required Legal question about Indian law
temperature float 0.7 Generation temperature (0.0-1.0)
max_tokens int 512 Maximum tokens to generate

Supported domains: BNS, IPC, BNSS, BSA, RTI Act, Consumer Protection Act, Constitution

themis_lookup

Look up raw section text from anchor tables (no LLM inference).

Parameter Type Description
act string Act identifier: bns, bnss, bsa, ipc, rti_2005, consumer_protection_2019
section string Section number (e.g. "302", "Section 63")

Resources

URI Description
themis://disclaimer Legal disclaimer
themis://acts List of supported acts with section counts

Disclaimer

THEMIS provides orientation on Indian statutory law. It is not legal advice. Consult a qualified lawyer for authoritative guidance.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

themis_mcp-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

themis_mcp-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file themis_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: themis_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for themis_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 452d4296dda6baea1e45ad6a5afcdbe77cceb602d418c3beb3fcafd9e0b5f8bc
MD5 bd35f97751b68ecab15ee784099982ad
BLAKE2b-256 6307cea023c978e3d6e3b5f90aa9b073a820a861dd17de3c3eb459a4190c5a9c

See more details on using hashes here.

File details

Details for the file themis_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: themis_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for themis_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 432a90599330f74fa3ddfcef47ce6f7e6d9ce3f25bab364ff2f0d76cc790c5f6
MD5 31f51cfe60eb23ab20dcc070a5972887
BLAKE2b-256 2fb3c62aa1fb620729400ddb1fc2b752e8fb16d98e8685e608381eb5df6da6c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page