---
title: "Connect Cursor to WordPress Studio"
description: "Install the WordPress Studio plugin in Cursor, and Cursor’s agent can create, run, and change your local WordPress sites next to the rest of your code."
sidebar:
  label: "Cursor"
---

The plugin adds WordPress Studio’s Model Context Protocol (MCP) server, named `wordpress-studio`, and the WordPress Studio skills to Cursor. It carries its own WordPress Studio CLI, so you don’t need anything else. Cursor shows the plugin as WordPress-Studio, after the folder it’s installed in.

**Applies to:** the Cursor desktop app on macOS, Windows, or Linux. The steps match WordPress Studio 2.5.0, and the WordPress Studio app is optional. 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

- Cursor, installed.
- To install from the terminal, Git and Node.js 22 or later on your `PATH`. A plugin installed from the WordPress Studio app runs with the app’s own Node.js.

## Install the plugin from WordPress Studio

1.  In WordPress Studio, open **Settings** from the account menu at the bottom of the sidebar, or press ⌘, (Ctrl+, on Windows and Linux).
2.  Select **Agents**.
3.  Next to **Cursor**, click **Install**. WordPress Studio copies the plugin to `~/.cursor/plugins/local/WordPress-Studio` and opens the plugin’s page in Cursor.
4.  Restart Cursor, or run **Developer: Reload Window** from the Command Palette.

A plugin installed this way updates itself when WordPress Studio updates.

## Install the plugin from the terminal

On macOS or Linux, run these commands in your terminal:

```bash
git clone --depth 1 https://github.com/Automattic/studio-plugins
mkdir -p ~/.cursor/plugins/local
cp -R studio-plugins/wp-studio ~/.cursor/plugins/local/WordPress-Studio
```

Then restart Cursor, or run **Developer: Reload Window**. Keep the folder name `WordPress-Studio`, because Cursor names a local plugin after its folder.

To update the plugin later, replace the `~/.cursor/plugins/local/WordPress-Studio` folder with the `wp-studio` folder of a newer clone.

On a Cursor Teams or Enterprise plan, an admin can import `Automattic/studio-plugins` as a team marketplace instead.

## Add only the MCP server

If you already have the [WordPress Studio CLI](/docs/cli/) on your `PATH`, you can add the MCP server without the plugin’s skills. Add this to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json` for every project:

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

If the file already has an `mcpServers` key, add the `wordpress-studio` entry inside it. The agent still gets WordPress Studio’s skills and rules, over the MCP Skills extension when the agent supports it, or through the `studio_instructions` tool.

## Check that Cursor is connected

1.  Open a new chat with Cursor’s 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 in the chat 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.”
- “Scaffold a block theme for Coffee Shop and activate it.”
- “Install WooCommerce on Coffee Shop and add three sample products.”
- “Check how fast the home page of Coffee Shop loads.”
- “Export Coffee Shop to a backup file.”

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

## Troubleshooting

### Why does the Agents page say Not installed next to Cursor?

WordPress Studio didn’t find Cursor. On macOS, it looks for `Cursor.app`. On Windows, it looks in the Cursor folders under Program Files and your local programs folder. On Linux, it looks for `cursor` on your `PATH`. Install Cursor, then open the **Agents** page again, or install the plugin from the terminal.

### Why doesn’t Cursor see WordPress Studio after I install the plugin?

Cursor loads a local plugin when its window loads. Restart Cursor, or run **Developer: Reload Window**. Check that the plugin is in `~/.cursor/plugins/local/WordPress-Studio`, not in a folder with another name or behind a symbolic link.

### Why does the WordPress Studio server fail to start?

A plugin installed from the terminal runs with the Node.js on your `PATH`, which must be version 22 or later. Run `node --version` to check it. Update Node.js, or install the plugin from the WordPress Studio app, which uses the app’s own Node.js.

### Why doesn’t the server in my mcp.json start?

An MCP server entry that runs `studio` needs the WordPress Studio CLI on the `PATH` Cursor starts with. Install the CLI, then restart Cursor. If Cursor still doesn’t find it, put the full path of `studio` in `command`. Run `which studio` on macOS or Linux, or `where.exe studio` in PowerShell or Command Prompt on Windows, to get it.

## 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/)
- [Agent Skills in WordPress Studio](/docs/agent-skills-wordpress-studio/)
- [WordPress Studio CLI](/docs/cli/)
- [Cursor MCP documentation](https://cursor.com/docs/mcp#installing-mcp-servers)
