# Claude Desktop

> Add DarkCrawl to Claude Desktop so it can read .onion pages for you.

Works with Claude Desktop

**Hosted**

1. [Get a key](https://darkcrawl.dev/docs/build-with-ai/get-a-key/). You enter it once, in the connector.

2. Add a custom connector. In Claude, open **Settings**, then **Connectors**, then **Add custom connector**. A Team or Enterprise Owner adds it in **Organization settings**, then **Connectors**. Enter the address as the server URL, choose **No sign-in**, and under **Request headers** add the header with its whole value, including the word `Bearer`. Put your key in place of `YOUR_API_KEY`.

   ```text
   url: https://api.darkcrawl.dev/mcp
   header: authorization
   value: Bearer YOUR_API_KEY
   ```

3. Check it. Ask Claude to list the tools DarkCrawl gives it. You should see the tools on the [MCP page](https://darkcrawl.dev/docs/mcp/).

> **Note:** Claude’s request headers are a beta, and only some organizations have them. If your connector dialog has no **Request headers** section, use a client that sends a header today: [Claude Code](https://darkcrawl.dev/docs/quickstart/claude-code/), [Cursor](https://darkcrawl.dev/docs/quickstart/cursor/) or [Codex CLI](https://darkcrawl.dev/docs/quickstart/codex-cli/).

**On your own server**

1. [Run DarkCrawl](https://darkcrawl.dev/docs/run-it-yourself/) on your own machine. The commands below point at it at `http://127.0.0.1:3002`.

2. Install the `darkcrawl` command with its MCP extra, from the repository root.

   ```bash
   uv tool install --reinstall --python 3.13 '.[mcp]'
   ```

3. Add the server to `claude_desktop_config.json`, merging it into any `mcpServers` you already have. On macOS the file is `~/Library/Application Support/Claude/claude_desktop_config.json`; on Windows it is `%APPDATA%\Claude\claude_desktop_config.json`. Put your key in place of `YOUR_API_KEY`. If Claude Desktop cannot find `darkcrawl`, use the full path that `which darkcrawl` prints as the `command`.

   ```json
   {
     "mcpServers": {
       "darkcrawl": {
         "command": "darkcrawl",
         "args": [
           "--url",
           "http://127.0.0.1:3002",
           "mcp"
         ],
         "env": {
           "DARKCRAWL_API_KEY": "YOUR_API_KEY"
         }
       }
     }
   }
   ```

4. Restart Claude Desktop, then ask it to list the tools DarkCrawl gives it. You should see the tools on the [MCP page](https://darkcrawl.dev/docs/mcp/).
