WP Navigator MCP
AI-powered WordPress management that enables creating and editing posts, pages, media, plugins, themes, and Gutenberg blocks through natural language with safe-by-default writes and full rollback support.
README
WP Navigator MCP
AI-powered WordPress management via Claude Code, Claude Desktop, and MCP-compatible clients.
Manage posts, pages, media, plugins, themes, and Gutenberg blocks through natural language — all with safe-by-default writes and full rollback support.
<!-- TODO: Add demo GIF when available
-->
Coming Soon — January 2025
The WP Navigator WordPress plugin is not yet available. This MCP server requires the plugin to be installed on your WordPress site.
Who Is This For?
| WordPress Developer | Content Manager |
|---|---|
| "I want AI to help build and maintain sites" | "I want to manage content with natural language" |
| You build WordPress sites and want AI assistance for development tasks. | You manage content and want faster, more intuitive workflows. |
| Key features: Gutenberg block editing, plugin management, theme switching, bulk operations | Key features: Post/page creation, media uploads, safe publishing, content rollback |
What WP Navigator MCP Does
Content Management
- Create and edit posts/pages with Gutenberg blocks
- Upload media from URLs (sideload images automatically)
- Manage comments, categories, and tags
- Full revision history with rollback support
Site Management
- Install, activate, and manage plugins
- Switch and customize themes
- View and manage WordPress users
Safety & Rollback
- Safe by default — Writes disabled until explicitly enabled
- Full revision history — Rollback any content change
- Policy-based access — WordPress plugin enforces granular permissions
- HTTPS enforced — Secure connections for non-localhost
Quick Start
1. Install WP Navigator Plugin
<details> <summary><strong>Free Version (WordPress.org)</strong></summary>
Search for "WP Navigator" in WordPress Plugins → Add New, or:
- Download from WordPress.org
- Upload to
/wp-content/plugins/ - Activate the plugin
</details>
<details> <summary><strong>Pro Version</strong></summary>
- Purchase at wpnav.ai/pro
- Download the plugin ZIP
- Upload via WordPress Admin → Plugins → Add New → Upload
- Activate and enter your license key
</details>
2. Create Application Password
In WordPress Admin: Users → Your Profile → Application Passwords
- Enter a name (e.g., "WP Navigator MCP")
- Click "Add New Application Password"
- Copy the password immediately (it won't be shown again)
3. Create Configuration File
Create wpnav.config.json in your project directory:
{
"WP_BASE_URL": "https://your-site.com",
"WP_REST_API": "https://your-site.com/wp-json",
"WPNAV_BASE": "https://your-site.com/wp-json/wpnav/v1",
"WPNAV_INTROSPECT": "https://your-site.com/wp-json/wpnav/v1/introspect",
"WP_APP_USER": "your-username",
"WP_APP_PASS": "xxxx xxxx xxxx xxxx xxxx xxxx"
}
4. Configure Your MCP Client
<details> <summary><strong>Claude Code</strong></summary>
Add to your project's .mcp.json:
{
"mcpServers": {
"wpnav": {
"command": "npx",
"args": ["-y", "@littlebearapps/wp-navigator-mcp", "./wpnav.config.json"],
"env": {
"WPNAV_ENABLE_WRITES": "1"
}
}
}
}
</details>
<details> <summary><strong>Claude Desktop</strong></summary>
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"wpnav": {
"command": "npx",
"args": ["-y", "@littlebearapps/wp-navigator-mcp", "/full/path/to/wpnav.config.json"],
"env": {
"WPNAV_ENABLE_WRITES": "1"
}
}
}
}
Restart Claude Desktop after editing.
</details>
Note:
WPNAV_ENABLE_WRITES=1enables create/update/delete operations. Without it, only read operations work (safe by default).
5. Verify Connection
In Claude, try:
"Use wpnav_introspect to check the WordPress connection"
CLI Mode
WP Navigator MCP also works as a standalone CLI for scripts and web-based AI agents.
Initialize a Project
npx wpnav init # Interactive wizard (guided mode)
npx wpnav init --mode scaffold # Quick setup without prompts
npx wpnav init --mode ai-handoff # Create AI-ready handoff document
Creates project structure with wpnavigator.jsonc manifest and sample-prompts/ folder containing ready-to-use AI prompts (self-test, add-page, content-audit, etc.).
Direct Tool Invocation
# List posts
npx wpnav call wpnav_list_posts --limit 5
# Get site overview
npx wpnav call wpnav_get_site_overview
# Preview a change without executing
npx wpnav call wpnav_update_post --id 1 --title "New Title" --dry-run
Other Commands
npx wpnav status # Check WordPress connection and plugin edition
npx wpnav tools # List available tools
npx wpnav configure # Set up credentials interactively
npx wpnav validate # Validate config and manifest
npx wpnav validate --json --snapshots # Machine-readable output with snapshot validation
npx wpnav doctor # Run system diagnostics
npx wpnav cleanup # Remove onboarding helper files
Snapshot & Sync Workflow
npx wpnav snapshot site # Capture full site index
npx wpnav snapshot page about # Capture single page
npx wpnav diff # Compare manifest vs WordPress
npx wpnav sync --dry-run # Preview changes
npx wpnav sync # Apply manifest to WordPress
npx wpnav rollback <id> # Restore from pre-sync snapshot
See CLI Reference for complete documentation.
Available Tools
65+ tools organized by category:
| Category | Tools | Examples |
|---|---|---|
| Core | 5 | wpnav_introspect, wpnav_get_site_overview |
| Posts | 7 | wpnav_list_posts, wpnav_create_post_with_blocks |
| Pages | 6 | wpnav_list_pages, wpnav_snapshot_page |
| Media | 4 | wpnav_upload_media_from_url |
| Plugins | 7 | wpnav_list_plugins, wpnav_activate_plugin |
| Themes | 7 | wpnav_list_themes, wpnav_activate_theme |
| Gutenberg | 7 | wpnav_gutenberg_insert_block |
| Users | 5 | wpnav_list_users, wpnav_get_user |
| Comments | 5 | wpnav_list_comments, wpnav_create_comment |
| Taxonomy | 12 | wpnav_list_categories, wpnav_create_tag |
List all tools:
npx wpnav tools
npx wpnav tools --category gutenberg
Architecture
┌─────────────────────┐ MCP Protocol ┌────────────────────┐
│ Claude Code / │ ◄──────────────────► │ WP Navigator MCP │
│ Claude Desktop │ │ (npm package) │
└─────────────────────┘ └─────────┬──────────┘
│ REST API
▼
┌────────────────────┐
│ WordPress │
│ + WP Navigator │
│ Plugin │
└────────────────────┘
Environment Variables
| Variable | Default | Description |
|---|---|---|
WPNAV_ENABLE_WRITES |
0 |
Enable write operations (create/update/delete) |
ALLOW_INSECURE_HTTP |
0 |
Allow HTTP for localhost development |
WPNAV_TOOL_TIMEOUT_MS |
600000 |
Per-tool timeout (10 minutes) |
WPNAV_MAX_RESPONSE_KB |
64 |
Maximum response size before truncation |
Compatibility
| WP Navigator MCP | WP Navigator Free | WP Navigator Pro | Node.js |
|---|---|---|---|
| v1.0.x | v1.0+ | v1.0+ | 18+ |
MCP Clients: Claude Desktop, Claude Code, Gemini CLI, any MCP-compatible client
Platforms: macOS (Apple Silicon & Intel), Linux (x64), Windows (via WSL)
Documentation
- CLI Reference — Complete command documentation
- Security — Security model and best practices
- Troubleshooting — Common issues and solutions
- FAQ — Frequently asked questions
- Contributing — How to contribute
Support & Community
- Bug Reports: Open an Issue
- Feature Requests: Start a Discussion
- Questions: Ask in Discussions
- Documentation: wpnav.ai/docs
Related Projects
| Project | Description |
|---|---|
| WP Navigator Free | WordPress plugin (Free) |
| WP Navigator Pro | WordPress plugin (Premium) |
License
MIT — see LICENSE for details.
Made with care by Little Bear Apps
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。