esic-max-knowledge
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.
ESIC Max Plugin (esic-max)
A standalone Antigravity plugin and read-only Python MCP server (esic-max-knowledge) over the pre-compiled ESIC QABERT-J SQLite runtime (max_runtime.sqlite) and SHA-256 Content-Addressed Store (local_cas_sources.json / CAS assets/).
Supports two zero-drift deployment modes with identical tool behavior:
Local Windows Stdio Mode (default in mcp_config.json) — queries your local
max_runtime.sqliteandlocal_cas_sources.jsondirectly.Hosted Oracle VPS Streamable HTTP Mode (Best for Teams / External Users) — host the MCP server once on your Oracle Linux ARM64 VPS behind HTTPS + Bearer auth alongside
/opt/max-data/, switchmcp_config.jsonto deploy/mcp_config.remote.json ("url": "https://<your-domain>/mcp"), and share the plugin repo so anyone can install it with zero local SQLite, Python, or 22 GiB PDFs.
Features
5 Read-Only MCP Tools (
esic-max-knowledge):search_esic_rules— Bilingual (English + Hindi/Devanagari) FTS5/BM25 search with lexically gated Method Q routing, deduplicated scenario hints, Method B cross-domain expansion, and Method T supersession resolution.read_document_clauses— Verbatim page-anchored excerpts (<!-- PAGE N OF M -->,<!-- PAGE_BREAK: Page N -->,--- Page N ---,## Page N) plus bounded decompression ofdoc_processed_blobs(narrative_clauses_z,table_register_z,authority_matrix_z,forms_checklists_z).check_temporal_chain— ResolvesOPERATIVEvsSUPERSEDEDcurrency andTEMP-*epoch pointers throughmethod_t_chainsandmethod_t_doc_status.explore_legal_graph— Surfacesmethod_b_edges,method_r_antinomies,method_r_permissions,method_e_entities,method_j_precedents(+ K7A_J), andmethod_j_sector_reports.extract_pdf_excerpt— Extracts a focused PyMuPDF PDF excerpt from local CAS or VPS/opt/max-data/assets. Returnsexcerpt_pathlocally and a time-limited HMAC-signed HTTPSexcerpt_urlwhenMAX_PUBLIC_BASE_URLis configured (never raw base64).
Zero Internal ID Leakage: Stateless deterministic HMAC
doc_reftokens (item_<16hex>) and recursive payload scrubbing strip allDOC-*,RUL-*,PST-*,TDR-*,REF-*,TEMP-*,PREC-*, andref_Ntokens.Bundled Rules & Skills:
rules/AGENTS.md— Enforces Zero-Hallucination Grounding, Method J Lex Superior (Babu Ram + Wambaugh), Zero ID Leakage, and CSMOP discipline.skills/esic-quick-lookup/— Fast 2–4 tool-call grounded lookup.skills/esic-csmop-audit/— Full 8-stage legal & administrative audit with 5 Audit Gates and.docxCSMOP Note Sheet export (scripts/export_csmop_docx.py).
Related MCP server: Law7 MCP
Hosted VPS Setup (Teams & Zero-Local-Footprint Sharing)
If you already sync max_runtime.sqlite and assets/ to /opt/max-data/ on your Oracle Linux ARM64 VPS (e.g., via max_telegram_bot/sync_pusher/):
Copy this repo to
/opt/esic-max-pluginon the VPS and run the bootstrap script:sudo DOMAIN=esic-mcp.yourdomain.com bash /opt/esic-max-plugin/deploy/setup_vps_mcp.shThis installs
.venv, generates a randomMCP_BEARER_TOKENandMAX_REF_SECRETin/etc/esic-max-mcp/mcp.env, enables deploy/esic-max-mcp.service (read-only access to/opt/max-data), and exposes:POST/GET /mcp— Streamable HTTP MCP endpoint (stateless_http=true, Bearer-protected)GET /health— Health & document count probeGET /excerpts/{expires}/{sig}/{filename}.pdf— Signed temporary PDF excerpt download
Put Caddy (HTTPS + Let's Encrypt) in front of
127.0.0.1:8765: Use deploy/Caddyfile.example (flush_interval -1preserves Streamable HTTP streaming).Switch client
mcp_config.jsonfor distribution: Replacemcp_config.jsonwith deploy/mcp_config.remote.json:{ "mcpServers": { "esic-max-knowledge": { "url": "https://esic-mcp.yourdomain.com/mcp", "headers": { "Authorization": "Bearer <your-team-token>" } } } }Any user who clones or installs the plugin folder (
plugin.json,mcp_config.json,rules/,skills/) into~/.gemini/config/plugins/esic-max(or.agents/plugins/esic-max) immediately gets the exact sameMaxquery experience with no local database, no Python.venv, and no PDFs.
Local Setup (Windows)
uv sync --extra dev
uv run pytestRegistering the Plugin in Antigravity
Option A — NTFS Directory Junction (no Administrator privileges required on Windows):
New-Item -ItemType Directory -Force "$HOME\.gemini\config\plugins" | Out-Null
New-Item -ItemType Junction -Path "$HOME\.gemini\config\plugins\esic-max" -Target "C:\Users\Mayank Shekhar\Documents\esic-max-plugin"Option B — Symbolic Link (requires Developer Mode or elevated PowerShell):
New-Item -ItemType Directory -Force "$HOME\.gemini\config\plugins" | Out-Null
New-Item -ItemType SymbolicLink -Path "$HOME\.gemini\config\plugins\esic-max" -Target "C:\Users\Mayank Shekhar\Documents\esic-max-plugin"mcp_config.json Reference Variants
(a) Local Windows Stdio (Current Default)
{
"mcpServers": {
"esic-max-knowledge": {
"command": "C:\\Users\\Mayank Shekhar\\Documents\\esic-max-plugin\\.venv\\Scripts\\python.exe",
"args": ["-m", "mcp_server.server"],
"env": {
"MAX_RUNTIME_DB": "C:\\Users\\Mayank Shekhar\\Documents\\ESIC_repos\\max_telegram_bot\\dist\\max_runtime.sqlite",
"MAX_LOCAL_CAS_SOURCES": "C:\\Users\\Mayank Shekhar\\Documents\\ESIC_repos\\max_telegram_bot\\dist\\local_cas_sources.json",
"MAX_ASSETS_DIR": "",
"MAX_EXCERPT_OUT_DIR": "C:\\Users\\Mayank Shekhar\\Documents\\esic-max-plugin\\.excerpts"
}
}
}
}(b) SSH-Tunneled Stdio to Oracle Linux ARM64 VPS
{
"mcpServers": {
"esic-max-knowledge": {
"command": "ssh",
"args": [
"-i", "C:\\Users\\Mayank Shekhar\\.ssh\\oracle_vps_key",
"-T",
"ubuntu@<ORACLE_VPS_IP>",
"MAX_RUNTIME_DB=/opt/max-data/max_runtime.sqlite MAX_ASSETS_DIR=/opt/max-data/assets MAX_EXCERPT_OUT_DIR=/tmp/esic-excerpts /opt/esic-max-plugin/.venv/bin/python -m mcp_server.server --transport stdio"
]
}
}
}(c) Remote Streamable HTTP (/mcp, NOT legacy /sse)
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.
Grounded MENA legal search, reasoning, citation resolution, and citation-graph traversal.
Search U.S. case law, fetch opinions, and ask matter-aware legal questions over your documents.
Legal answers from official sources; refuses when no norm is verified.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables semantic and keyword search over legal documents, conflict detection, and document overview, supporting Indonesian and English texts.-
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with up-to-date legal documents from official sources, enabling accurate legal information retrieval and analysis.23AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceProvides agents with unified access to Singapore's legal corpus—statutes, case law, data-protection enforcement, and Hansard—supporting point-in-time queries, provenance tracking, and tools like search, citation resolution, and parliamentary intent.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants and agents to search a legal document collection via hybrid BM25+dense retrieval, read articles with context, and generate full or short citations. It also exposes whole acts as Markdown resources, provides a citation-answering prompt, and supports stdio and streamable HTTP transports.MIT