WordPress Headless for VS Code
io.github.aj-ua/wp-headless-mcp
Read WordPress content, ACF fields, and Yoast SEO data, and safely edit drafts.
client:VS Code
transport:stdio
runtime:npm
Install WordPress Headless in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "wp-url",
"description": "WP_URL",
"password": true
},
{
"type": "promptString",
"id": "mcp-profile",
"description": "MCP_PROFILE",
"password": true
},
{
"type": "promptString",
"id": "wp-user",
"description": "WP_USER",
"password": true
},
{
"type": "promptString",
"id": "wp-app-password",
"description": "WP_APP_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "wp-cache-ttl",
"description": "WP_CACHE_TTL",
"password": true
},
{
"type": "promptString",
"id": "acf-json-path",
"description": "ACF_JSON_PATH",
"password": true
},
{
"type": "promptString",
"id": "mcp-cpts",
"description": "MCP_CPTS",
"password": true
}
],
"servers": {
"wp-headless-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"wp-headless-mcp"
],
"env": {
"WP_URL": "${input:wp-url}",
"MCP_PROFILE": "${input:mcp-profile}",
"WP_USER": "${input:wp-user}",
"WP_APP_PASSWORD": "${input:wp-app-password}",
"WP_CACHE_TTL": "${input:wp-cache-ttl}",
"ACF_JSON_PATH": "${input:acf-json-path}",
"MCP_CPTS": "${input:mcp-cpts}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs