Skip to Content
Vidhi Developers
MCP & Agents

Hosted Streamable HTTP MCP Overview

Connect coding and legal research agents to https://vidhi-mcp.shamik.app/mcp or local stdio vidhi-mcp.

Open Markdown

Vidhi exposes a dedicated Model Context Protocol (MCP) server built on the official Python mcp==2.3.0 MCPServer framework, supporting Streamable HTTP (https://vidhi-mcp.shamik.app/mcp) and local stdio (vidhi-mcp).

Transport & Security Architecture

  • Hosted Streamable HTTP Endpoint: https://vidhi-mcp.shamik.app/mcp (local worktree slot N: http://127.0.0.1:809<N>/mcp).
  • Authentication: Standard Authorization: Bearer vdh_live_<32_hex> (or vdh_test_...) passed directly from the MCP client to the server. Your key requires the mcp:connect scope alongside underlying corpus:read or ai:run scopes.
  • DNS-Rebinding Protection: The Streamable HTTP endpoint validates the Origin header on incoming requests.
  • Delegation & Telemetry: Every MCP tool call delegates cleanly to Vidhi's /api/v1/in/* Go API forwarding Authorization, X-Vidhi-Client (mcp_http or mcp_stdio), and X-Vidhi-MCP-Tool.
  • SSE Progress Notifications: Long-running Tier B tools (audit_adverse_order, generate_research_memo) emit MCP notifications/progress events over Streamable HTTP with 15-second keepalives.

Capabilities Summary

CapabilityCountDetails
Curated Legal Tools20 + 2 aliasesDiscovery, Cases & Tribunals, Citator, Statutes & Sanhita 2024, 6 Tier B SOTA engines, plus search/fetch compatibility aliases
Resources4vidhi://guide, vidhi://in/coverage, vidhi://in/pricing, vidhi://in/cases/{case_id}
Prompts6Pre-built workflows for good-law verification, brief checking, IPC-to-BNS audit, counter-precedent, order audit, and notice deadlines

On this page