Skip to content
WP EngineDocumentation

Configure Claude Code

This guide shows you how to configure Claude Code (CLI) to connect to the Power MCP service.

For Claude Desktop, see Configure Claude Desktop.

Claude Code stores MCP server configuration in:

~/.claude/settings.json

If this file doesn’t exist, Claude Code will create it on first run.

Run this command:

Terminal window
claude mcp add --transport http coworker \
https://api.ai.wpengine.com/v1/mcp \
--header "Authorization: Bearer wpe_YOUR_API_KEY_HERE"

Replace wpe_YOUR_API_KEY_HERE with your actual API key.

The command will:

  • Add the server (named coworker) to your Claude Code configuration
  • Set the HTTP transport
  • Configure the authorization header with your API key

Claude Code automatically picks up configuration changes. Start a new conversation or session after saving the file.

Run a test command:

Terminal window
claude "Use the coworker MCP server to list my WordPress sites"

If Claude can’t see the server, check:

  • JSON syntax (no trailing commas in settings.json)
  • API key format (starts with wpe_)
  • Server URL is correct

Last updated: