{"_id":"@anrakai/mcp","name":"@anrakai/mcp","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@anrakai/mcp","version":"2.0.0","description":"AnrakLegal MCP bridge — exposes the full AnrakLegal connector tool suite to any stdio MCP client (Hermes, Claude Desktop, Cursor, etc.) by forwarding to your hosted /token/{token}/mcp endpoint.","type":"module","bin":{"anraklegal-mcp":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["mcp","model-context-protocol","legal","india","hermes","claude","cursor","anraklegal","stdio"],"author":{"name":"AnrakLegal","email":"support@anrak.legal"},"license":"MIT","homepage":"https://anrak.legal","repository":{"type":"git","url":"git+https://github.com/anraktech/legalmcp.git"},"dependencies":{"@modelcontextprotocol/sdk":"^1.26.0"},"devDependencies":{"@types/node":"^20.14.0","typescript":"^5.6.3"},"engines":{"node":">=18.0.0"},"_id":"@anrakai/mcp@2.0.0","gitHead":"a7e5617c827c4888430303d113f3648abaced35e","bugs":{"url":"https://github.com/anraktech/legalmcp/issues"},"_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Xla3DJpfZJ+pZNmDCn6drDGW+QD6lqyT073CTlMRIDbg9dl9KWRps+GunIuQKd4xtnGyg0DZbfitfWCYCb/twg==","shasum":"dbd2a25e39f8938483c7bcdcbaec08b3e6e9c0b8","tarball":"https://registry.npmjs.org/@anrakai/mcp/-/mcp-2.0.0.tgz","fileCount":3,"unpackedSize":14160,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFHDqqFqy9FQJUAvYQ9JlZlVZ6ExcuyVqtH74V48tx5VAiBVhURsOjyz7vI0JqNL0wfxHnNszBl1aUycApwW/93nRQ=="}]},"_npmUser":{"name":"anrakai","email":"kapil@anrak.io"},"directories":{},"maintainers":[{"name":"anrakai","email":"kapil@anrak.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_2.0.0_1780481310530_0.08683733452530151"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T10:08:30.350Z","2.0.0":"2026-06-03T10:08:30.670Z","modified":"2026-06-03T10:08:30.846Z"},"maintainers":[{"name":"anrakai","email":"kapil@anrak.io"}],"description":"AnrakLegal MCP bridge — exposes the full AnrakLegal connector tool suite to any stdio MCP client (Hermes, Claude Desktop, Cursor, etc.) by forwarding to your hosted /token/{token}/mcp endpoint.","homepage":"https://anrak.legal","keywords":["mcp","model-context-protocol","legal","india","hermes","claude","cursor","anraklegal","stdio"],"repository":{"type":"git","url":"git+https://github.com/anraktech/legalmcp.git"},"author":{"name":"AnrakLegal","email":"support@anrak.legal"},"bugs":{"url":"https://github.com/anraktech/legalmcp/issues"},"license":"MIT","readme":"# @anrakai/mcp\n\nConnect **AnrakLegal** — India's AI legal platform — to any local MCP client\n(Hermes, Claude Desktop, Cursor, Continue, …) over **stdio**.\n\nThis is a thin bridge: your MCP client launches it as a subprocess, and it\nforwards every request over HTTPS to your hosted AnrakLegal connector\n(`/token/{token}/mcp`). You get the **full** AnrakLegal tool suite — case law\nsearch, statutes, paralegal case management, contracts, validation, and more —\nwith **no SDK-version requirements** on your machine.\n\n## Why a bridge?\n\nPointing a client straight at the connector URL needs the client's\n**HTTP/streamable-HTTP** MCP transport, which only exists in newer MCP SDKs\n(e.g. Python `mcp` ≥ 1.8.0). Older local installs fail with:\n\n```\nrequires HTTP transport but mcp.client.streamable_http is not available\n```\n\nThe **stdio** transport is universal — every MCP client supports a\n`command:`-launched server. This bridge terminates stdio locally and speaks\nHTTPS to AnrakLegal, so it works regardless of your client's MCP version.\n\n## Setup\n\n1. Get your connector link at **https://anrak.legal/connectors** — it looks\n   like `https://anrak.legal/token/<your-token>/mcp`.\n2. Add the bridge to your client config (examples below). It runs via `npx`,\n   so there's nothing to install — you just need Node.js 18+.\n\n### Hermes (`~/.hermes/config.yaml`)\n\n```yaml\nmcp_servers:\n  anraklegal:\n    command: npx\n    args: [\"-y\", \"@anrakai/mcp\"]\n    env:\n      ANRAKLEGAL_CONNECTOR_URL: \"https://anrak.legal/token/<your-token>/mcp\"\n    timeout: 60\n```\n\n### Claude Desktop (`claude_desktop_config.json`) / Cursor\n\n```json\n{\n  \"mcpServers\": {\n    \"anraklegal\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@anrakai/mcp\"],\n      \"env\": {\n        \"ANRAKLEGAL_CONNECTOR_URL\": \"https://anrak.legal/token/<your-token>/mcp\"\n      }\n    }\n  }\n}\n```\n\nRestart your client. Ask it: *\"What AnrakLegal tools do you have?\"*\n\n## Configuration\n\n| Env var | Required | Description |\n|---|---|---|\n| `ANRAKLEGAL_CONNECTOR_URL` | yes\\* | Full connector endpoint, e.g. `https://anrak.legal/token/<token>/mcp` |\n| `ANRAKLEGAL_TOKEN` | \\* | Alternative to the URL — just the token; the URL is built for you |\n| `ANRAKLEGAL_BASE_URL` | no | Override the base (default `https://anrak.legal`) when using `ANRAKLEGAL_TOKEN` |\n\n\\* Provide either `ANRAKLEGAL_CONNECTOR_URL` **or** `ANRAKLEGAL_TOKEN`.\n\n## Already on a modern client? (no bridge needed)\n\nIf your client's MCP SDK supports HTTP transport (Python `mcp` ≥ 1.8.0,\nclaude.ai, recent Cursor), you can skip the bridge and register the connector\nURL directly:\n\n```yaml\n# Hermes, modern build\nmcp_servers:\n  anraklegal:\n    url: \"https://anrak.legal/token/<your-token>/mcp\"\n```\n\nThe bridge exists for the long tail of installs where that transport isn't\navailable.\n\n## Development\n\n```bash\nnpm install\nnpm run build      # tsc → dist/\nANRAKLEGAL_CONNECTOR_URL=https://anrak.legal/token/<token>/mcp node dist/index.js\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-cd4f876f27a3ebc5f7ff9e4dd5c96b97"}