Guide pages · 7 of 8
Connect AI agents over MCP
The MCP server is a subcommand of the CLI (spiderhead mcp). It runs locally over stdio and exposes the same tools to AI agents. Use the absolute path to the built binary.
Before you start: build the CLI as in the install guide and choose a client that supports local stdio servers. Keep the absolute path to target/release/spiderhead. See requirements for the required and optional components.
Claude Code
Register the built CLI.
bashclaude mcp add spiderhead -- /absolute/path/to/spiderhead/target/release/spiderhead mcpClaude Desktop and other stdio clients
Add the server to the client's MCP configuration.
json{ "mcpServers": { "spiderhead": { "command": "/absolute/path/to/spiderhead/target/release/spiderhead", "args": [ "mcp", "--profile", "full" ] } } }Codex and Cursor
spiderhead mcp install previews the change for claude-code, claude-desktop, codex or cursor; --dry-run writes nothing, and a backup is made before any write.
bashspiderhead mcp install --client codex --dry-run spiderhead mcp install --client cursor --dry-runProfiles
--profile full exposes every tool; audit, infra, quick-check and router expose smaller sets for focused sessions.
bashspiderhead mcp --profile routerStart from a project
Projects keep scope, crawl policy, scans and history, so the next agent continues from the saved project instead of chat history.
bashspiderhead project new --directory ./shop --target https://example.com/
Edit this page on GitHubUpdated 12.10.2026