Search Results :

×

How to Connect Cursor to WordPress Using the Secure MCP Server

You can connect Cursor to your WordPress site using the Model Context Protocol (MCP), which lets Cursor work with your website. To get started, install and activate a compatible MCP server plugin, register an AI agent, and choose what it can do on your site.

Next, connect the MCP server to Cursor, approve access to your WordPress site, and test the connection. Once connected, Cursor can perform the tasks you allow.

Before you begin, make sure you have the following in place:

  • A self-hosted WordPress site running WordPress 6.9 or above, as the WordPress Abilities API required for this integration is available from WordPress 6.9 onward.
  • A publicly accessible HTTPS URL for your WordPress site. AI clients connect to your site over the internet, so localhost or private network URLs are not supported.
  • The miniOrange Secure MCP Connector plugin installed and activated on your WordPress site.
  • In your WordPress admin dashboard, go to Plugins, then click on the Add Plugin button.
  • Search for miniOrange Secure MCP Server, click Install Now, then Activate.
Connect WordPress to AI Agents using MCP | Install miniOrange Secure MCP Server

  • After activating the Secure MCP Server plugin, open the plugin from the WordPress admin sidebar and click the Register your first agent button on the welcome screen to get started.
Connect WordPress to AI Agents using MCP | Secure MCP Server menu

  • Provide a desired Name to your Agent and click on Next.
Connect WordPress to AI Agents using MCP | Provide Agent Name

  • Set the access for abilities based on the user roles. For example, enable the Get Site Information ability for the Administrator role, then click Create & Continue.
  • Click on the Create & Continue button.
Connect WordPress to AI Agents using MCP | Create Agent and set role abilities

  • After configuring the role-based abilities, the agent is successfully created. Click Continue to proceed with connecting your AI client.
Connect WordPress to AI Agents using MCP | Connect your AI client

  • To configure the connection with your AI clients, under Connect your AI client, click your required AI Client. A setup panel opens on the right with the connection details and the steps you’ll follow next. Copy these two details from the panel:
    • Connection URL
    • Your Site URL — your WordPress site address.
Connect WordPress to AI Agents using MCP | Connection methods for AI clients Gateway Method

Connect WordPress to AI Agents using MCP | Note

Note: For the ChatGPT and Claude Client, you'll find only Your Site URL i.e. your WordPress site address.

  • In the previous step, after clicking the Cursor AI Client, a panel opens on the right.
  • Click the MCP Server For WordPress on the Cursor Marketplace link. You can also run /add-plugin mcp-server-for-wordpress in Cursor's chat.
Connect Cursor to WordPress site | Open MCP Server for WordPress on the Cursor Marketplace

  • You'll be redirected to the WordPress plugin page on the Cursor Marketplace. Click Add to Cursor, then click Add Plugin.
Connect Cursor to WordPress site | Add plugin to Cursor

  • Click the View in Cursor button.
Connect Cursor to WordPress site | View in Cursor

  • In Cursor, click the installed WordPress plugin.
Connect Cursor to WordPress site | Click installed WordPress plugin

  • Click the Authenticate button.
Connect Cursor to WordPress site | Authenticate Cursor plugin

  • Enter Your Site URL and click the Continue button.
Connect Cursor to WordPress site | Enter Site URL

  • Click the Allow Access button.
Connect Cursor to WordPress site | Allow Access

Once the connection is complete, you can start interacting with your WordPress site directly from Cursor.

Connect Cursor to WordPress site | Note

Note: Each user can connect their own Cursor, Claude AI, or ChatGPT account to the same WordPress site using their personal account.

  • Navigate to the Activity tab of the plugin to view ability executions across every agent.
Connect Cursor to WordPress site | Activity Log

  • Click on an activity row to view the event information in detail.
Connect Cursor to WordPress site | Activity event details

  • Navigate to the Debug Log tab of the plugin and click on the Start capture button to begin recording diagnostic events.
Connect Cursor to WordPress site | Debug Log Start capture

  • Once capture is on, every prompt sent from your AI Agent is recorded from start to end, including authenticated MCP requests and tool calls.
Connect Cursor to WordPress site | Debug Log entries

  • Click on a log record to view the event information in detail.
Connect Cursor to WordPress site | Debug Log event details

Connect Cursor to WordPress site | Note

Note: Nothing is captured until you turn this on. Click on the Pause capture button once you are done, so it isn't writing to your database all the time.


After connecting your WordPress site, you can use natural-language prompts to complete everyday WordPress tasks without switching between different dashboard pages. The available actions depend on the abilities registered through the WordPress Abilities API.

You can:

  • View WordPress site and environment information.
  • Check your account details.
  • Create new posts and pages.
  • Update existing posts and pages.
  • Use other abilities exposed through the WordPress Abilities API.

Every request passes through the Secure MCP Connector, which validates the request before allowing the action to run on your WordPress site.

If Cursor cannot connect to WordPress or access its tools, check your MCP configuration, firewall, authentication, cache, and agent permissions. The following steps cover common connection problems and explain how to resolve them.

Issue: Cursor fails to connect, or you receive a 403 or 429 error even though your website loads normally.

Why it happens: Your hosting firewall, Cloudflare, or ModSecurity may block MCP requests.

How to resolve it: If you use Cloudflare, configure a Web Application Firewall (WAF) rule to skip the relevant security checks for these paths, where applicable:

  • /wp-json/mosmcp/*
  • /index.php?rest_route=/mosmcp/*
  • /.well-known/oauth-*

If your hosting provider manages the firewall, ask them to allow legitimate POST requests to the required endpoints. Also, check whether overseas access restrictions affect your connection.

Tip: Check your firewall logs before changing security rules. Allow only the required endpoints instead of disabling security protections across your website.

Issue: The plugin's debug log shows missing_token, or Cursor cannot complete authentication.

Why it happens: Your server may remove the Authorization header before WordPress receives it.

How to resolve it: Ask your hosting provider to preserve the Authorization header for WordPress REST API requests under /wp-json/. Then, try connecting Cursor again.

Issue: Your agent appears enabled in WordPress, but Cursor cannot detect it.

Why it happens: Your website, caching plugin, or hosting server may serve outdated agent registration details.

How to resolve it: Clear your website, plugin, and hosting caches. Exclude /wp-json/mosmcp/ from caching rules. If you use LiteSpeed Cache, add the path under Do Not Cache URIs. Then, reconnect Cursor.

Issue: Cursor connects successfully, but some tools or actions are missing.

Why it happens: Your agent may lack the required WordPress abilities, or Cursor may not have refreshed its tool list.

How to resolve it: Open the miniOrange Secure MCP Server plugin in WordPress and select Agents. Edit your agent, review its assigned role, and enable the required abilities. Save your changes, then refresh or reconnect Cursor.

If some tools remain unavailable, check the plugin's debug logs and confirm that the server exposes the required abilities.

If you still cannot connect Cursor to WordPress, email aisupport@xecurify.com for help. Include the error message and relevant debug logs, but remove passwords, access tokens, and other sensitive information before sharing them.


Yes, Cursor can create and edit WordPress posts and pages if the MCP server supports these actions and your agent has the required permissions.

Your MCP server settings, hosting firewall, authentication, or agent permissions may be preventing the connection. Check your server configuration and plugin logs to identify the problem.

Yes, you can control Cursor's access through the miniOrange Secure MCP Server plugin. Configure your agent's permissions and enable only the WordPress abilities you want Cursor to use.



 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again


ADFS_sso ×
Hello there!

Need Help? We are right here!

support