Claude Code
Add the MCP server
Section titled “Add the MCP server”claude mcp add my-site \ --transport http \ --url "https://YOUR-SITE.com/wp-json/mcpwp/v1/mcp" \ --header "X-API-Key: mcpwp_YOUR_KEY"This saves the config to your project’s .claude/mcp.json. The server is available in all Claude Code sessions in that directory.
Verify
Section titled “Verify”claude mcp listPer-project config
Section titled “Per-project config”For a project-scoped setup, add .claude/mcp.json to your repo:
{ "mcpServers": { "my-site": { "url": "https://YOUR-SITE.com/wp-json/mcpwp/v1/mcp", "headers": { "X-API-Key": "mcpwp_YOUR_KEY" } } }}Add the key to .env and reference it via an environment variable if you need to avoid committing secrets.