---
title: "Connect other AI agents to WordPress Studio"
description: "Add WordPress Studio’s MCP server to Claude Desktop, Visual Studio Code, Windsurf, or any agent that supports MCP, with a server entry that runs studio mcp."
sidebar:
  label: "Other agents"
---

The Model Context Protocol (MCP) is a standard way for AI agents to use outside tools. WordPress Studio’s MCP server, named `wordpress-studio`, runs on your computer as a local stdio server: the agent starts `studio mcp` and talks to it over standard input and output. This page covers agents that the WordPress Studio plugin doesn’t. For Claude Code, Codex, Cursor, Grok Build, and Google Antigravity, the plugin is quicker. See [MCP on WordPress Studio](/docs/mcp-on-studio/#choose-your-agent).

**Applies to:** any agent app that supports local stdio MCP servers, on the same computer as your sites. The steps match WordPress Studio 2.5.0. You need the WordPress Studio CLI. You don’t need a WordPress.com account for local sites. To work on WordPress.com sites, create previews, or publish, log in to WordPress.com when the agent asks.

## Before you start

- An agent app that supports MCP, installed on the same computer as WordPress Studio.

## Install the WordPress Studio CLI

The MCP server is part of the WordPress Studio CLI. If `studio --help` already works in your terminal, skip to the next section.

1.  In WordPress Studio, open **Settings** and select **Agents**.
2.  Under **Manual MCP setup**, click **Copy install command**. It copies `npm install -g wp-studio`.
3.  Run the copied command in your terminal.
4.  Run `studio --help`. The CLI prints its commands.

You can also turn on the CLI in the WordPress Studio app or use the standalone installer. See [Install the WordPress Studio CLI](/docs/cli/#installation).

## Add the MCP server to your agent

Every agent below uses the same server: a stdio server named `wordpress-studio` that runs the command `studio` with the argument `mcp`. To copy it, click **Copy MCP configuration** under **Manual MCP setup** on the **Agents** page, or run `studio mcp` in a terminal, which prints the setup commands and configuration:

```json
{
  "wordpress-studio": {
    "command": "studio",
    "args": ["mcp"]
  }
}
```

Most agents read this entry under an `mcpServers` key. If the agent’s configuration file already has an `mcpServers` key, add the `wordpress-studio` entry inside it.

### Claude Desktop

Use this configuration for regular chats in the Claude desktop app. For the **Code** tab and Cowork tasks, install the plugin instead. See [Connect Claude Code to WordPress Studio](/docs/mcp-on-studio/claude-code/).

1.  Open the Claude desktop app’s configuration file. On macOS, it’s `~/Library/Application Support/Claude/claude_desktop_config.json`. On Windows, it’s `%APPDATA%\Claude\claude_desktop_config.json`.
2.  Add the `wordpress-studio` entry under `mcpServers`, as shown below.
3.  Save the file.
4.  Quit and reopen the Claude desktop app.

```json
{
  "mcpServers": {
    "wordpress-studio": {
      "command": "studio",
      "args": ["mcp"]
    }
  }
}
```

See [Connect to local MCP servers](https://modelcontextprotocol.io/docs/develop/connect-local-servers) for Claude Desktop’s own steps.

### Visual Studio Code

These steps add the server for GitHub Copilot in Visual Studio Code, in your personal configuration.

1.  Open the Command Palette and run **MCP: Add Server**.
2.  Choose **Command (stdio)**.
3.  Enter `studio mcp` as the command.
4.  Enter `wordpress-studio` as the server ID.
5.  Choose **Global** to use the server in every workspace.

Visual Studio Code names its options differently between versions. See [Add and use MCP servers in VS Code](https://code.visualstudio.com/docs/copilot/customization/mcp-servers) for the current steps.

### Windsurf

1.  Open Windsurf’s MCP configuration file. See [Windsurf’s MCP documentation](https://docs.windsurf.com/windsurf/cascade/mcp) for where it is.
2.  Add the `wordpress-studio` entry under `mcpServers`, as shown for Claude Desktop above.
3.  Save the file, then restart Windsurf.

### Another agent

1.  Find where your agent adds a local or stdio MCP server, in its settings or its configuration file.
2.  Add a server named `wordpress-studio` that runs the command `studio` with the argument `mcp`.
3.  Restart the agent, or start a new session.

## Check that the agent is connected

1.  Start a new chat or session in the agent.
2.  Ask: “List my WordPress Studio sites.” The agent calls WordPress Studio’s `site_list` tool, then lists your sites or says you don’t have any yet.

An answer without a WordPress Studio tool call doesn’t confirm the connection. Expand the tool call to check which tool ran.

## Try these prompts

- “Build a WordPress site for my bakery, with a menu page and opening hours.”
- “Start my site Coffee Shop and take a screenshot of its home page.”
- “Install WooCommerce on Coffee Shop and add three sample products.”
- “Run an SEO audit on the home page of Coffee Shop.”
- “Check how fast the home page of Coffee Shop loads.”

Replace Coffee Shop with the name of one of your sites.

## Troubleshooting

### Why doesn’t my agent start the WordPress Studio server?

The agent can’t find the `studio` command. Apps started from the Dock, the Start menu, or a desktop launcher often don’t get the `PATH` your terminal has. Run `which studio` on macOS or Linux, or `where.exe studio` in PowerShell or Command Prompt on Windows, and put that full path in `command` instead of `studio`. In JSON, escape each Windows backslash as `\\`. Then restart the agent.

### Why does studio mcp print instructions instead of starting a server?

When you run `studio mcp` in a terminal, it prints the setup commands and configuration for agents. It starts the MCP server only when an agent runs it. Add it to your agent’s configuration instead of running it yourself.

### Why doesn’t my agent see WordPress Studio after I change its configuration?

Most agents read their MCP configuration when they start. Restart the agent, or start a new session. Check that the file is valid JSON, with the `wordpress-studio` entry inside `mcpServers`.

## Related

- [MCP on WordPress Studio](/docs/mcp-on-studio/)
- [Connect Claude Code to WordPress Studio](/docs/mcp-on-studio/claude-code/)
- [Connect Codex to WordPress Studio](/docs/mcp-on-studio/codex/)
- [Connect Cursor to WordPress Studio](/docs/mcp-on-studio/cursor/)
- [Connect Grok Build to WordPress Studio](/docs/mcp-on-studio/grok-build/)
- [Connect Google Antigravity to WordPress Studio](/docs/mcp-on-studio/antigravity/)
- [WordPress Studio CLI](/docs/cli/)
