Skip to content

Connect Claude Code

Claude Code adds MCP servers from the command line, which makes this the shortest guide of the four.

  1. 1

    Copy your endpoint and token

    Open WP with AI in your WordPress sidebar and copy both values.

    Screenshot to come
    The WP with AI settings screen, with the endpoint and token
  2. 2

    Run the add command

    Run the command below in your terminal, with your own URL and token substituted in.

    bash
    claude mcp add --transport http wordpress \
      https://your-site.com/wp-json/wpwithai/mcp/v1 \
      --header "Authorization: Bearer YOUR_TOKEN"
    Screenshot to come
    The terminal after adding the server
  3. 3

    Check it is listed

    Run the /mcp command in a session to confirm the server is connected and its tools are loaded.

    Screenshot to come
    The /mcp output listing the wordpress server

Common problems

  • The client says it cannot reach the server

    Open the endpoint URL in a browser first. If it does not return JSON, the plugin is not active or your permalinks are set to plain. Both are two-minute fixes in wp-admin.

  • It connects but every action is refused

    The connected account does not have the capability you are asking for. Check which user the application password belongs to and what role that user has.

  • The tools do not appear

    Restart the client fully. Most of them read MCP configuration once at launch and will not pick up a change until they are closed and reopened.

Other clients

Not downloaded it yet?

The plugin is free and the account takes a minute.

One plan. $0. No credit card.