DEV Community

Mahdi JabinPour
Mahdi JabinPour

Posted on

How to Connect Cursor to WordPress (No SSH, No Local Setup)

Hello and welcome, dear friends, to the world of website design and programming.

One of the things you'll need in Cursor is being able to manage your own site with it.

Managing WordPress through Cursor means you need to be able to connect to WordPress itself. But Cursor doesn't have the ability to connect to WordPress or shared hosting. It only works on local setups and over SSH, with no other option for that.

I want to show you a way to connect Cursor really easily — to your site, giving you access to files, the database, all the information you need.

What you can actually do once Cursor is connected

With this method, you can do a lot of important tasks.

For example, you might want to pull some data out of your database using Cursor. Like finding the customers who bought the most, or pulling up info on certain customers.

You can update your plugins through Cursor, fix problems on your site, and check your settings. You can even patch things, and through Cursor you can debug plugins.

You can make custom changes inside WordPress. You can even use artificial intelligence to do design work on your site. And anything else you need to connect Cursor to WordPress.

The plugin: LumoWP Site Pilot

I want to introduce a plugin to you, called LumoWP Site Pilot.

This plugin is built so that once you install it on WordPress, it gives you a secret key. To copy that key easily, it's just a code.

Then in Cursor, you hand that key over to the AI, and there's a rule file. It's a file made in MDC format, and it gives Cursor a set of connection rules.

Give that rule file to Cursor too, and tell it to connect to lumowp.com with this key.

Cursor connects to your site easily. It has access to the whole database, files, everything.

The rule file (MDC)

The rule file is what teaches Cursor how to talk to your site. In Cursor, create it at .cursor/rules/lumowp.mdc — here's the shape of it:

---
description: Connect Cursor to my WordPress site through LumoWP Site Pilot
globs:
alwaysApply: true
---

# LumoWP Site Pilot — connection rules

- Site: https://your-site.com
- Gateway: https://lumowp.com
- Key: PASTE_YOUR_SECRET_KEY_HERE

## How to work with the site
- Use the key above for every request to the site.
- Before changing anything, read the current state first (files, options, plugin list).
- For database work, read before you write, and show me the query you're about to run.
- When you install or edit a plugin, test it on the site afterwards and report what happened.
- Never expose the key in code, commits, or output.
Enter fullscreen mode Exit fullscreen mode

Paste your own site URL and the key the plugin gave you, and that's it — Cursor picks it up from there.

Example prompts you can give Cursor

Once it's connected, you just talk to it normally. For example, you could say:

Build a plugin, install it, and test it on my site, so the account page
shows a popup, and inside that popup write something for my customers.
Enter fullscreen mode Exit fullscreen mode
Prepare an email for anyone who bought between these dates, saying
something changed, and send it.
Enter fullscreen mode Exit fullscreen mode
Find the customers who bought the most from my store and show me the top 20.
Enter fullscreen mode Exit fullscreen mode
Update all my plugins, then check the site for errors and tell me what broke.
Enter fullscreen mode Exit fullscreen mode
Debug this plugin on my site and patch the problem you find.
Enter fullscreen mode Exit fullscreen mode

Cursor can do all of this using the LumoWP Site Pilot plugin, and you can make these changes easily. You can do that through Cursor and a plugin.

So, can Cursor connect to WordPress?

So from now on, when someone says: does Cursor have the ability to connect to WordPress, so it can do things for you, install a plugin, make changes, debug? Can it do the custom tasks you want?

We answer yes, it's possible.

And from now on, with the LumoWP Site Pilot plugin, you'll have a file full of commands and connection parameters for WordPress. And from now on, the plugin you install gives you a key. Give that key to Cursor, and it connects. Then it can do anything you need.

It's not only Cursor

And another thing, this isn't limited to Cursor. It also works with other software like Windsurf. With Windsurf, you can connect to WordPress too.

Now, for any software similar to Cursor, it's enough to give it this same rule file, or instructions, plus the login key. Then it takes care of everything itself. It easily pulls what it needs from the site and makes the changes.

Getting started

To get started, just click this link below and install the LumoWP Site Pilot plugin.

  1. Get it and install it on your WordPress site.
  2. Open the plugin's instruction file.
  3. Take the key the site gives you, and hand it to Cursor.
  4. Then relax.

Then make whatever changes you need, and you can connect easily.

👉 Install LumoWP Site Pilot


If you try it, tell me in the comments what you built with it — I'm curious what people automate first.

Top comments (0)