How to connect WordPress to Cursor

Connect Cursor to your WordPress site with the free Llamly MCP plugin, right inside your code editor. Add an access key to ~/.cursor/mcp.json and restart Cursor.

With the free Llamly MCP plugin, Cursor’s agent can work on your WordPress site right inside your code editor: create and edit pages and posts, change Gutenberg blocks, upload media, organize menus and categories, and undo its own changes. You create an access key in wp-admin and add it to Cursor’s MCP configuration file. It works with a WordPress site on your computer too.

What you need

  • A WordPress site where you can install plugins (public or local).
  • Cursor installed.

Steps

  1. Install Llamly MCP from Plugins › Add New in wp-admin and activate it.
  2. Open Llamly › Connections and choose Cursor.
  3. Create an access key. Give it a name (for example “Cursor · my computer”) and choose the access: full access, read only, or chosen tools by category. Click Create key. It’s shown only once, so copy it now.
  4. Add it to the configuration file. Add the snippet from the recipe to ~/.cursor/mcp.json (create the file if it doesn’t exist) and restart Cursor. The recipe fills in your site and key; it looks like this:
{
  "mcpServers": {
    "my-site": {
      "url": "https://your-site.example/wp-json/llamly/v1/endpoint",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}
  1. Check that it works. Open Customize in the Cursor sidebar. Your site should show up turned on. If something goes wrong, errors are in Output › MCP Logs.

Prefer signing in through the browser, without a key? Cursor also accepts OAuth sign-in. In the recipe, open new connections for 30 minutes, add only the address to ~/.cursor/mcp.json ({ "mcpServers": { "my-site": { "url": "https://your-site.example/wp-json/llamly/v1/endpoint" } } }) and approve access on your site when Cursor asks. This needs your site on a public HTTPS address.

Your first request

Ask Cursor’s agent:

List the drafts on my site that haven’t been published yet.

After the first request, Llamly marks Cursor as connected and the request shows up in Llamly › Logs.

What Cursor can and can’t do on your site

It works with your WordPress content permissions, never administrator ones: no site settings, users, plugins, themes, code files, SQL or shell on the server. Every change is listed in Llamly › Activity with an Undo button, and safe mode makes the agent confirm before it deletes something or undoes a change.

Watch the tutorial

The 2-minute video walks through a connection from install to first request: watch it on YouTube.

Get Llamly MCP

Llamly MCP is free on WordPress.org. Download Llamly MCP from WordPress.org. Using another app? Compare all apps.