---
title: "Connect Claude Code or Cursor to WordPress | CanAI setup"
canonical: "https://mamak.openminds.my/canai/setup/"
updated: "2026-10-13T06:05:12Z"
---

# Get CanAI working

Four steps from the zip file to your first page. You need admin access to a WordPress site and an AI agent such as Claude Code or Cursor.

FreeWPCanAI 2.5.0No download yet? [Get CanAI free](https://mamak.openminds.my/canai/#get)

0 of 4 done

1. ## Install the plugin

    1. Download the zip file from the link in your email.
    2. In WordPress, go to **Plugins → Add New Plugin → Upload Plugin**.
    3. Choose the zip file, click **Install Now**, then **Activate**.

    CanAI needs WordPress 7.0 or later and PHP 8.2 or later. If the upload fails, your host may limit file sizes. Ask them to raise the limit, or tap Tanya kami.
2. ## Copy your connection link

    In WordPress, open **CanAI → AI Client** and copy your connection link. It looks like this:

    Connection link (example)

    ```
    https://your-site.com/wp-json/mcp/wpcanai/<span class="ph">your-private-key</span>
    ```

    The end of the link is a private key. Anyone who has the link can change your site, so treat it like a password and keep it out of shared documents and screenshots.
3. ## Add CanAI to your agent

    Run this in your terminal, with your own link in place of the example:

    Terminal

    ```
    claude mcp add --transport http canai "https://your-site.com/wp-json/mcp/wpcanai/<span class="ph">your-private-key</span>"
    ```

    Then start Claude Code and type `/mcp`. CanAI should show as connected.

    In Cursor, open **Settings → MCP** and add a new server, or put this in `.cursor/mcp.json`:

    .cursor/mcp.json

    ```
    {
      "mcpServers": {
        "canai": {
          "url": "https://your-site.com/wp-json/mcp/wpcanai/<span class="ph">your-private-key</span>"
        }
      }
    }
    ```

    Restart Cursor if CanAI doesn't appear in the list.

    Any agent that can connect to a remote MCP server over HTTP can use the same link. Add a new server, name it `canai`, and paste your connection link as its address.

    Not sure your agent can? [Ask us](https://mamak.openminds.my/contact/) and tell us which one you use.
4. ## Ask for your first page

    Start small. Paste one of these into your agent and change the details to suit your business:

    An About page

    ```
    Use CanAI to create a page called "About us" with a short story,<br></br>three things we care about and a contact section.<br></br>Use my site's existing header and footer.
    ```

    A promotion page

    ```
    Use CanAI to build a landing page for our March promotion:<br></br>a hero with the offer, three reasons to buy and a WhatsApp button.
    ```

    Your agent builds the page on your site. Open it in WordPress, check it, and change anything you like.

## If you're stuck

### Your agent doesn't list CanAI

Check you pasted the whole link, including the private key at the end. Then restart the agent so it loads the new server.

### The agent connects but can't reach your site

Your computer needs to reach your site's address. A site behind a login wall, a firewall or a local-only address can block the connection. Check that the site opens in a browser on the same computer.

### You can't find the new page

Look under Pages in WordPress, or ask your agent for the page's address.

### Still stuck?

Send us a message through [Tanya kami](https://mamak.openminds.my/contact/) and a person at the stall will help.
