Connecting Claude Desktop to WordPress via MCP
Connecting Claude Desktop to WordPress via MCP
Connect Anthropic's Claude Desktop directly to your live WordPress site in under 60 seconds. With Digent Smart AI, Claude gains native tools to read, draft, format, style, and manage your WordPress site directly from your chat window.
Prerequisites
- Claude Desktop installed on your computer (Download Claude Desktop).
- Digent Smart AI plugin installed and activated on your WordPress site.
- An active Digent Cloud account or local WordPress Application Password.
Step 1: Locate Your Claude Desktop Config File
Claude Desktop uses a configuration file named claude_desktop_config.json. Open the file located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
If the file does not exist, create a new text file with that name.
Step 2: Add Your WordPress MCP Server Configuration
Paste the following JSON configuration into claude_desktop_config.json. Replace YOUR_SITE_UUID and YOUR_API_KEY with the credentials generated from your Digent Smart AI Cloud Dashboard:
{
"mcpServers": {
"my-wordpress-site": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sse",
"https://gateway.digentsmartai.com/api/mcp/YOUR_SITE_UUID"
],
"env": {
"DIGENT_API_KEY": "your_api_key_here"
}
}
}
}
Direct Local Connection: If you prefer connecting directly to your self-hosted WordPress site without using the cloud relay, use our direct local MCP bridge:
{ "mcpServers": { "my-wordpress-site": { "command": "node", "args": ["path/to/digent-local-bridge.js"], "env": { "WP_URL": "https://example.com/wp-json/digent-smart-ai/v1/mcp", "WP_APP_USER": "your_wp_username", "WP_APP_PASS": "xxxx xxxx xxxx xxxx" } } } }
Step 3: Restart Claude Desktop & Verify Tools
- Quit Claude Desktop completely (Command + Q on macOS or Exit from system tray on Windows).
- Relaunch Claude Desktop.
- Look for the small 🔌 plug / hammer icon in the bottom-right corner of the chat input.
- You will see registered tools:
wp_contentwp_seowp_fileswp_cli_runwp_site_infowp_campaignwp_snippets
Real-World Prompts to Try Right Now
Once connected, you can talk to your website just like a human assistant:
-
Site Health Diagnostic:
"Inspect my website health diagnostics, check active plugins, and tell me if anything needs updating." -
Draft & Publish a Blog Post:
"Draft a 1,200-word comprehensive guide on 'Autonomous AI Agents in WordPress 2026' with headings, bullet points, and Gutenberg blocks, assign it to the Technology category, and save it as a draft." -
Rank Math / Yoast SEO Optimization:
"Audit my latest 5 published blog posts, check their SEO scores, and optimize any missing meta titles, descriptions, and focus keywords." -
Database Cleanup:
"Perform a safe dry-run database cleanup to find orphaned postmeta, spam comments, and expired transients."
Troubleshooting & Tips
- Claude doesn't show the hammer icon: Verify that Node.js (
npx) is installed and available in your system PATH by runningnpx --versionin your terminal. - Connection Timed Out: Check if your web host or firewall blocks outgoing SSE streaming or REST requests from the Digent Cloud Gateway IP range.
Related Guides in AI Client Connectors
Have questions or need technical support?
Our engineering team is ready to help you connect your AI agents.