| 开发者 | februality |
|---|---|
| 更新时间 | 2026年9月13日 02:33 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
"More access than any other MCP offers, easy to use, LOVE the change journal and the checkpoints - safe if you break something, without having to run back ups on the host or yet another plugin." - a WordPress.org reviewerAsk in plain language - "publish these three drafts," "why is the checkout page 500-ing," "bump every Summer Sale price 20%," "clear the cache and re-check site health" - and your agent gets it done. Most WordPress AI plugins let an assistant write blog posts. Cowboy MCP lets your agent actually run the site: content, yes, but also the terminal-level work you would normally stop and do by hand - WP-CLI, files, the database, error logs, and diagnostics. When something breaks, your agent can find it and fix it instead of just apologizing. Try it without installing anything: click Live Preview above to open a throwaway WordPress Playground site with Cowboy MCP already active. What you can do with it
wp-content, and take site snapshots before big changes.cowboy-mcp/* ability, so WP-CLI (wp ability run), the REST API, the official MCP Adapter and WordPress's own AI tooling can call it - with safe mode, the audit log and undo still in front. Abilities other plugins register (WooCommerce, the AI plugin's core abilities, core) show up as tools for your agent automatically.cowboy_discover + cowboy_run), so your agent stays sharp and accurate with a big toolset and picks the right action the first time.mcp-remote bridge shown on the Connection tab instead.
Connect ChatGPT to WordPress
ChatGPT connects to your site as a custom connector (Developer Mode) using the same one-click sign-in. It needs a public HTTPS site because ChatGPT connects from OpenAI's servers. The Connection tab walks through the steps.
Connect Cursor, Windsurf, Cline, Zed and VS Code
Add one block to your editor's MCP config (for Cursor, ~/.cursor/mcp.json):
{
"mcpServers": {
"your-site": {
"url": "https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
Any client that speaks Streamable HTTP with a Bearer header works the same way.
Connect Codex CLI
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
Connect Gemini CLI
gemini mcp add --transport http your-site https://yoursite.com/wp-json/cowboy-mcp/v1/endpoint --header "Authorization: Bearer YOUR_API_KEY"
n8n, Opencode and other MCP clients
Cowboy MCP is a standard Streamable HTTP MCP server (JSON-RPC 2.0). Point any MCP client - n8n, Opencode, LibreChat, your own agent - at /wp-json/cowboy-mcp/v1/endpoint with an Authorization: Bearer header.
Local development sites
Local, Studio, MAMP, DevKinsta, wp-env, Docker - it works the same. Terminal tools (Claude Code, Cursor, Codex, Gemini CLI) run on the same computer as your local site and connect with an API key exactly like on a live site, no public URL or tunnel needed. Claude Desktop connects through the mcp-remote bridge; the Connection tab detects local sites and shows the ready-to-copy config. Only the cloud apps - claude.ai and ChatGPT - need a public HTTPS address.
Built for live sites
You are handing an AI real control, so Cowboy MCP is built to keep you in charge:
wp-content with a syntax check on every PHP write and no writes to mu-plugins, self-delete and last-administrator protection, and a Power mode for the rare job that needs the gloves off - which only a human can switch on in wp-admin. The agent can never grant itself more power through Cowboy's own tools, and abilities from other plugins cannot touch Cowboy's credentials or settings either.mcp-remote bridge shown on the Connection tab.)
Cursor, Codex, Gemini CLI, ChatGPT and other clients: the Connection tab shows a ready-to-copy setup for each, and the connection guides at cowboymcp.com walk through every client step by step.The Model Context Protocol is an open standard that lets AI agents use external tools. Cowboy MCP turns your WordPress site into one of those tools, so your agent can act on it directly.
Any MCP-compatible client over Streamable HTTP - including Claude Code, the Claude desktop and web apps, ChatGPT, Cursor, Windsurf, Cline, Zed, VS Code, Codex CLI, Gemini CLI, Opencode and n8n.
Install Cowboy MCP, generate an API key under Settings > Cowboy MCP, and add your site to Claude Code with one command - shown ready to copy on the Connection tab. For the Claude desktop and web apps, enable the Desktop Connector and approve the one-click sign-in; no terminal needed. ChatGPT, Cursor, Codex and other clients have step-by-step guides on the same tab.
No. Every tool, every integration and every safety feature is in this free plugin, licensed GPL-2.0. There is no Pro tier, no credit system and no usage cap beyond the per-key rate limit you set yourself.
No. The MCP endpoint runs inside your WordPress install and your AI client connects to it directly. There is no hosted relay, no account with us and no telemetry.
Yes. Terminal tools like Claude Code, Cursor, Codex and Gemini CLI run on the same computer as your local site, so they connect with an API key exactly like on a live site - no public URL needed. Claude Desktop connects through a small local bridge (mcp-remote); the Connection tab detects local sites and shows the ready-to-copy config. Only the cloud-side apps - claude.ai and ChatGPT - require a public HTTPS address, because they connect from the vendor's servers; a tunnel works for temporary testing, but be aware it exposes your whole dev site while it runs.
Yes. When WooCommerce is active, 40 store tools light up: products and variations, orders and refunds, coupons, customers, stock, shipping zones, tax rates, payment gateways, and sales reports - so your agent can run the store, not just describe it.
Yes, with care. You are handing an AI real control, so Cowboy MCP is built to keep you in charge: keys are hashed and shown once, requests are rate-limited, destructive actions need confirmation, and changes can be previewed before they run. Each API key and connection can also be scoped to read-only access or a hand-picked list of tools. If a change turns out wrong, you can usually undo it - or restore the database to an earlier checkpoint - from the Activity tab, and every action is written to an audit log. Review it regularly.
Content, options, users, media deletions, menus, terms, comments, WooCommerce objects, SEO meta, Gutenberg and Site Editor edits, search-replace runs, and plugin or theme installs, updates and deletions are journaled with a before-state snapshot and can be undone individually (or as a batch) within the retention period - seven days by default. Database checkpoints roll back every site table to an earlier moment. Things with no inverse - a sent email, a cache flush, an arbitrary WP-CLI command, an outbound HTTP request - are recorded as not undoable rather than pretended otherwise; take a checkpoint first when you ask for those.
Yes. Every API key and every OAuth connection carries a scope: full access, read-only, or a custom list of allowed tools, chosen when the key is created or the connection is approved. Safe mode adds confirmation for destructive tools on top, and the most powerful operations stay locked behind Power mode, which only an administrator can enable in wp-admin.
Run the Connection Doctor on the Connection tab. It tests HTTPS, reachability, the REST API, OAuth discovery and the common host blockers (Cloudflare challenges and "Block AI bots" rules, web application firewalls such as ModSecurity, LiteSpeed caching of /wp-json/), names the exact thing in the way, and gives you a fix. If you are still stuck, paste the report into a new topic in the support forum.
Cowboy MCP lists two gateway tools (cowboy_discover and cowboy_run) instead of dumping 168 schemas into your agent's context; the agent discovers the tools it needs on demand. Ask it to "discover tools for WooCommerce" or read the wordpress://tools/catalog resource. If even the two gateway tools are missing, the key's scope may be empty - check it on the Connection tab.
Pretty much - it does what Novamira does, but all of it is free and built for live sites. Every tool is included, there is no Pro tier, and every change your agent makes can be undone. See the full Cowboy MCP vs Novamira comparison.
The Abilities API (WordPress 6.9+) and the official MCP Adapter are a framework: plugins register abilities, and the adapter exposes whatever was registered. Cowboy MCP is a complete, turnkey MCP server with its own toolset, safety layer, undo, audit log, scoping, OAuth connector and Connection Doctor, and it runs on WordPress 6.2 or later without Composer or Node.js. You can run both side by side.
Yes - that is what it is built for. Your agent can write and edit theme and plugin code in wp-content, run WP-CLI, and read the error log to fix what it broke. Every PHP file is syntax-checked before it lands, and mu-plugins (which WordPress recovery mode cannot pause) stays off-limits unless an administrator turns on Power mode - so a cut-off or broken payload cannot take the site down. Take a database checkpoint first (or let auto-checkpoint do it), and every change lands in the undo journal - so vibe coding a live site does not have to be a leap of faith.
No telemetry and no phone-home - your data stays on your server. The only outbound connections are to WordPress.org, when your agent installs or updates plugins and themes, plus any HTTP requests you explicitly ask your agent to make.
Cowboy MCP is built for single sites and is not network-aware. On a multisite network, activate it on each site you want an agent to manage (not network-wide) and generate keys on that site; its plugin tools do recognise network-activated plugins when activating or deactivating.
No. Publishing content and running your store work through plain conversation. The developer tools (WP-CLI, files, database) are there when you want them, and gated behind safe mode until you say go.
Yes, both ways, on WordPress 6.9 or newer. Every allowed tool is registered as a cowboy-mcp/* ability (for example cowboy-mcp/wp-update-post), so wp ability run cowboy-mcp/wp-update-post --input='{"post_id":5,"title":"New"}' --user=admin, the core REST endpoint /wp-json/wp-abilities/v1/abilities/cowboy-mcp/wp-update-post/run, the official MCP Adapter's discover/execute tools and the AI plugin's Abilities Explorer all reach it - and every call still goes through safe mode, dry run, the audit log and the undo journal (the result includes a change_id). Read-only tools use GET, destructive-and-idempotent tools use DELETE, everything else POST; for GET and DELETE pass input as query parameters (?input[post_id]=5&input[confirm]=true), for POST as JSON ({"input":{...}}). Callers need an administrator account; wp_cli and wp_write_file are only exposed while Power mode is on. In the other direction, abilities registered by other plugins (WooCommerce, the AI plugin's core abilities, core) appear as tools in the abilities category for your agent; they run their own permission checks and are not undoable. Both directions have a switch under Settings.