Integration Guide

WordPress MCP Server: Complete Integration Guide

WordPress MCP server is covered here as a Model Context Protocol integration guide page: what it is, how it works, when to use it, how to configure it safely, and how to verify the result. The guidance is grounded in the official MCP specification, SDK documen

What Is the WordPress MCP Server?

The WordPress MCP server is a Model Context Protocol server that connects MCP clients such as Claude Desktop and Claude Code to WordPress. It exposes 4 tools and 2 resources through the stdio transport.

What You Can Do with This Integration

list
search
read
create

How the Integration Works

User

MCP Host (Claude Desktop)

MCP Client

stdio Transport

WordPress MCP Server

WordPress API

Prerequisites

  • Node.js 18+ or Python 3.12+
  • A WordPress account with API access
  • One of: Claude Desktop, Claude Code, Cursor, VS Code
  • An API key or Personal Access Token
  • A public HTTPS endpoint for remote Streamable HTTP deployment

Installation

  1. Ensure Node.js 18+ is installed: node --version
  2. Install the server from its official package or repository:
    # Follow the maintainer's official installation instructions for this MCP server
  3. Set your credentials as environment variables:
    export WORDPRESS_API_KEY="your-key-here"
  4. Test the server starts correctly:
    node /absolute/path/to/wordpress-mcp-server/server.js --help

Client Configuration

Add the server to your Claude Desktop or Cursor configuration file:

{
  "mcpServers": {
    "wordpress": {
      "command": "node",
      "args": ["/absolute/path/to/wordpress-mcp-server/server.js"],
      "env": {
        "WORDPRESS_API_KEY": "YOUR_KEY_HERE"
      }
    }
  }
}

Restart the client after saving. The WordPress tools should appear in the tool palette.

Authentication

Auth method: api-key

This server uses a api-key. Store it as an environment variable, never hardcode it in configuration files.

Available Tools

list
search
read
create
recordsresource
metadataresource

Complete Example

{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "list",
    "arguments": {}
  },
  "id": 1
}

Testing the Connection

  1. Start the server and check for no startup errors in your client logs.
  2. Open the MCP Inspector: npx @modelcontextprotocol/inspector
  3. Connect to stdio and verify all listed tools appear.
  4. Call the first tool with minimal arguments and confirm a valid response.

Security Considerations

Security Checklist

  • Use least-privilege scopes
  • Store credentials outside client configuration files
  • Require human confirmation before any destructive tool call.
  • Log all tool invocations with timestamps and user identity.
  • Rotate credentials every 90 days or immediately after suspected exposure.

See the full MCP prompt injection guide and authentication guide for detailed coverage.

Common Errors

ErrorLikely CauseFix
Server not foundIncorrect command or pathVerify the npx package name or executable path
Connection failedTransport mismatchConfirm stdio transport is configured
Tools not visibleCapability negotiation failedRestart the client after adding the server config
Authentication failedMissing or invalid tokenCheck the environment variable name and token scope
TimeoutSlow external service or networkAdd timeout and retry handling in your config

Full diagnostics: MCP server not connecting · tools not appearing

Alternatives

  • n8n MCP Server
  • Direct WordPress REST API — no MCP required but no AI-native discovery.
M
MCPServer.in Editorial

Editorial Team

Published: 2026-08-05
Updated: 2026-08-05

References & Technical Specifications

Frequently Asked Questions

Contextual information and technical support details regarding Model Context Protocol integration