GhostLex MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GhostLex MCP Server 🇮🇳⚖️
GhostLex Research Systems as a Model Context Protocol (MCP) Server. This exposes our core Indian legal AI capabilities to any MCP-compatible environment (Claude Desktop, Cursor, Antigravity Editor, ChatGPT, etc.).
🚀 What It Does
This server provides 5 tools and 1 resource for deep legal research on the newly enacted BNS/BNSS/BSA (Bharatiya Nyaya Sanhita, etc.):
analyze_legal_query— Deep legal research with full statutory mapping and landmark Supreme Court citations.search_vault— Search locally cached research to save API credits.list_vault_entries— View all past research currently in the vault.generate_word_report— Full pipeline: Research → Format toGhostLex_Analysis_*.docx→ Save.get_case_summary— Quick 200-word summary on any Indian legal topic.
Resource:
ghostlex://vault— Exposes the entire JSON case vault as readable context for the AI.
Related MCP server: courtmesh-mcp
🛠️ Setup & Installation
1. Prerequisites
Ensure you have Python 3.10+ installed.
2. Install Dependencies
cd "the ghost engine"
pip install -r requirements.txt3. API Key
You must set your Google AI Studio API key as an environment variable before running the server or connecting to it.
Windows:
set GOOGLE_API_KEY="your_api_key_here"Mac/Linux:
export GOOGLE_API_KEY="your_api_key_here"
🔌 Connecting to Claude Desktop / Antigravity
Add the following to your MCP configuration file (mcp_config.json or claude_desktop_config.json):
{
"mcpServers": {
"ghostlex-legal-ai": {
"command": "python",
"args": [
"C:/path/to/the ghost engine/ghostlex_mcp_server.py"
],
"env": {
"GOOGLE_API_KEY": "your_api_key_here"
}
}
}
}(Make sure to change the path to where your ghostlex_mcp_server.py file actually lives!)
🧪 Testing Locally (MCP Inspector)
You can run the interactive MCP inspector to test all tools directly in your browser:
set GOOGLE_API_KEY="AIzaSy..." # your key
mcp dev ghostlex_mcp_server.pyThis will open a web UI where you can click "Call Tool" and verify everything works.
🛡️ DPDP Compliance
This server automatically runs a compliance sweep on startup, erasing any generated .docx reports older than 24 hours to comply with the DPDP Act 2023.
Prepared by GhostLex Research Desk | Copyright © 2026 GhostLex Research Systems Created and Open-Sourced by Kabir Khan
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Public Indian legal search MCP for Roop judgments, statutes, and corpus grounding.
Evidence-readiness MCP server: validate, audit, and score briefs, memos, and evidence packs.
Connect AI to millions of laws and court cases with the Lawstronaut MCP.
Law firm management MCP: manage cases, clients, tasks, calendar and documents via Claude AI.
Related MCP Servers
- AlicenseBqualityAmaintenanceLocal-first MCP server that transforms civil case PDFs into queryable cases with structural provenance, evidence IDs, and page-level verification for drafting and factual review.22Apache 2.0
- AlicenseAqualityBmaintenanceAn MCP server for the CourtMesh public API that enables AI clients to search and analyze Indian court case law, covering over 310 million case records from the Supreme Court, High Courts, District Courts, and tribunals.12234 npm1MIT
- AlicenseAqualityCmaintenanceLocal-first MCP server that generates court-ready pleadings for Bombay High Court and Maharashtra tribunals, using fill-in templates, bench-aware formatting, and a multi-agent drafting pipeline.141MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to query a FalkorDB citation graph of Indian Supreme Court judgments, determine whether cited authorities remain good law, trace overruling and reliance through multi-hop evidence paths, and access case-law tools or read-only Cypher.3MIT