Use Claude Code, Claude Desktop, or Cursor to manage your WordPress site hosted at Hostinger with natural language — no manual dashboard clicking required.
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.
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.
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.
Go to https://your-wordpress-site.com/wp-admin and sign in with your admin account.
Replace your-wordpress-site.com with your actual domain name.
In the left sidebar, go to Tools and open the Hostinger Tools plugin settings. Look for the option called Disable application passwords and make sure it is turned off — this ensures that application passwords are allowed on your site.
In the top-right corner of the dashboard, click your username or avatar, then select Edit Profile.
This section is near the bottom of the profile page. You will see a text field labelled New Application Password Name.
In the New Application Password Name field, type a recognisable label for this connection — for example:
Then click Add New Application Password.
WordPress will display the password on screen. Copy it and keep it somewhere safe, such as a password manager. You will need it when configuring your AI tool in the steps below.
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.
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.
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.
Navigate to any project folder in your terminal, then run claude to open Claude Code.
Type a message like the one below. Claude Code will handle the configuration automatically:
Replace your-wordpress-site.com, your-username, and your-application-password with your actual details.
Claude Code will ask you to approve the MCP server configuration. Type yes or click the confirmation prompt to proceed.
Ask Claude Code to list all pages on your site to confirm everything is working:
Compare the results with the Pages section in your WordPress dashboard to verify they match.
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.
Claude Desktop stores its MCP configuration in a JSON file on your computer. You will edit this file once, then restart the app.
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.
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.
Make sure there are no typos and that all brackets and quotes are properly closed, then save the file.
On macOS, right-click the Claude icon in the Dock and choose Quit. On Windows, right-click the taskbar icon and choose Exit. Then open Claude Desktop again.
Start a new conversation in Claude Desktop. You should see a small tools or plug icon indicating MCP servers are active. Ask it:
Cursor uses a JSON configuration file to set up MCP servers. You can create or edit it directly from within Cursor's settings.
Press Ctrl + , (Windows/Linux) or ⌘ + , (macOS) to open Settings, then navigate to Tools & MCPs.
This opens the mcp.json configuration file where your MCP servers are defined.
Paste the following into your mcp.json file, replacing the placeholder values with your own details:
{
"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.
Save the file. Open a new Cursor chat in Agent mode and ask it to list all pages on your WordPress site to confirm the connection works:
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.
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.
The AI will ask for your confirmation before making any changes that cannot be easily undone, such as deleting content or deactivating plugins.
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.
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.
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.
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.