# Any MCP client

> Connect any MCP client to DarkCrawl, hosted or on your own server.

Works with any MCP client

**Hosted**

1. [Get a key](https://darkcrawl.dev/docs/build-with-ai/get-a-key/). The hosted server takes only a company key.

2. Tell your client to connect to a remote MCP server over streamable HTTP, with these two settings. If your client can read environment variables in its settings, set `DARKCRAWL_API_KEY` in your environment and write the header with that variable, in the form your client documents. If not, put the key in place of `YOUR_API_KEY`.

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

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

**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. Tell your client to start DarkCrawl as a stdio server with these three settings. Put your key in place of `YOUR_API_KEY`.

   ```text
   command: darkcrawl
   args: --url http://127.0.0.1:3002 mcp
   env: DARKCRAWL_API_KEY=YOUR_API_KEY
   ```

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