Install on Claude Desktop

Get AnrakLegal tools directly in your Claude Desktop conversations. Search 588,024+ Indian legal documents without leaving Claude.

Before You Start

Claude Desktop

Download from claude.ai/download

Node.js 18+

Required to run the MCP server. Download from nodejs.org

Why Node.js?

The MCP server runs using NPX (Node Package eXecuter), which comes with Node.js. NPX automatically downloads and runs the server without manual installation. It's a one-time requirement that enables seamless auto-updates.

Installation Steps

1

Get Your API Key

Visit the console to generate your API key:

Go to Console

Your API key will start with ANRAK-

2

Open Configuration File

Locate your Claude Desktop configuration file:

macOS

bash
~/Library/Application Support/Claude/claude_desktop_config.json

Press Cmd+Shift+G in Finder, paste the path above

Windows

bash
%APPDATA%\Claude\claude_desktop_config.json

Press Win+R, paste the path above

If the file doesn't exist, create it with your text editor.

3

Add AnrakLegal Configuration

If file is empty or new:

json
{
  "mcpServers": {
    "anraklegal": {
      "command": "npx",
      "args": ["-y", "@anraklegal/mcp-server@latest"],
      "env": {
        "ANRAKLEGAL_KEY": "ANRAK-xxxxx-xxxxx-xxxxx-xxxxx"
      }
    }
  }
}

If you have existing MCP servers:

json
{
  "mcpServers": {
    "other-server": {
      "command": "...",
      "args": ["..."]
    },
    "anraklegal": {
      "command": "npx",
      "args": ["-y", "@anraklegal/mcp-server@latest"],
      "env": {
        "ANRAKLEGAL_KEY": "ANRAK-xxxxx-xxxxx-xxxxx-xxxxx"
      }
    }
  }
}

Important

Replace ANRAK-xxxxx-xxxxx-xxxxx-xxxxx with your actual API key from Step 1. Save the file after editing.

4

Restart Claude Desktop

macOS

  1. Click Claude in menu bar
  2. Select "Quit Claude" or press Cmd+Q
  3. Wait 5 seconds
  4. Reopen from Applications

Windows

  1. Close all Claude windows
  2. Check Task Manager to ensure process exits
  3. Wait 5 seconds
  4. Reopen from Start menu

Must Completely Quit

Just closing the window won't work. You must fully quit the application for Claude to reload the configuration.

5

Verify Installation

Open a new conversation in Claude Desktop and send this message:

text
What AnrakLegal tools do you have access to?

Claude should respond listing these 5 tools:

anraklegalSearch

Search Indian legal documents

anraklegalDocument

Retrieve full judgment text

anraklegalMetadata

Get case metadata

anraklegalFragment

Extract relevant snippets

anraklegalOriginal

Download original documents

Try It Out!

Test your installation with a simple query. Ask Claude:

text
Search for recent Supreme Court cases about arbitration

Claude will automatically use the AnrakLegal tools to search and present results!

Troubleshooting

Tools not appearing after restart

• Make sure you completely quit Claude Desktop (not just closed the window)

• Check that your JSON syntax is correct (no missing commas or brackets)

• Verify your API key is correct and inside quotes

• Check logs: ~/Library/Logs/Claude/mcp*.log (macOS)

"Server disconnected" error

• Check your API key is valid at /console

• Ensure your API key starts with ANRAK-

• Try generating a new API key

• Verify the key is properly quoted in the JSON file

"Cannot find module" or "npx command not found"

• Install Node.js from nodejs.org

• Restart your computer after installing Node.js

• Verify Node.js is installed: open Terminal/Command Prompt and run node --version

• For NPX installation: check internet connection (npx downloads on first run)

"Unauthorized" errors when using tools

• Your API key may be expired or deactivated

• Generate a new key at /console

• Update the config file with the new key

• Restart Claude Desktop after updating

Need More Help?

AnrakLegal - India's Premier Legal AI API | Verified Case Law & Statutes