How to connect your WordPress site to Kimi Code
Want Kimi Code to work on your WordPress site? Install one free plugin on your site, add a small Kimi plugin made for it, click Connect and approve the sign-in on your own site. No API key to copy. It works in the Kimi Code desktop app and in the kimi CLI, on live sites and local ones. This is one of the newer connections, marked Beta on the Connections tab. New to MCP? Start with the WordPress MCP server guide. Added in Cowboy MCP 1.7.10.
What can Kimi Code do on your WordPress site once it's connected?
Once connected, Kimi Code acts on your WordPress site with real tools. It does the work itself instead of handing back code for you to paste. Ask in plain English and it can draft posts, update products, check plugins, or read the error log to explain what broke. Cowboy MCP exposes 206 WordPress tools that Kimi calls through two gateway tools.
How do you connect the Kimi Code desktop app to WordPress?
Connecting takes four short steps and no code. Install the free Cowboy MCP plugin, copy the plugin link from the Kimi Code panel on the Connections tab under Settings → Cowboy MCP, install it in Kimi Code and click Connect. Kimi signs in with browser sign-in, and nothing is allowed until you click Approve on your own site.
- 1
Install the free plugin
In WordPress, go to Plugins → Add New, search for Cowboy MCP, and click Install then Activate.
- 2
Copy the plugin link
Open Settings → Cowboy MCP, pick Kimi Code under No terminal needed on the Connections tab, and click Copy link. The link downloads a small Kimi plugin made for your site, from /wp-json/cowboy-mcp/v1/clients/kimi-code-plugin. Copying it turns on browser sign-in and opens a 30-minute window for new connections.
- 3
Install it in Kimi Code
In Kimi Code, open Settings → Plugins → Install custom plugin (Settings is the gear next to your name), paste the link and click Install. Kimi lists it under your site's name followed by “(Cowboy MCP)”.
- 4
Connect and approve
Open the new plugin and click Connect next to your site. Your browser opens a sign-in page on your site: pick full access, read-only, drafts only, or a custom list of tools, and click Approve. The plugin then shows Connected.
To check it worked, start a new chat and paste the test prompt from the panel: “Using cowboy-example-com, tell me this site's name and WordPress version. Don't change anything.” (with your own site's name in place of example-com). The desktop app asks you to open a project folder and trust it before your first message. Connecting works on any Kimi plan, but using the tools needs a Kimi Code membership or another model provider set up in Kimi. Need a headless setup? The same panel has Use an API key instead of the plugin.
How do you connect the Kimi Code CLI?
The CLI uses the same plugin link. Pick Kimi Code CLI under Terminal & IDE tools on the Connections tab, type kimi to start it, and send each of the panel's three lines as its own message. For a site at example.com they read:
/plugins install https://example.com/wp-json/cowboy-mcp/v1/clients/kimi-code-plugin, then choose Trust and install./new/mcp-config login plugin-cowboy-example-com:example-com, then choose Approve once. Your browser opens the sign-in page on your site; click Approve.
Then run /new and /mcp: plugin-cowboy-example-com:example-com should be listed as connected. If Kimi answers that there is nothing to log in to, run /new once more and repeat the last line. Already connected in the desktop app? You're done: both apps share the same connection.
Prefer a config file? The panel also shows a ~/.kimi-code/mcp.json entry with just your endpoint URL; add it, then run /new and /mcp-config login example-com. Using the Kimi Code extension in VS Code? Add the server from its MCP settings, then choose Auth.
Using Kimi models in another app?
This guide is for Kimi Code, Moonshot's own coding agent. If you run Kimi, DeepSeek, MiniMax, Qwen or GLM models inside another agent, connect through that app's panel instead: Claude Code, Codex, OpenClaw, Hermes Agent, or Opencode (see every app compared). The model you pick doesn't change the setup. Using MiniMax's or DeepSeek's own agents? See MiniMax Code and DeepSeek Harness.
Does Kimi Code need a public site?
No. Kimi Code runs on your computer, so it reaches your site from there. Cowboy MCP publishes a Streamable HTTP endpoint as an ordinary WordPress REST route at /wp-json/cowboy-mcp/v1/endpoint, so Kimi talks to your site directly, with no proxy, relay or third-party service in between. A site on Local, Studio, MAMP or Docker works as well as a live one. The plugin is itself the MCP server; the local WordPress MCP guide covers the local-site details.
Is it safe to let Kimi Code work on your live WordPress site?
Yes, with the same guardrails the plugin applies to every client. Approve read-only or a custom list of tools if Kimi only needs some of them. Safe mode is on by default, so destructive tools ask before they run. Any write can be previewed as a dry run, every change lands in an undo journal you can roll back, and requests are rate-limited to 120 per minute. You can revoke the connection any time under Connected apps. More on security →
Questions, answered.
Which Kimi plan do I need?
Connecting works on any plan. Using the tools is another matter: the Free plan can't run Kimi models, so you need a Kimi Code membership or another model provider set up in Kimi. Cowboy MCP itself is free on WordPress.org.
Why does Kimi Code install a plugin instead of adding a server?
In the Kimi Code desktop app, a plugin's Connect button is the one place that opens a browser sign-in. A server added to its MCP settings by hand never shows its sign-in link there. So the Connections tab gives you a link to a small Kimi plugin built for your site. It holds only your site's address and the sign-in method, with no key or password in it.
I connected in the desktop app. Do I need to connect the CLI too?
No. The desktop app and the kimi CLI keep their plugins and sign-ins in the same folder, so one sign-in serves both. If the desktop app doesn't list a plugin you installed from the CLI, restart it: it reads its plugin list when it starts.
Does it work with a local WordPress site?
Yes. Kimi Code runs on your computer, so it reaches a site on Local, Studio, MAMP or Docker with no public address, and the plugin link installs over plain http too. Local https sites usually use a self-signed certificate, which Kimi Code rejects until you trust it.
The CLI says there is nothing to log in to. What now?
Run /new once more and repeat the /mcp-config login line. A session started right after the plugin install can miss the sign-in tool; a fresh session has it. After you approve, run /new again before you ask for anything, because the session that ran the login can't call the new tools.
Kimi Code shows only two tools. Is that right?
Yes. Cowboy MCP exposes two gateway tools, cowboy_discover and cowboy_run, instead of loading every schema into Kimi's context. Ask it to “discover tools for WooCommerce” and it finds the rest. If even those two are missing, check the connection's scope under Connected apps on the Connections tab. Still stuck? Ask in the support forum (opens in new tab).
Ready to connect Kimi Code to your WordPress site?
Install the free plugin, copy the plugin link, install it in Kimi Code and click Connect. It works on any self-hosted WordPress site running version 6.2 or newer on PHP 8.0+. The same site also connects to Claude Code, Codex and Cursor.