AI Integration Guide

Connect AI Tools to Your WordPress Site via MCP

Use Claude Code, Claude Desktop, or Cursor to manage your WordPress site hosted at Hostinger with natural language — no manual dashboard clicking required.

Claude Code Claude Desktop Cursor WordPress · Hostinger

In this article

  1. What is MCP and what can you do with it?
  2. Before you begin
  3. Step 1 — Create a WordPress Application Password
  4. Step 2 — Find your MCP endpoint URL
  5. Step 3a — Connect Claude Code
  6. Step 3b — Connect Claude Desktop
  7. Step 3c — Connect Cursor
  8. First things to try
  9. Troubleshooting

What is MCP and what can you do with it?

MCP (Model Context Protocol) is an open standard that lets AI tools talk directly to external applications — in this case, your WordPress site. Think of it as a secure bridge between your AI assistant and your website.

New WordPress sites hosted at Hostinger on Business and Cloud plans come with the Hostinger AI Plugin pre-installed. This is the same plugin that powers Kodee, the AI assistant inside your WordPress dashboard. Because it supports MCP, external AI tools like Claude Code, Claude Desktop, and Cursor can also connect to it.

Once connected, your AI tool can manage your site using plain English. Here are some things it can help with:

ℹ️

Your WordPress credentials are only stored locally on your computer and are never shared with Anthropic, Hostinger, or any third party beyond the connection to your own website.

Before you begin

Make sure you have the following in place before getting started:

💡

Don't have Node.js? Download the LTS version for free at nodejs.org and run the installer. No special configuration needed.

💡

Don't have the Hostinger AI Plugin? It comes pre-installed on all new WordPress sites on Business and Cloud plans at Hostinger. If yours is missing, go to Plugins → Add New in your WordPress dashboard and search for Hostinger.

Step 1 — Create a WordPress Application Password

An Application Password is a dedicated credential that lets an external tool connect to your site securely. It is separate from your main WordPress login password, can be revoked at any time, and can be reused across sessions without needing to be regenerated.

⚠️

Create one password per tool. If you want to connect both Claude Desktop and Cursor, create a separate Application Password for each so you can revoke them independently later.

ℹ️

Application Passwords look like this: AbCd EfGh IjKl MnOp QrSt UvWx. Keep the spaces — they are part of the password. If you ever need to regenerate it, delete the existing one from the list and create a new one.

Step 2 — Find your MCP endpoint URL

The Hostinger AI Plugin exposes a special URL on your site that AI tools use to send and receive instructions. This is called the MCP endpoint.

Your MCP endpoint follows this pattern:

https://your-wordpress-site.com/wp-json/mcp/mcp-adapter-default-server

Replace your-wordpress-site.com with your actual domain name.

You will use this URL when configuring your AI tool in the steps below.

Step 3a — Connect Claude Code

🖥️
Claude Code
Terminal-based AI coding assistant by Anthropic

Claude Code is a command-line tool that can configure the MCP connection for you automatically — just tell it what to do in plain English.

💡

The MCP connection is saved in your project's .mcp.json file. You won't need to reconnect the next time you open Claude Code in the same project folder.

Step 3b — Connect Claude Desktop

🤖
Claude Desktop
Desktop chat application by Anthropic

Claude Desktop stores its MCP configuration in a JSON file on your computer. You will edit this file once, then restart the app.

1. Find the configuration file

The file is in a different location depending on your operating system:

Operating system Configuration file path
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json
💡

On macOS: Open Finder, press ⌘ + Shift + G, paste the path above, and press Enter.
On Windows: Press Win + R, paste the path above, and press Enter.

2. Edit the configuration file

Open the file in any text editor (e.g. Notepad on Windows or TextEdit on macOS). If the file is empty or does not exist yet, create it and start with the content below.

Replace the three placeholder values with your own details and save the file:

{
  "mcpServers": {
    "wordpress": {
      "command": "npx",
      "args": ["-y", "@automattic/mcp-wordpress-remote"],
      "env": {
        "WP_API_URL": "https://your-wordpress-site.com/wp-json/mcp/mcp-adapter-default-server",
        "WP_API_USERNAME": "your-username",
        "WP_API_PASSWORD": "your-application-password",
        "OAUTH_ENABLED": "false"
      }
    }
  }
}

Replace your-wordpress-site.com, your-username, and your-application-password with your actual domain, WordPress username, and the Application Password you created in Step 1.

3. Save and restart Claude Desktop

Step 3c — Connect Cursor

Cursor
AI-powered code editor

Cursor uses a JSON configuration file to set up MCP servers. You can create or edit it directly from within Cursor's settings.

⚠️

If you store this configuration in a project-level .cursor/mcp.json file, add it to your .gitignore to avoid accidentally sharing your credentials if you push the project to GitHub.

First things to try

Once your connection is set up, here are some prompts to get you started. Any changes you make will appear live on your WordPress site.

Explore your site

List all the pages on my WordPress site
Show me all published blog posts
Which plugins are currently active?

Create and edit content

Create a new draft page titled "About Us" with a short introduction paragraph
Update the tagline on my homepage to "Fresh bread, baked daily"
Add a new blog post in the "News" category with the following content: ...

Manage your site

List all users and their roles
Check for any inactive themes and remove them
Show me all images in the media library uploaded this month
ℹ️

The AI will ask for your confirmation before making any changes that cannot be easily undone, such as deleting content or deactivating plugins.

Troubleshooting

The AI says it cannot connect to my site

Check the following:

• Make sure the MCP endpoint URL is correct and includes your full domain name (with https://).
• Confirm that the Hostinger AI Plugin is installed and activated in Plugins → Installed Plugins.
• Verify that Disable application passwords is turned off in the Hostinger Tools plugin settings under Tools.

I get an "Unauthorized" or 401 error

This usually means the credentials are wrong. Double-check that:

• Your WordPress username is correct (it is case-sensitive).
• The Application Password was copied in full, including any spaces.

I don't see a WordPress MCP option in Claude Desktop or Cursor

Make sure you fully quit and reopened the application after editing the config file. On macOS, clicking the red close button does not fully quit the app — you need to right-click the Dock icon and choose Quit.

I want to revoke access

Go to Users → Profile in your WordPress dashboard, scroll to the Application Passwords section, and click Revoke next to the password you created. The AI tool will immediately lose access to your site.

Last updated: May 2026 · Hostinger Help Center