Quick-starts
Codex CLI
Copy page
Add DarkCrawl to the Codex CLI so it can read .onion pages for you.
Works with OpenAI Codex CLI
-
Get a key, then set it in your environment as
DARKCRAWL_API_KEY. Start Codex from a terminal where it is set. -
Add the server to
~/.codex/config.toml. Codex reads the key from the variable named inbearer_token_env_var, so the file never holds it.[mcp_servers.darkcrawl] url = "https://api.darkcrawl.dev/mcp" bearer_token_env_var = "DARKCRAWL_API_KEY" -
Check it. Ask Codex to list the tools DarkCrawl gives it. You should see the tools on the MCP page.
-
Run DarkCrawl on your own machine. The commands below point at it at
http://127.0.0.1:3002. -
Install the
darkcrawlcommand with its MCP extra, from the repository root.uv tool install --reinstall --python 3.13 '.[mcp]' -
Add the server. Run this in a terminal, and put your key in place of
YOUR_API_KEY. Codex saves the server in~/.codex/config.toml.codex mcp add darkcrawl --env DARKCRAWL_API_KEY=YOUR_API_KEY -- darkcrawl --url http://127.0.0.1:3002 mcp -
Ask Codex to list the tools DarkCrawl gives it. You should see the tools on the MCP page.
OpenAI and Codex are trademarks of OpenAI.