# Hosted Streamable HTTP MCP Overview
> Connect coding and legal research agents to https://vidhi-mcp.shamik.app/mcp or local stdio vidhi-mcp.
Source URL: /docs/mcp

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 &amp; Security Architecture [#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 &amp; 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 [#capabilities-summary]

| Capability | Count | Details |
|---|---|---|
| Curated Legal Tools | 20 + 2 aliases | Discovery, Cases &amp; Tribunals, Citator, Statutes &amp; Sanhita 2024, 6 Tier B SOTA engines, plus `search`/`fetch` compatibility aliases |
| Resources | 4 | `vidhi://guide`, `vidhi://in/coverage`, `vidhi://in/pricing`, `vidhi://in/cases/{case_id}` |
| Prompts | 6 | Pre-built workflows for good-law verification, brief checking, IPC-to-BNS audit, counter-precedent, order audit, and notice deadlines |

<LegalBoundaryNote title="Qualification & Scope Boundary" tone="amber">
Protocol behavior is verified against local MCP protocol and SDK test suites. Commercial third-party host installation (such as external desktop client onboarding or public marketplace listings) remains separately gated, and binary PDF streaming (<code>/cases/{id}/pdf</code>) plus Eighth Schedule translation (<code>B8</code>) are excluded from MCP tools — use REST, CLI, or SDKs for those endpoints.
</LegalBoundaryNote>