With Royal MCP active and your API key copied, connect Claude one of two ways.
Option 1, OAuth (recommended, no config file needed):
- Open Claude Desktop Settings → Connectors.
- Click Add custom connector.
- Paste your Royal MCP URL and authorize using your WordPress login.
Option 2, config file with your API key:
Edit your Claude Desktop config file (Windows:
%APPDATA%\Claude\claude_desktop_config.json, Mac: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"my-wordpress-site": {
"url": "https://yoursite.com/wp-json/royal-mcp/v1/mcp",
"headers": {
"Authorization": "Bearer your-api-key-here"
}
}
}
}
Restart Claude Desktop, and Claude will list your site’s tools, creating posts, listing products, reading pages, the next time you start a conversation.