WordPress Developer Stack for VS Code
Configuration
{
"servers": {
"wordpress-mcp": {
"type": "stdio",
"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": {
"type": "stdio",
"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": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
},
"github-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
}
},
"context7-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}Where to save
Paste the config above into:
.vscode/settings.json → mcp sectionEnvironment Variables
Replace the YOUR_ placeholders with your actual values.
WORDPRESS_URLrequiredWordPress site URL
Used by: WordPress MCP
WORDPRESS_USERNAMErequiredWordPress admin username
Used by: WordPress MCP
WORDPRESS_APP_PASSWORDrequiredWordPress application password
Used by: WordPress MCP
MYSQL_HOSTrequiredMySQL host
Used by: MySQL MCP
MYSQL_USERrequiredMySQL username
Used by: MySQL MCP
MYSQL_PASSWORDrequiredMySQL password
Used by: MySQL MCP
MYSQL_DATABASErequiredMySQL database name
Used by: MySQL MCP
GITHUB_PERSONAL_ACCESS_TOKENrequiredGitHub 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.
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.
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.