Claude Code Integration
Set up SiteCMD with Claude Code to fix issues with full scan context.
Connect SiteCMD to Claude Code so it can read scan results and generate targeted fix prompts directly from the CLI.
Configuration
Option 1 - CLI (recommended):
claude mcp add sitecmd node /path/to/sitecmd/mcp-server/index.js
Option 2 - Config file:
Add the following to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"sitecmd": {
"command": "node",
"args": ["/path/to/sitecmd/mcp-server/index.js"]
}
}
}
Replace /path/to/sitecmd/mcp-server/index.js with the actual path. On macOS the MCP server ships inside the app bundle at:
~/Applications/SiteCMD.app/Contents/Resources/mcp-server/index.js
What you get
Once connected, Claude Code can call these tools against your SiteCMD data:
list_projects- list all projects tracked in SiteCMDget_scan_results- fetch the latest scan results for a projectlist_issues- get open issues ranked by severity and impactbuild_fix_prompt- generate a detailed fix prompt for a specific issue, including affected files and recommended stepsget_score_trend- retrieve score history to understand trajectory over time