StackMCP

WordPress Developer Stack for Cursor

Beginner5 servers21.5K tokens

Configuration

{
  "mcpServers": {
    "wordpress-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wordpress-mcp"
      ],
      "env": {
        "WORDPRESS_URL": "YOUR_WORDPRESS_URL",
        "WORDPRESS_USERNAME": "YOUR_WORDPRESS_USERNAME",
        "WORDPRESS_APP_PASSWORD": "YOUR_WORDPRESS_APP_PASSWORD"
      }
    },
    "mysql-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mysql-mcp"
      ],
      "env": {
        "MYSQL_HOST": "YOUR_MYSQL_HOST",
        "MYSQL_USER": "YOUR_MYSQL_USER",
        "MYSQL_PASSWORD": "YOUR_MYSQL_PASSWORD",
        "MYSQL_DATABASE": "YOUR_MYSQL_DATABASE"
      }
    },
    "filesystem-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/directory"
      ]
    },
    "github-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
      }
    },
    "context7-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  }
}

Where to save

Paste the config above into:

.cursor/mcp.json

Environment Variables

Replace the YOUR_ placeholders with your actual values.

WORDPRESS_URLrequired

WordPress site URL

Used by: WordPress MCP

WORDPRESS_USERNAMErequired

WordPress admin username

Used by: WordPress MCP

WORDPRESS_APP_PASSWORDrequired

WordPress application password

Used by: WordPress MCP

MYSQL_HOSTrequired

MySQL host

Used by: MySQL MCP

MYSQL_USERrequired

MySQL username

Used by: MySQL MCP

MYSQL_PASSWORDrequired

MySQL password

Used by: MySQL MCP

MYSQL_DATABASErequired

MySQL database name

Used by: MySQL MCP

GITHUB_PERSONAL_ACCESS_TOKENrequired

GitHub personal access token

Used by: GitHub MCP

What’s in this stack

Manage WordPress sites, create and edit posts, pages, and media. Handle themes, plugins, and site settings from your AI editor.

Manage posts, pages, plugins, and site settings directly from your AI assistant. The core of any WordPress workflow.

MySQL MCP6 tools

Execute SQL queries against MySQL databases. Inspect schemas, run queries, and analyze data from your AI editor.

WordPress runs on MySQL. Query the database to debug plugin conflicts, inspect post meta, and fix data issues at the source.

Read, write, search, and manage files on your local filesystem with secure directory-scoped access for your AI editor.

Edit theme files, plugin code, and wp-config directly. WordPress development is deeply file-driven.

GitHub MCP20 tools

Access the GitHub API to manage repositories, issues, pull requests, branches, and workflows directly from your AI editor.

Version control your custom themes and plugins. Keeps your WordPress codebase from becoming an untracked mess.

Pull up-to-date documentation and code examples for any library directly into your prompt context using the Context7 API.

WordPress hooks, filters, and REST API docs on demand. The WP ecosystem is vast — current docs prevent deprecated function calls.

Other editors