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 Name | Underlying Endpoint | Purpose in Agent Loops |
|---|---|---|
dike_search | POST /v1/search | Fast hybrid retrieval to find candidate laws, articles, and judgements. |
dike_reason | POST /v1/reason | Synthesizes an authoritative answer with verified citation footnotes ([1]). |
dike_cite | POST /v1/cite | Normalizes and parses raw citation strings from user input or drafts. |
dike_graph_traverse | POST /v1/graph/traverse | Discovers 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 list2. 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
- Explore Framework Integrations for LangChain, LlamaIndex, and Vercel AI SDK.
- Learn optimal multi-step orchestration in Agent Tool-Use Patterns.
- Review real-world enterprise architectures in Case Studies.