WordPress Abilities MCP Server
Dynamically discovers and exposes WordPress 6.9+ Abilities API capabilities as AI-accessible tools, enabling interaction with WordPress sites and any registered plugin abilities through natural language with automatic schema validation.
README
mcp-wp-abilities
MCP server for the WordPress 6.9+ Abilities API.
Dynamically discovers and exposes WordPress abilities as AI-accessible tools.
What is this?
WordPress 6.9 introduced the Abilities API, a standardized framework for exposing WordPress capabilities through REST endpoints in a machine-readable format. This MCP server connects to any WordPress 6.9+ site and automatically discovers and exposes all registered abilities as MCP tools.
Key features:
- Dynamic discovery - Tools are discovered at runtime from your WordPress site
- Zero configuration - No hardcoded tools; the server adapts to your site's capabilities
- Full schema support - Input/output validation via JSON Schema
- Smart method handling - Automatically uses GET for readonly abilities, POST for mutations
- Plugin extensibility - Any WordPress plugin that registers abilities becomes available
Requirements
- Node.js 18+
- WordPress 6.9+ with Abilities API enabled
- WordPress Application Password for authentication
Installation
npm install -g mcp-wp-abilities
Configuration
The server requires three environment variables:
| Variable | Description |
|---|---|
WORDPRESS_URL |
Your WordPress site URL (e.g., https://example.com) |
WORDPRESS_USERNAME |
WordPress username |
WORDPRESS_APP_PASSWORD |
Application password (Settings → Security → Application Passwords) |
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"wp-abilities": {
"command": "npx",
"args": ["-y", "mcp-wp-abilities"],
"env": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_APP_PASSWORD": "your-app-password"
}
}
}
}
Claude Code
claude mcp add wp-abilities \
-e WORDPRESS_URL="https://your-site.com" \
-e WORDPRESS_USERNAME="your-username" \
-e WORDPRESS_APP_PASSWORD="your-app-password" \
-- npx -y mcp-wp-abilities
Available Tools
Tools are dynamically discovered from your WordPress site. Core WordPress 6.9 includes:
| Tool | Description |
|---|---|
wp_core_get_site_info |
Get site name, description, URL, version, language, etc. |
wp_core_get_environment_info |
Get PHP version, database info, environment type |
Additional abilities registered by plugins will appear automatically.
How it Works
- On startup, the server connects to your WordPress Abilities API
- It fetches all registered abilities with their schemas
- Each ability is converted to an MCP tool with:
- Name:
wp_{category}_{ability_name}(e.g.,wp_core_get_site_info) - Description: From the ability's label and description
- Input schema: Converted from WordPress JSON Schema
- Annotations:
readOnlyHint,destructiveHint,idempotentHint
- Name:
- When a tool is called, the server executes the corresponding WordPress ability
Creating WordPress Application Password
- Log in to your WordPress admin
- Go to Users → Profile (or the specific user's profile)
- Scroll to Application Passwords
- Enter a name (e.g., "MCP Server") and click Add New Application Password
- Copy the generated password (shown only once)
Security Notes
- Application passwords grant full API access for that user
- Use a dedicated user with minimal required capabilities
- Store credentials securely using environment variables
- The server only reads abilities and executes them; it doesn't modify WordPress core
Extending with Custom Abilities
WordPress plugins can register custom abilities that will automatically appear as MCP tools:
add_action( 'wp_abilities_api_init', function() {
wp_register_ability( 'myplugin/my-ability', [
'label' => 'My Custom Ability',
'description' => 'Does something useful',
'category' => 'myplugin',
'input_schema' => [
'type' => 'object',
'properties' => [
'param' => [ 'type' => 'string' ],
],
],
'output_schema' => [
'type' => 'object',
'properties' => [
'result' => [ 'type' => 'string' ],
],
],
'execute_callback' => 'my_ability_handler',
'permission_callback' => fn() => current_user_can( 'manage_options' ),
'meta' => [
'show_in_rest' => true,
'annotations' => [
'readonly' => false,
'destructive' => false,
'idempotent' => true,
],
],
] );
} );
Troubleshooting
"Missing required environment variables"
- Ensure all three environment variables are set
"Failed to discover abilities: 401"
- Check username and application password are correct
- Verify the user has API access
"Failed to discover abilities: 404"
- Confirm your WordPress version is 6.9+
- Check that Abilities API is enabled
No tools appearing
- Verify abilities are registered with
show_in_rest: true - Check user has permission to access the abilities
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Changelog
See CHANGELOG.md for release history.
License
MIT
Links
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。