Connect Cursor
Add your site to Cursor's mcp.json and sign in once in the browser. Cursor registers itself with your site, so there's no client ID or secret to copy.
Before you start
Install and activate the MCP Adapter and the Toolkit (Get started has both). Then, in wp-admin, open Settings → AI Toolkit. It opens on the Connect tab. The MCP server URL is at the top of every tab with a Copy button. It looks like this:
https://your-site.com/wp-json/mcp/ppok-ai-toolkit/
Under Status, click Test the addresses to check that the endpoint answers. Then the tab asks two things: your site's name, which becomes the connection's name, and which client you're connecting. It shows that client's steps with both filled in. This guide follows the same steps and adds the detail the tab leaves out.
From version 2.0.1 the same endpoint also answers at the shorter https://your-site.com/mcp. The Connect tab lists it when your host allows it; test it before you rely on it.
Your site needs HTTPS. Connecting a staging site and a live site? Each one has its own URL, so add them as two connectors with names you can tell apart.
Add the server
-
Edit
mcp.jsonUse
~/.cursor/mcp.jsonto have the site in every project, or.cursor/mcp.jsoninside one project to share it with your team. Add your URL:{ "mcpServers": { "ppok": { "url": "https://your-site.com/wp-json/mcp/ppok-ai-toolkit/" } } }You can also manage servers from Customize in Cursor's sidebar instead of editing the file.
-
Sign in
Find the server under Customize and sign in when Cursor asks. It opens your site's login page in the browser.
On a Team plan, shared servers go under Dashboard → Plugins & MCPs. On Enterprise, an admin may need to add your site's URL to the MCP allowlist under Team Settings → MCP Configuration first.
Signing in
-
Log in to WordPress
Your client opens your site's login page in the browser. Log in as the account the agent should work as. It gets that account's permissions and nothing more.
-
Choose what it can do
The Authorize MCP client screen lists what the client is asking for. Read access comes ticked. Under Write access, tick only the abilities you want it to use, then click Authorize.
Write abilities also have to be switched on, on the Abilities tab under Settings → AI Toolkit. The post types and statuses they're allowed to touch are set on the Write rules tab.
Using it
Cursor uses the abilities when they fit what you asked, or you can ask for one by name. It asks before each call. Click the arrow next to an ability's name to see exactly what it's about to send.
If something goes wrong, open the Output panel (Cmd+Shift+U) and choose MCP Logs.
Check that it works
Start with something read-only, like: “List the block types registered on this site, grouped by plugin.” If it answers with your theme's blocks, you're connected.
If it won't connect
- Your host blocks
/wp-json/. Use the fallback URL under “If it does not connect” on the Connect tab. It looks likehttps://your-site.com/?rest_route=/mcp/ppok-ai-toolkit. - Sign-in never starts. Open
https://your-site.com/.well-known/oauth-authorization-serverin a browser. It should show a page of JSON. If it doesn't, a server rule or security plugin is catching that path. - Not sure where it's failing. The Connect tab has a status checklist and a “Test the addresses” button, which checks from the server. It also has a test command to run from a terminal, which shows whether the address answers from outside.
- A security plugin limits the REST API. Sign-in uses
/wp-json/ppok/v1/and the agent uses/wp-json/mcp/. Both have to answer requests from your client.
To disconnect a client later, revoke it on the Clients tab. It has to sign in and be approved again to reconnect.