{"id":10807,"date":"2026-05-20T10:04:09","date_gmt":"2026-05-20T10:04:09","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=10807"},"modified":"2026-05-22T03:11:04","modified_gmt":"2026-05-22T03:11:04","slug":"how-to-connect-ai-tools-to-your-wordpress-site-via-mcp","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-connect-ai-tools-to-your-wordpress-site-via-mcp\/","title":{"rendered":"How to connect AI tools to your WordPress site via MCP"},"content":{"rendered":"<p><strong>MCP (Model Context Protocol)<\/strong> is an open standard that lets AI tools talk directly to external applications &mdash; in this case, your WordPress site. Think of it as a secure bridge between your AI assistant and your website.<\/p><p>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.<\/p><p>Once connected, your AI tool can manage your site using plain English. Here are some things it can help with:<\/p><ul>\n<li>Posts &amp; Pages<\/li>\n<li>Media Library<\/li>\n<li>Users<\/li>\n<li>Plugins<\/li>\n<li>Themes<\/li>\n<li>Categories &amp; Tags<\/li>\n<li>Site Settings<\/li>\n<\/ul><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><strong>Note:<\/strong> 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.<\/div><div>\n<h2 id=\"h-pre-requisites\">Pre-requisites<\/h2>\n<ul>\n<li>A WordPress site hosted at Hostinger on a Business or Cloud plan<\/li>\n<li>The Hostinger AI Plugin is installed and active on your site<\/li>\n<li>Node.js is installed on your computer<\/li>\n<li>The @automattic\/mcp-wordpress-remote npm package (this is installed automatically the first time the configuration runs &mdash; no manual installation required)<\/li>\n<li>Claude Code, Claude Desktop, or Cursor installed<\/li>\n<li>Your WordPress admin username and password<\/li>\n<\/ul>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">&#128161;<strong>Don&rsquo;t have Node.js?<\/strong> Download the LTS version for free at nodejs.org and run the installer. No special configuration needed.<\/div>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">&#128161; <strong>Don&rsquo;t have the Hostinger AI Plugin?<\/strong> It comes pre-installed on all new WordPress sites on Business and Cloud plans at Hostinger. If yours is missing, go to Plugins &rarr; Add New in your WordPress dashboard and search for Hostinger.<\/div>\n<\/div><div><\/div><div>\n<h2 id=\"h-step-1-create-a-wordpress-application-password\">Step 1 &mdash; Create a WordPress Application Password<\/h2>\n<p><strong>An Application Password<\/strong> 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.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><strong>Note:<\/strong> &nbsp;Create one password per tool. If you want to connect both Claude Desktop and Cursor, create a separate <strong>Application Password<\/strong> for each so you can revoke them independently later.<\/div>\n<ol>\n<li>Log in to your WordPress dashboard (https:\/\/your-wordpress-site.com\/wp-admin).<\/li>\n<li>On the left sidebar menu, navigate to Tools &rarr; Hostinger Tools.<\/li>\n<li>Locate the parameter labeled <strong>Disable application passwords<\/strong> and verify that it is turned off to allow connections.<\/li>\n<li>Click on your user avatar or click <strong>Edit Profile<\/strong> in the top-right menu.<\/li>\n<li>Scroll down to the bottom of your profile options to locate the<strong> Application Passwords<\/strong> section.<\/li>\n<li>Under the<strong> New Application Password Name<\/strong> text field, type a clear, recognizable label mapping to your selected tool (e.g., Claude Code, Claude Desktop, or Cursor).<\/li>\n<li>Click <strong>Add New Application Password.<\/strong><\/li>\n<li>Copy the random string displayed on your screen. Save it inside a password manager.<\/li>\n<\/ol>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><strong>Note<\/strong>: Application Passwords adhere to spaces within their string (e.g., AbCd EfGh IjKl&hellip;). Keep these spaces fully intact when passing the value into your configuration payloads.<\/div>\n<h2 id=\"h-step-2-find-your-mcp-endpoint-url\">Step 2 &mdash; Find your MCP endpoint URL<\/h2>\n<p>The Hostinger AI Plugin establishes a standardized communication gateway to interact with external tools. Your site&rsquo;s native MCP endpoint string strictly matches the following path:<\/p>\n<pre>https:\/\/your-wordpress-site.com\/wp-json\/mcp\/mcp-adapter-default-server<\/pre>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><strong>Note<\/strong>: Replace your-wordpress-site.com with your exact live domain name.<\/div>\n<h2 id=\"h-step-3a-connect-claude-code\">Step 3a: Connect Claude Code<\/h2>\n<p>Claude Code is an elite command-line tool built by <strong>Anthropic<\/strong> that manages its server connections automatically through user prompting.<\/p>\n<ol>\n<li>Launch your operating system&rsquo;s terminal shell window.<\/li>\n<li>Navigate into your targeted project folder path and enter the following initialization script to wake up the assistant:<br>\nclaude<\/li>\n<li>Paste the following configuration directive into your prompt terminal:\n<pre>Connect my WordPress site at https:\/\/your-wordpress-site.com to this project via MCP using the Hostinger AI Plugin. My WordPress username is your-username and my application password is your-application-password<\/pre>\n<\/li>\n<li>Substitute the placeholder details with your live URL, username, and <strong>Application Password.<\/strong><\/li>\n<li>Type yes when prompted by the terminal block to authorize writing to your local project directory configurations.<\/li>\n<li>Test the connection, ask Claude Code to list all pages on your site to confirm everything is working:\n<pre>List all the pages on my WordPress site<\/pre>\n<\/li>\n<li>Compare the results with the <strong>Pages section<\/strong> in your WordPress dashboard to verify they match.<\/li>\n<\/ol>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><strong>Note:<\/strong> The MCP connection is saved in your project&rsquo;s .mcp.json file. You won&rsquo;t need to reconnect the next time you open Claude Code in the same project folder.<\/div>\n<h2 id=\"h-step-3b-connect-claude-desktop\">Step 3b: Connect Claude Desktop<\/h2>\n<p>Claude Desktop stores its integration protocols inside a central JSON file located on your local file structure.<\/p>\n<ol>\n<li>Locate the configuration folder according to your machine&rsquo;s operating system:\n<ul>\n<li>macOS: Navigate to ~\/Library\/Application Support\/Claude\/claude_desktop_config.json<\/li>\n<li>Windows: Access %APPDATA%\\Claude\\claude_desktop_config.json<\/li>\n<\/ul>\n<\/li>\n<li>Open the file inside a simple text handler (such as Notepad or TextEdit). If the file is blank or doesn&rsquo;t exist, create it from scratch.<\/li>\n<li>Paste the following schema, modifying your active fields, and save:\n<pre><code>{\r\n  \"mcpServers\": {\r\n    \"wordpress\": {\r\n      \"command\": \"npx\",\r\n      \"args\": [\"-y\", \"@automattic\/mcp-wordpress-remote\"],\r\n      \"env\": {\r\n        \"WP_API_URL\": \"https:\/\/your-wordpress-site.com\/wp-json\/mcp\/mcp-adapter-default-server\",\r\n        \"WP_API_USERNAME\": \"your-username\",\r\n        \"WP_API_PASSWORD\": \"your-application-password\",\r\n        \"OAUTH_ENABLED\": \"false\"\r\n      }\r\n    }\r\n  }\r\n}<\/code><\/pre>\n<\/li>\n<li>Completely close out of Claude Desktop. Right-click the app icon on your Taskbar (Windows) or Dock (macOS) and explicitly click <strong>Exit<\/strong> or <strong>Quit<\/strong> before launching it fresh to load the configuration.<\/li>\n<li>Verify the connection by starting a new conversation in Claude Desktop. You should see a small tools or plug icon indicating MCP servers are active. Ask it:\n<pre>List all pages on my WordPress site<\/pre>\n<\/li>\n<\/ol>\n<h2 id=\"h-step-3c-connect-cursor\">Step 3c: Connect Cursor<\/h2>\n<p>The Cursor code editor allows you to manage active MCP pathways natively inside its graphical layout settings panel.<\/p>\n<ol>\n<li>Open <strong>Cursor<\/strong> and from the top menu select <strong>Cursor &rarr; Settings &rarr; Cursor Settings<\/strong> to trigger your global settings window.<\/li>\n<li>Navigate to Tools &amp; MCPs on the sidebar map and click<strong> New MCP Server.<\/strong><\/li>\n<li>Open the file to view the configuration structure and paste the exact same JSON setup block defined for Claude Desktop above.\n<pre><code>{\r\n  \"mcpServers\": {\r\n    \"wordpress\": {\r\n      \"command\": \"npx\",\r\n      \"args\": [\"-y\", \"@automattic\/mcp-wordpress-remote\"],\r\n      \"env\": {\r\n        \"WP_API_URL\": \"https:\/\/your-wordpress-site.com\/wp-json\/mcp\/mcp-adapter-default-server\",\r\n        \"WP_API_USERNAME\": \"your-username\",\r\n        \"WP_API_PASSWORD\": \"your-application-password\",\r\n        \"OAUTH_ENABLED\": \"false\"\r\n      }\r\n    }\r\n  }\r\n}<\/code><\/pre>\n<\/li>\n<li>Replace the placeholders with your live domain, credentials, and<strong> Application Password<\/strong>. Save changes.<\/li>\n<li>Open a new <strong>Cursor<\/strong> chat in<strong> Agent mode<\/strong> and ask it to list all pages on your WordPress site to confirm the connection works:\n<pre>List all the pages on my WordPress site<\/pre>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><strong>Note:<\/strong> 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.<\/div>\n<h2 id=\"h-step-4-live-command-verification\">Step 4: Live Command Verification<\/h2>\n<p>Once your integration has connected successfully, open a live chat window in your active AI tool and try issuing structural queries to see live mutations on your site:<\/p>\n<ul>\n<li><strong>Inspections<\/strong>: <em>&ldquo;List all the pages on my WordPress site&rdquo;<\/em> or <em>&ldquo;Which plugins are currently active?&rdquo;<\/em><\/li>\n<li><strong>Development<\/strong>: <em>&ldquo;Create a new draft page titled &lsquo;About Us&rsquo; with a short introduction paragraph&rdquo;<\/em><\/li>\n<li><strong>Maintenance<\/strong>:<em> &ldquo;List all users and their roles&rdquo;<\/em>, <em>&ldquo;Check for any inactive themes and remove them&rdquo;<\/em>, or <em>&ldquo;Show me all images in the media library uploaded this month&rdquo;<\/em><\/li>\n<\/ul>\n<h2 id=\"h-troubleshooting-common-issues\">Troubleshooting Common Issues<\/h2>\n<p><strong>The AI says it cannot connect to my site<\/strong><\/p>\n<p>Check the following:<\/p>\n<ul>\n<li>Make sure the MCP endpoint URL is correct and includes your full domain name (with https:\/\/).<\/li>\n<li>Confirm that the Hostinger AI Plugin is installed and activated in <strong>Plugins<\/strong> &rarr;<strong> Installed Plugins.<\/strong><\/li>\n<li>Verify that <strong>Disable application passwords<\/strong> is turned off in <strong>the Hostinger Tools<\/strong> plugin settings under <strong>Tools<\/strong>.<\/li>\n<\/ul>\n<p><strong>I get an &ldquo;Unauthorized&rdquo; or 401 error<\/strong><\/p>\n<p>This usually means the credentials are wrong. Double-check that:<\/p>\n<ul>\n<li>Your WordPress username is correct (it is case-sensitive).<\/li>\n<li>The Application Password was copied in full, including any spaces.<\/li>\n<\/ul>\n<p><strong>I don&rsquo;t see a WordPress MCP option in Claude Desktop or Cursor<\/strong><\/p>\n<p>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 &mdash; you need to right-click the Dock icon and choose Quit.<\/p>\n<p><strong>I want to revoke access<\/strong><\/p>\n<p>Go to <strong>Users &rarr; Profile<\/strong> in your WordPress dashboard, scroll to the <strong>Application Passwords<\/strong> section, and click <strong>Revoke<\/strong> next to the password you created. The AI tool will immediately lose access to your site.<\/p>\n<\/div><p>By exposing your Hostinger WordPress application parameters through the Model Context Protocol, your developer workspace can easily bypass physical menu clicking. This integration allows you to adjust taglines, manage files, audit active plugins, and generate code layouts completely within natural language parameters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to securely connect Claude Code, Claude Desktop, or Cursor to your Hostinger WordPress site using the Model Context Protocol (MCP).<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[179],"tags":[],"class_list":["post-10807","post","type-post","status-publish","format-standard","hentry","category-wordpress-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/how-to-connect-ai-tools-to-your-wordpress-site-via-mcp","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=10807"}],"version-history":[{"count":6,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10807\/revisions"}],"predecessor-version":[{"id":10862,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10807\/revisions\/10862"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=10807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=10807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=10807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}