Cowboy MCP Server
Self-hosted WordPress MCP server with 206 tools and per-change undo. OAuth sign-in or API key. Free.
Cowboy MCP scores 70 (Good), licensed GPL-2.0 and written in PHP. It can be reached as a remote MCP endpoint. It declares 1 tool. Filed under Search. GitHub shows 21 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: gpl-2.0.
License, quality and maintenance
License: Grade C
GPL-2.0 is a strong copyleft license: derived works must use the same license.
How license is gradedQuality: Grade B
71/100 for listing completeness. Lost points: 1 of 1 tools barely described, short summary.
How quality is graded
Where the 70 comes from
22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "februality-cowboy-mcp": { "url": "https://{site_host}/wp-json/cowboy-mcp/v1/endpoint" } }}
Environment variables
This server does not declare environment variables.
Tools1Tool docs quality grade F
All capabilitiesWooCommercetool40
About
Cowboy MCP π€ β Free WordPress MCP Server with Undo
Cowboy MCP is a free, open-source WordPress plugin that turns any WordPress site into a Model Context Protocol (MCP) server over Streamable HTTP, so Claude, ChatGPT, Gemini, Grok, Perplexity, Muse, Cursor, VS Code, Claude Code, Codex, n8n, OpenClaw, Hermes Agent, Kimi Code, MiniMax Code, DeepSeek Harness and any other MCP client can manage the site in plain English through 206 tools β with per-change undo, database checkpoints and an audit log, so it can be trusted on a live site.
Install: WordPress.org plugin directory
Website & guides: cowboymcp.com
Why Cowboy MCP?
- Every tool is free. Up to 206 built-in tools plus every ability your plugins register through the WordPress Abilities API β content, Gutenberg/Site Editor, WooCommerce, users, media, menus, plugins, themes, files, database, WP-CLI, diagnostics, revisions, SEO (Yoast, Rank Math, AIOSEO, SEOPress), The Events Calendar, ACF, Elementor, Beaver Builder, SiteOrigin, Wordfence, caching, forms β GPL-licensed, no credits, no usage meter.
- Every change is undoable. A per-change undo journal (before-state snapshots, conflict detection, batch undo) plus one-click database checkpoints, with an always-on audit log. Plugin and theme updates take a file backup and a checkpoint first and auto-restore if the post-update health check fails.
- Nothing in the middle. The MCP endpoint runs inside your WordPress install. No hosted relay, no account, no telemetry β your AI client connects straight to your site.
- Safe by default. Safe mode (confirmation for destructive tools), dry run on every write tool, per-credential read-only, drafts-only or custom scoping, hashed keys shown once, per-key rate limits, denylists for sensitive options / dangerous SQL / WP-CLI commands, SSRF protection, path confinement to
wp-content, and a Power mode only a human can enable in wp-admin. - One-click sign-in for every app. Every app sends you to a sign-in page on your own site: Claude, ChatGPT, Gemini, Grok, Perplexity, Cursor and VS Code with one button or a pasted link, Claude Code, Codex, Gemini CLI, Opencode and Muse Code with a terminal command, Muse, OpenClaw, Hermes Agent and MiniMax Code from one pasted message, Kimi Code through a small plugin made for your site, n8n through OAuth2. The consent screen names the app and lets you grant full access, read-only or drafts only (a custom list of tools is set afterwards with Edit access); nothing is granted until you click Approve. Sign-in also works on subfolder installs, multisite subsites and hosts or Cloudflare rules that block
/.well-known/(all apps except Grok, which signs in only at the domain root). API keys remain for scripts, CI and editors without browser sign-in (Windsurf, Cline, Zed); on hosts that strip the Authorization header, send the key in anX-Cowboy-MCP-Keyheader. - Works locally too. Local, Studio, MAMP, DevKinsta, wp-env: terminal and IDE tools connect with no public URL; apps that can't sign in over local http get a one-click API key, and Claude Desktop connects through an
mcp-remotebridge the Connections tab generates for you. - Context-efficient.
tools/listreturns two gateway tools (cowboy_discover,cowboy_run); the agent discovers and runs the other tools on demand instead of loading 206 schemas into its context. On WordPress 6.9+ every tool is also acowboy-mcp/*ability for WP-CLI, REST and the official MCP Adapter β with undo. - Zero dependencies. Native WordPress APIs only β no Composer, no npm, no build step, no
wp-admin/includesat request time. Works on hosts without WP-CLI orshell_exec().
"More access than any other MCP offers, easy to use, LOVE the change journal and the checkpoints β safe if you break something." β WordPress.org review
Tool coverage
| Area | Tools | What the agent can do |
|---|---|---|
| Content | 5 posts/pages/CPTs Β· 4 taxonomies Β· 4 comments Β· 4 media Β· 6 menus Β· 1 options | draft, edit, schedule, publish; upload media, fix alt text; build nav menus |
| Gutenberg & Site Editor | 15 (8 on classic themes) | read a page as a block tree and edit it by path; block types, patterns, FSE templates/parts, global styles, navigations |
| Site administration | 5 users Β· 6 plugins Β· 5 themes Β· 4 files Β· 5 database Β· 4 WP-CLI/system Β· 1 site health | install/update/delete plugins & themes safely, manage roles, edit files in wp-content, repair tables, run WP-CLI |
| Diagnostics | 10 | error log, HTTP & email tests, hooks, transients, REST routes, thumbnails, rewrite rules, snapshot, Connection Doctor |
| Safety | 6 rollback Β· 2 batch/audit | list & undo changes, create/list/restore/delete checkpoints, batch execution, audit-log retrieval |
| WooCommerce | 40 | products & variations, orders & refunds, customers, coupons, tax/shipping/payment settings, reports |
| Wordfence | 17 | scans, blocks, firewall, live traffic, activity, settings |
| ACF / Elementor | 9 / 7 | field groups, fields, repeaters / templates, page content, global styles, widgets |
| Beaver Builder / SiteOrigin | 7 / 12 | builder pages, layouts with dry-run diff, modules, global settings / layouts and row/widget edits, prebuilt layouts, widgets, settings, Widgets Bundle activation |
| Revisions / Events | 3 / 13 | list, diff & restore post revisions / The Events Calendar events, venues, organizers + Events Calendar Pro recurrence |
| SEO / Cache / Forms | 4 / 4 / 1 | Yoast, Rank Math, All in One SEO & SEOPress meta read/write/audit / WP Rocket, LiteSpeed, W3TC / WPForms, Gravity Forms, CF7 |
Most other page builders are supported too: a builder that keeps its layout in post content or post meta is edited through the standard post tools, with the same dry run and per-change undo.
Plus 17 read-only resources (incl. wordpress://tools/catalog), 4 resource templates (wordpress://posts/{id}, wordpress://options/{name}, wordpress://plugins/{slug}, wordpress://users/{id}) and 8 workflow prompts with argument auto-completion. Integrations register only when their plugin is active.
Requirements
- WordPress 6.2+ (tested up to 7.2)
- PHP 8.0+
- A public HTTPS address for cloud apps (claude.ai, ChatGPT, Gemini, Grok, Perplexity, Muse, n8n Cloud); terminal tools also work on a local site, signing in through the browser or with a one-click API key
Installation
- Plugins β Add New, search for Cowboy MCP, install and activate β or download from WordPress.org.
- Open Settings β Cowboy MCP. The Connections tab has a panel for each app with its command or button pre-filled with your site's endpoint; most apps sign in through your browser.
- Need an API key instead (scripts, CI, editors without browser sign-in)? Create it in the app's panel (under Use an API key instead for apps that sign in). It is shown once and stored hashed.
Updates arrive through the normal WordPress updates screen.
Connect your app
Every app signs in through a consent screen on your own site; no API key to paste. The full matrix β plan gates, whether a local site works, and the date each row was last verified end to end β is at cowboymcp.com/connect.
| App | Plan needed | Button or command | Guide |
|---|---|---|---|
| Claude (claude.ai) | Any Claude plan; Free allows one custom connector. Team and Enterprise: an owner adds it first | Connections tab β Add to Claude | connect-wordpress-to-claude |
| Claude Desktop | Same as claude.ai | Connections tab β Add to Claude, or Plugins (or Customize β Connectors) β Add custom connector | connect-wordpress-to-claude-desktop |
| Claude Code | A Claude plan that includes Claude Code (Pro or Max), or API billing | Connections tab β Claude Code panel β run two lines (claude mcp add -s user, claude mcp login); on a subfolder site run claude mcp add, then /mcp β Authenticate; on an http:// local site the panel gives a one-click API key instead | connect-wordpress-to-claude-code |
| ChatGPT | A personal Plus account, or a Business, Enterprise or Edu workspace with the Create plugins with MCPs permission; on the web. No Developer mode | Connections tab β ChatGPT panel β copy the connection link and click Open ChatGPT, then Plugins β Add β Add custom MCP server β Create as a plugin | connect-wordpress-to-chatgpt |
| Codex CLI and app | A ChatGPT plan that includes Codex (Plus, Pro, Business, Enterprise or Edu), or an API key | Connections tab β Codex panel β one codex mcp add command | connect-wordpress-to-codex |
| Perplexity | Pro, Max or Enterprise. Free has no custom connectors | Connections tab β Open Perplexity, then Plugins (or Customize β Connectors) β Add custom β Add MCP connector | connect-wordpress-to-perplexity |
| Grok | Any, including the free plan | Connections tab β Open Grok, then grok.com/connectors β New Connector β Custom | connect-wordpress-to-grok |
| Gemini app | A personal Google account in the US, 18+, Gemini in English; no paid plan listed | Connections tab β Open Gemini, then Customize β Connectors β + Custom | connect-wordpress-to-gemini |
| Gemini CLI | A Google account; the free tier works | Connections tab β Gemini CLI panel β one gemini mcp add command, then /mcp auth | connect-wordpress-to-gemini |
| Muse (Meta) | Free; Meta offers Muse in the United States and Canada | Connections tab β Muse panel β Copy message, paste it into a new Muse chat | connect-wordpress-to-muse |
| Muse Code | Same Muse account | Connections tab β Muse Code panel β two commands: muse mcp add β¦ --user and muse mcp login | connect-wordpress-to-muse#muse-code |
| Cursor | Any Cursor plan | Connections tab β Add to Cursor | connect-wordpress-to-cursor |
| VS Code (GitHub Copilot) | Any Copilot plan, including Free | Connections tab β Install in VS Code | connect-wordpress-to-vs-code |
| n8n | Any n8n Cloud plan, or self-hosted n8n (Community Edition included) | Connections tab β n8n panel; add an MCP Client Tool node with an MCP OAuth2 credential | connect-wordpress-to-n8n |
| OpenClaw | A running OpenClaw gateway | Connections tab β OpenClaw panel β Copy message, paste into your OpenClaw chat; or openclaw mcp add + openclaw mcp login | connect-wordpress-to-openclaw |
| Hermes Agent | Hermes Agent by Nous Research; the chat path needs its connection tool, the terminal command works on every install | Connections tab β Hermes Agent panel β Copy message, paste into your Hermes chat; or one hermes mcp add β¦ --auth oauth | connect-wordpress-to-hermes-agent |
| Kimi Code (desktop app and CLI) | Any Kimi plan connects; using the tools needs a Kimi Code membership or another model provider set up in Kimi | Connections tab β Kimi Code panel β copy the plugin link, install it as a custom plugin and click Connect (CLI: /plugins install, then /mcp-config login) | β |
MiniMax Code (desktop app and mcode) | A MiniMax account; https sites or http://localhost | Connections tab β MiniMax Code panel β Copy message, paste it into a MiniMax Code chat, then Test connection (CLI: mcode mcp login) | β |
| DeepSeek Harness | DeepSeek Harness; connects with an API key kept in its own settings folder | Connections tab β DeepSeek Harness panel β one command saves the key, then paste the message | β |
Windsurf, Cline, Zed, LibreChat and any other Streamable HTTP client connect with a scoped API key (config blocks below); Opencode signs in with the same browser flow.
Connecting an agent
The endpoint is https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint (JSON-RPC 2.0 over Streamable HTTP, MCP 2025-11-25 and 2025-06-18).
Claude Code
claude mcp add -s user --transport http your-site https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint \
--header "Authorization: Bearer YOUR_API_KEY"
Claude desktop & web, ChatGPT (one-click, no key) β click Add to Claude / Open ChatGPT on the Connections tab (browser sign-in is switched on for you; for ChatGPT copy the connection link from its panel and paste it as a custom MCP server), approve the consent screen on your site (choose full, read-only or drafts-only access). Requires a public HTTPS site.
Claude Desktop on a local site β use the mcp-remote bridge config shown on the Connections tab (--allow-http is needed for any http address other than localhost):
{
"mcpServers": {
"your-site": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://yoursite.local/wp-json/cowboy-mcp/v1/endpoint", "--allow-http",
"--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer YOUR_API_KEY" }
}
}
}
Cursor / Windsurf (Devin Desktop) (~/.cursor/mcp.json, ~/.config/devin/mcp_config.json)
{
"mcpServers": {
"your-site": {
"url": "https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
Cline: add "type": "streamableHttp" to the entry. VS Code (.vscode/mcp.json): use servers instead of mcpServers and add "type": "http". Zed: put the same url + headers under context_servers in its settings.
Codex CLI β Codex reads the key each time it starts, so add the export to your shell profile too.
export COWBOY_MCP_API_KEY="YOUR_API_KEY"
codex mcp add your-site --url https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint --bearer-token-env-var COWBOY_MCP_API_KEY
Gemini CLI
gemini mcp add --scope user --transport http your-site https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint \
--header "Authorization: Bearer YOUR_API_KEY"
Gemini app, Grok, Perplexity, Meta Muse, OpenClaw, Hermes Agent, n8n (no key) β each has its own panel on the Connections tab: the cloud apps take your connection link as a custom MCP server, Muse, OpenClaw and Hermes take a message you paste into their chat, and n8n's MCP Client Tool node uses MCP OAuth2. All of them sign in on your site through the browser.
Any client that speaks Streamable HTTP with a Bearer header works the same way (n8n, Opencode, LibreChat, your own agent). Opencode: opencode mcp add your-site --url https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint --global --header "Authorization=Bearer YOUR_API_KEY" (leave out --global on Opencode 1.x). Step-by-step guides per client: cowboymcp.com.
Quick smoke test with curl
curl -s -X POST https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint \
-H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cowboy_run","arguments":{"tool":"wp_site_info","arguments":{}}}}'
Safety model
- Safe mode (default on): tools annotated
destructiveHintrefuse to run until the call is resent withconfirm: true; the refusal includes a preview. - Dry run: every non-read-only tool accepts
dry_run: trueand returns a preview without changing anything: the planned call, plus a resolved plan for plugin and theme installs, updates and deletes, single-post search-replace and settings changes. - Undo journal: before-state snapshots for journaled changes (posts, options, users, media, menus, terms, comments, WooCommerce objects, SEO meta, Gutenberg/FSE edits, search-replace rows, plugin/theme packages);
wp_list_changes/wp_undo_change, batch undo, conflict detection, redo-on-undo; 7-day retention by default. - Database checkpoints: prefix-scoped dump of the site's tables, atomic restore; up to 5 kept; taken automatically before plugin/theme updates and mutating WP-CLI commands. Checkpoints restore tables, not uploaded files or code.
- Audit log: every tool call, error and auth event in
{prefix}cowboy_mcp_audit_log(key, tool, arguments, result, IP); pruned after 30 days; secrets redacted on read. - Scoped credentials: API keys and OAuth connections carry
{mode: full|read_only|drafts|custom, allowed_tools[]}; enforced at dispatch, also for tools called throughcowboy_runand batches.readOnlyHintis treated as a security boundary. - Keys & limits: keys stored as one-way hashes, shown once, revocable individually; per-key rate limit (120/min default); request
Originallowlist; OAuth tokens stored hashed, off by default, admin consent required. - Guardrails: protected-option denylist (
siteurl,active_plugins, credentials, the plugin's own settingsβ¦), dangerous-SQL and WP-CLI blocklists (eval,shell,db drop, β¦) applied on a shell-style tokenizer, SSRF validation on outbound requests,wp-contentpath confinement with atomic writes, a PHP syntax check before every file write and nomu-pluginswrites without Power mode, self-delete and last-administrator protection. - Power mode: an admin-only checkbox that lifts the curated guardrails for one-off jobs; it can never be enabled through the API, and it never lifts credential-option protection, secret redaction or self-protection.
- Connection Doctor: one-click self-test (HTTPS, reachability, REST, OAuth discovery, host blockers such as Cloudflare challenges, ModSecurity-style WAFs, LiteSpeed caching) with fingerprinted causes and fixes; also
wp cowboy-mcp doctorand thewp_connection_doctortool.
How it compares
Factual, dated comparisons live on the site: all WordPress MCP plugins compared Β· vs Novamira Β· vs AI Engine Β· vs WPVibe Β· vs InstaWP Β· vs the WordPress MCP Adapter Β· self-hosted vs hosted. Short version: the endpoint is self-hosted with no relay or metering, every tool is free, and undo + checkpoints + audit log ship together.
Architecture
cowboy-mcp.php # entry point, constants, activation/uninstall
includes/
class-mcp-transport.php # REST route, JSON-RPC dispatch, sessions (Streamable HTTP)
class-mcp-auth.php # API keys (hashed), Bearer validation, rate limits, Origin allowlist
class-mcp-oauth.php # OAuth 2.1 authorization server (discovery, DCR, consent, tokens)
class-mcp-security.php # denylists, SSRF, SQL/WP-CLI gates, scoping, secret scrubbing
class-mcp-tools.php # registry, gateway meta-tools, dispatch, lazy domain loading
class-mcp-rollback.php # undo journal class-mcp-checkpoint.php # DB checkpoints
class-mcp-audit-log.php # audit table class-mcp-installer.php # WP.org package installer
class-mcp-doctor.php # Connection Doctor class-mcp-compat.php # admin-free reimplementations
class-mcp-resources.php / class-mcp-prompts.php / class-mcp-completion.php
tools/{core,gutenberg,acf,woocommerce,seo,forms,cache,elementor,beaver-builder,siteorigin,wordfence,events,abilities}/
admin/ # settings page (Connections, Activity, Logs, Settings, About), assets
languages/ # 12 bundled locales for the admin UI (ru, uk, zh_CN, ja, ko, es, fr, de, pt_BR, it, hi, id)
Tool descriptions and error messages returned to agents are intentionally English; the admin UI is translated.
Extensibility
cowboy_mcp_toolsfilter β register your own tool definitions and handlers.cowboy_mcp_tool_allowedfilter β block specific tools per request.cowboy_mcp_allowed_originsfilter β extend the requestOriginallowlist.
Development
npx wp-env start # local WordPress at http://localhost:8890 with this checkout mounted as the plugin
CLI="$(docker container ls -q --filter 'name=^[0-9a-f]+-cli-1$')"
docker exec "$CLI" wp plugin check cowboy-mcp --format=csv # Plugin Check (install it in wp-env first)
find . -name '*.php' -not -path './node_modules/*' -exec php -l {} + # syntax check
No build step. Pull requests welcome β keep the WordPress.org review invariants (no wp-admin/includes requires, no path constants, prepared/validated $wpdb queries, escaped output).
Support, reviews, security
- Questions and connection problems: the WordPress.org support forum β paste your Connection Doctor report; topics are usually answered within a day.
- Bugs and feature requests: GitHub issues.
- Security issues: please report privately through this repository's Security tab (private vulnerability reporting) rather than a public issue.
- Reviews: if Cowboy MCP saves you time, a review on WordPress.org helps other site owners find it.
License
GPL-2.0-or-later. Β© Andrew Ivanov (februality).
Frequently asked questions
What is Cowboy MCP Server?
Self-hosted WordPress MCP server with 206 tools and per-change undo. OAuth sign-in or API key. Free.
How do I install Cowboy MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Cowboy MCP Server connects to the remote endpoint https://{site_host}/wp-json/cowboy-mcp/v1/endpoint, so there is nothing to install locally.
Is Cowboy MCP Server free and open source?
Yes. Cowboy MCP Server is released under the GPL-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Cowboy MCP Server support remote (HTTP) connections?
Yes. Cowboy MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does Cowboy MCP Server provide?
Cowboy MCP Server provides 1 tool: WooCommerce. See the full tool list for descriptions and parameters.
How is Cowboy MCP Server's trust score calculated?
Cowboy MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetβBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.