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.
Prerequisites
Section titled “Prerequisites”- Claude Code CLI installed (download)
- A personal API key (see Getting started for setup steps)
Locate the configuration file
Section titled “Locate the configuration file”Claude Code stores MCP server configuration in:
~/.claude/settings.jsonIf this file doesn’t exist, Claude Code will create it on first run.
Add the Power MCP service
Section titled “Add the Power MCP service”Run this command:
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
No restart needed
Section titled “No restart needed”Claude Code automatically picks up configuration changes. Start a new conversation or session after saving the file.
Verify the connection
Section titled “Verify the connection”Run a test command:
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
Next steps
Section titled “Next steps”- Configure Claude Desktop — Connect via the mcp-remote bridge
- Getting started tutorial — Complete setup and run your first ability
- API keys reference — Learn about personal vs project keys
- Search abilities — Find WordPress operations to run