Dike logoDocs

Dike exposes a cloud-hosted Remote HTTP MCP Server at https://api.dike.it.com/mcp. There are no npm packages to compile or background daemons to maintain: your agent communicates directly with Dike's remote endpoint using JSON-RPC 2.0 and Bearer token authentication.

Rendering diagram...

Exposed MCP Tools Catalog

Tool NameUnderlying EndpointPurpose in Agent Loops
dike_searchPOST /v1/searchFast hybrid retrieval to find candidate laws, articles, and judgements.
dike_reasonPOST /v1/reasonSynthesizes an authoritative answer with verified citation footnotes ([1]).
dike_citePOST /v1/citeNormalizes and parses raw citation strings from user input or drafts.
dike_graph_traversePOST /v1/graph/traverseDiscovers amending, repealing, or citing relationships for a document.

Client Configurations

1. Claude Code CLI

Add Dike to your Claude Code workspace using the claude mcp add command:

claude mcp add --transport http dike https://api.dike.it.com/mcp \
  --header "Authorization: Bearer $DIKE_API_KEY"

Verify connection:

claude mcp list

2. Claude Desktop

Add Dike to your claude_desktop_config.json file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "dike": {
      "type": "http",
      "url": "https://api.dike.it.com/mcp",
      "headers": {
        "Authorization": "Bearer dike_live_your_api_key_here"
      }
    }
  }
}

Restart Claude Desktop

After saving the configuration file, fully quit and restart Claude Desktop for the tools to appear in the tool picker.


3. Cursor IDE

In your project root, create or edit .cursor/mcp.json:

{
  "mcpServers": {
    "dike-legal": {
      "type": "http",
      "url": "https://api.dike.it.com/mcp",
      "headers": {
        "Authorization": "Bearer dike_live_your_api_key_here"
      }
    }
  }
}

4. Windsurf IDE

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "dike": {
      "serverUrl": "https://api.dike.it.com/mcp",
      "headers": {
        "Authorization": "Bearer dike_live_your_api_key_here"
      }
    }
  }
}

Verifying the MCP Server Connection

You can test the MCP server handshake directly from your terminal using curl:

curl -X POST https://api.dike.it.com/mcp \
  -H "Authorization: Bearer $DIKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list"
  }'

Expected Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "tools": [
      {
        "name": "dike_search",
        "description": "Hybrid semantic + lexical legal search across Egypt, Saudi Arabia, and UAE.",
        "inputSchema": { "type": "object", "properties": { "query": { "type": "string" } } }
      },
      {
        "name": "dike_reason",
        "description": "Grounded legal Q&A with strict hallucination verification.",
        "inputSchema": { "type": "object", "properties": { "question": { "type": "string" } } }
      },
      {
        "name": "dike_cite",
        "description": "Parses and resolves Arabic legal citation strings to canonical documents."
      },
      {
        "name": "dike_graph_traverse",
        "description": "Walks the citation graph between documents (amends, repeals, cites)."
      }
    ]
  }
}

Next Steps

On this page