WordPress Headless MCP
This MCP server connects a WordPress site to AI assistants, enabling them to read posts, pages, custom post types, ACF fields, and Yoast SEO data. It supports read-only access, draft-only editing, and developer profiles via stdio and HTTP, built for headless and PWA projects.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Read WordPress posts and pages
- Access ACF fields and Yoast SEO data
- Safely edit content drafts
- Answer questions about site content
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
wp-headless-mcp 1.0.0
{
"version": "1.0.0",
"transport": "stdio",
"identifier": "wp-headless-mcp",
"runtimeHint": "npx",
"registryType": "npm",
"environmentVariables": [
{
"name": "WP_URL",
"format": "string",
"isRequired": true,
"description": "Base URL of the WordPress site, without a trailing slash"
},
{
"name": "MCP_PROFILE",
"format": "string",
"choices": [
"public",
"editor",
"dev"
],
"default": "public",
"description": "Tool profile: public (read published content), editor (adds draft-only editing), or dev (adds developer tools)"
},
{
"name": "WP_USER",
"format": "string",
"description": "WordPress user for the Application Password (editor and dev profiles)"
},
{
"name": "WP_APP_PASSWORD",
"format": "string",
"description": "WordPress Application Password (editor and dev profiles)"
},
{
"name": "WP_CACHE_TTL",
"format": "number",
"default": "60",
"description": "Seconds to cache GET requests; 0 turns caching off"
},
{
"name": "ACF_JSON_PATH",
"format": "filepath",
"description": "Absolute path to the theme's acf-json folder, for ACF labels, schemas, and TypeScript types"
},
{
"name": "MCP_CPTS",
"format": "string",
"default": "auto",
"description": "Custom post type tools: auto, none, or a JSON array of {postType, singular, plural}"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"wordpress-headless-mcp": {
"command": "npx",
"args": [
"-y",
"wp-headless-mcp@1.0.0"
],
"env": {
"WP_URL": "<YOUR_WP_URL>",
"MCP_PROFILE": "<YOUR_MCP_PROFILE>",
"WP_USER": "<YOUR_WP_USER>",
"WP_APP_PASSWORD": "<YOUR_WP_APP_PASSWORD>",
"WP_CACHE_TTL": "<YOUR_WP_CACHE_TTL>",
"ACF_JSON_PATH": "<YOUR_ACF_JSON_PATH>",
"MCP_CPTS": "<YOUR_MCP_CPTS>"
}
}
}
}Cline
{
"mcpServers": {
"wordpress-headless-mcp": {
"command": "npx",
"args": [
"-y",
"wp-headless-mcp@1.0.0"
],
"env": {
"WP_URL": "<YOUR_WP_URL>",
"MCP_PROFILE": "<YOUR_MCP_PROFILE>",
"WP_USER": "<YOUR_WP_USER>",
"WP_APP_PASSWORD": "<YOUR_WP_APP_PASSWORD>",
"WP_CACHE_TTL": "<YOUR_WP_CACHE_TTL>",
"ACF_JSON_PATH": "<YOUR_ACF_JSON_PATH>",
"MCP_CPTS": "<YOUR_MCP_CPTS>"
}
}
}
}VS Code
{
"servers": {
"wordpress-headless-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"wp-headless-mcp@1.0.0"
],
"env": {
"WP_URL": "<YOUR_WP_URL>",
"MCP_PROFILE": "<YOUR_MCP_PROFILE>",
"WP_USER": "<YOUR_WP_USER>",
"WP_APP_PASSWORD": "<YOUR_WP_APP_PASSWORD>",
"WP_CACHE_TTL": "<YOUR_WP_CACHE_TTL>",
"ACF_JSON_PATH": "<YOUR_ACF_JSON_PATH>",
"MCP_CPTS": "<YOUR_MCP_CPTS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"wordpress-headless-mcp": {
"command": "npx",
"args": [
"-y",
"wp-headless-mcp@1.0.0"
],
"env": {
"WP_URL": "<YOUR_WP_URL>",
"MCP_PROFILE": "<YOUR_MCP_PROFILE>",
"WP_USER": "<YOUR_WP_USER>",
"WP_APP_PASSWORD": "<YOUR_WP_APP_PASSWORD>",
"WP_CACHE_TTL": "<YOUR_WP_CACHE_TTL>",
"ACF_JSON_PATH": "<YOUR_ACF_JSON_PATH>",
"MCP_CPTS": "<YOUR_MCP_CPTS>"
}
}
}
}Let your agent find its tools
Find servers like WordPress Headless MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.