How to connect Cursor to WordPress

Give Cursor access to your WordPress site with HyIMPACT, so it can work on pages, builders and SEO while you code.

Cursor · new sessionExample
Hy
Hy

“List the tools from my WordPress server.”

MCP
hyimpact-example-test connectedServer from HyIMPACT → Configuration · example-roofing.test
ContentPosts, pages, menus, media
BuilderElementor elements, classes, variables
SEOTitles, meta, schema, redirects
GoogleGA4, Ads and Tag Manager tags
SafetyProduction mode on · writes logged
Which pages does my site have?
On this page
  1. ✓Before you start
  2. 1Turn on AI abilities
  3. 2Create an application password
  4. 3Add the server to Cursor
  5. 4Reload and test
  6. !Common errors
  7. ?Cursor questions
Answer firstTurn on AI abilities in HyIMPACT, create an application password, then paste the setup prompt into Cursor’s agent or add the snippet to mcp.json.

Before you start

  • A WordPress site on HTTPS, with HyIMPACT installed
  • An administrator login
  • Cursor on your computer
  • Node.js (the Cursor setup runs the connector with npx)
  1. Step 1: Turn on AI abilities

    In WP Admin, open HyIMPACT → Configuration. Tick "Turn on AI Abilities for this site" and choose Save Settings. Your browser asks you to confirm: choose OK. Steps 2 and 3 appear once the setting is saved.

    Example
    HyIMPACT Configuration screen with Turn on AI Abilities for this site ticked
    Step 1 on a test site. The Environment line shows how HyIMPACT reads the site. On production the development abilities stay off.
  2. Step 2: Create an application password

    Under Application Password, choose "Generate application password". HyIMPACT creates the password for your user, shows it once and adds it to the setup text in step 3. To tell your passwords apart later, first open "Customize password name (optional)" and name it after the tool, for example “Cursor on laptop”.

    Example
    Application password generated, with the password masked
    The new password (masked in this screenshot).
    Treat it like a password. Don’t share the setup text, and revoke the password under “Manage existing application passwords” if it leaks.
  3. Step 3: Add the server to Cursor

    Choose "Copy prompt" and paste the text into Cursor’s agent. It adds the server for you. Or open “Need the JSON config for a specific client?”, choose Cursor and add the snippet to mcp.json. If the file already lists servers, put the new entry inside mcpServers next to them.

    • All projects~/.cursor/mcp.json
    • This project.cursor/mcp.json
    Example
    The Cursor mcp.json snippet, password masked
    The Cursor snippet (password masked).
  4. Step 4: Reload and test

    Restart Cursor and check in its MCP settings that the server is on and lists its tools. HyIMPACT shows your AI three tools: discover abilities, get ability info and execute ability. Through them it reaches every ability the site has. Then ask:

    • “Which pages does my site have?”

Common errors

  • “Unauthorized” or 401A security plugin may block application passwords. Allow them for your user, then create a new one.
  • Application passwords are missingWordPress only offers them on HTTPS sites. Add HTTPS first. On a local site over HTTP, HyIMPACT shows the line to add to wp-config.php: define('WP_ENVIRONMENT_TYPE', 'local');
  • Wrong addressThe endpoint ends in /wp-json/mcp/hyimpact. Use the exact address from the Configuration page.
  • "npx" not foundThis setup runs the connector with Node.js. Install Node.js, then restart your AI tool.
  • No tools, or a timeoutRestart Cursor: it loads new servers on start. The first start takes longer while npx downloads the connector, and a slow site can time out the first check. Wait a minute and try again.

Cursor questions

Should I add it globally or per project?

Per project keeps each client’s site in its own repository. Global makes one site available everywhere.

Can Cursor edit theme files?

On staging, yes. On production those tools stay off unless an admin turns them on.

The steps

Connect Cursor step by step

Turn on AI abilities01
Create an application password02
Paste the setup into your AI tool03
Restart and test04
Ask for your first change05
Check it in WordPress06

The setup text comes from HyIMPACT → Configuration on your own site.

Want help connecting Cursor?

We set up your first site with you.

See the WordPress plugin