{"id":342,"date":"2025-04-14T07:56:51","date_gmt":"2025-04-14T07:56:51","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/04\/14\/11079316-hostinger-api-mcp-server\/"},"modified":"2026-10-30T08:54:16","modified_gmt":"2026-10-30T08:54:16","slug":"11079316-hostinger-api-mcp-server","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/11079316-hostinger-api-mcp-server\/","title":{"rendered":"Hostinger API MCP Server"},"content":{"rendered":"<p class=\"no-margin\">The <strong>Hostinger API MCP Extension<\/strong>\u00a0enables seamless integration of Hostinger&#8217;s API with AI tools that support the <strong>Model Context Protocol (MCP)<\/strong> \u2014 such as <strong>Claude<\/strong>, <strong>Cursor<\/strong>, or other AI coding assistants. This extension exposes Hostinger API endpoints as callable tools across Websites, VPS, Domains (including DNS), Email Marketing, Subscriptions &amp; Payments, and Ecommerce, allowing AI models to fetch live data or perform real-time actions on hosting infrastructure.<\/p>\n<p class=\"no-margin\">In other words, you can now &#8220;vibe sysadmin&#8221; your services on Hostinger.<\/p>\n<h2 id=\"h_c9e0ca7fa5\"><b>Key capabilities<\/b><\/h2>\n<ul>\n<li class=\"whitespace-normal break-words pl-2\"><strong>API Integration<\/strong>: Connects directly to Hostinger&#8217;s Developer API<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>AI Tool Compatibility<\/strong>: Built for environments supporting MCP, like Claude or Cursor<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>Automated Operations<\/strong>: Enables AI to manage services and more<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>Per-product MCP configuration:<\/strong> Enable or disable MCPs per product (Websites, VPS, Domains (includes DNS), Email Marketing, Subscriptions &amp; Payments, Ecommerce) from the sidebar. DNS tools are bundled under Domains and do not appear as a separate toggle. Recommended since most IDEs have a ~100 tool limit for efficient performance.<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>Email Marketing Tools support<\/strong>: Email Marketing (formerly Reach) is now included as a supported product.<\/li>\n<li><strong>Per-site WordPress MCPs:<\/strong> WordPress sites now appear as individual MCPs (not bundled under a single Websites toggle), enabling per-site tool access for AI agents.<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>Improved token security<\/strong>: API token is now passed via environment variable instead of being written to a config file on disk.<\/li>\n<li class=\"whitespace-normal break-words pl-2\"><strong>Changelog introduced<\/strong>: A changelog is now available for the extension.<\/li>\n<\/ul>\n<h2 id=\"h-how-hostinger-mcp-exposes-tools\">How Hostinger MCP exposes tools<\/h2>\n<p>Hostinger MCP exposes three tools instead of one entry per API operation: <strong>search, execute, <\/strong>and <strong>multi-execute.<\/strong><\/p>\n<ul>\n<li><strong>search<\/strong> finds the Hostinger operations relevant to a task.<\/li>\n<li><strong>execute<\/strong> runs one operation.<\/li>\n<li><strong>multi-execute<\/strong> runs multiple operations in a single request.<\/li>\n<\/ul>\n<p>The full set of Hostinger operations remains reachable through these three tools, so this structure doesn&#8217;t remove any capability. Tool names are generated automatically and follow the same naming convention as the Hostinger CLI.<\/p>\n<p>Bundled skills ship with the MCP server and guide your AI assistant on which operation to choose once search returns results.<\/p>\n<p>This keeps the number of tools an AI agent sees small and stable, since a long list of individual operations otherwise uses up context and increases the chance the agent picks the wrong one.<\/p>\n<h2 id=\"h-hostinger-connector\">Hostinger Connector<\/h2>\n<p>The easiest way to connect is <a data-click-id=\"hgr-post-content-link-hostinger-connector\" href=\"\/connector\">Hostinger Connector<\/a>, a guided setup available from the Integrations page of Websites, Email Marketing, and other Hostinger products. Click <strong>Set up Connector,<\/strong> or <strong>Connect with ChatGPT<\/strong> to connect directly to ChatGPT, then sign in once to authorize access. No installation, token management, or configuration file is required.<\/p>\n<p>Once connected, you can ask your AI assistant to manage your Hostinger resources directly, for example:<\/p>\n<ul>\n<li>Show me contacts added this week<\/li>\n<li>Rename the segment Winter leads to Q1 leads<\/li>\n<li>Add, update, or delete DNS records<\/li>\n<li>Check my VPS status<\/li>\n<\/ul>\n<h2 id=\"remote_mcp\">Remote MCP Server<\/h2>\n<p>Hostinger now hosts a remote MCP server at:<\/p>\n<pre><code>https:\/\/mcp.hostinger.com<\/code><\/pre>\n<p>This is the fastest way to connect an MCP-compatible AI tool to your Hostinger account \u2014 there&#8217;s nothing to install, no Node.js version to manage, and no local process to keep running. Authentication is handled entirely through OAuth in your browser.<\/p>\n<h3>Claude Code<\/h3>\n<pre><code>claude mcp add --transport http hostinger https:\/\/mcp.hostinger.com<\/code><\/pre>\n<p>After running this command, Claude Code will open a browser window for you to authorize the connection via OAuth. Once authorized, all Hostinger tools (VPS, Domains, DNS, Billing, Ecommerce, Hosting, Reach) become available in that session.<\/p>\n<h3>Other MCP clients<\/h3>\n<p>Most MCP-compatible clients (Cursor, Claude.ai custom connectors, etc.) support adding a remote HTTP\/SSE MCP server directly by URL. Point your client&#8217;s MCP configuration at:<\/p>\n<pre><code>https:\/\/mcp.hostinger.com<\/code><\/pre>\n<p>and follow its OAuth authorization prompt when connecting. Refer to your specific tool&#8217;s documentation for the exact steps to add a remote\/custom MCP connector, since the UI differs between tools.<\/p>\n<h2 id=\"installation\"><b>Installation guide<\/b><\/h2>\n<h3 id=\"h_24609a647a\"><b>1. Install Node.js<\/b><\/h3>\n<p class=\"no-margin\">Before installing the MCP server, make sure Node.js 24+ is installed. You can do this via <a data-click-id=\"hgr-post-content-link-node-version-manager-nvm\" class=\"intercom-content-link\" href=\"https:\/\/github.com\/nvm-sh\/nvm\" target=\"_blank\" rel=\"noopener\">Node Version Manager (nvm)<\/a>:<\/p>\n<pre><code># Install nvm (if not already installed)\r\ncurl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.40.7\/install.sh | bash\r\n\r\n# Reload shell\r\nsource ~\/.bashrc\r\n\r\n# Install Node.js 24\r\nnvm install 24\r\n\r\n# Set it as default\r\nnvm use 24<\/code><\/pre>\n<h3 id=\"h_80a002fddb\"><b>2. Install the MCP server CLI<\/b><\/h3>\n<p class=\"no-margin\">After Node.js is ready, install the MCP server globally:<\/p>\n<pre><code># Install globally from npm\r\nnpm install -g @hostinger\/mcp\r\n\r\n# Or with yarn\r\nyarn global add @hostinger\/mcp\r\n\r\n# Or with pnpm\r\npnpm add -g @hostinger\/mcp<\/code><\/pre>\n<h2 id=\"h_9672ca944a\"><b>AI integration setup<\/b><\/h2>\n<p class=\"no-margin\">Tools like Claude, Cursor, Devin Desktop (formerly Windsurf), and OpenAI Codex don&#8217;t require manually running the MCP server. <a data-click-id=\"hgr-post-content-link-this-article\" class=\"intercom-content-link\" href=\"https:\/\/modelcontextprotocol.io\/quickstart\/user\" target=\"_blank\" rel=\"noopener\">This article<\/a> provides instructions on how to provide Claude with the following configuration:<\/p>\n<pre><code>{\r\n  \"mcpServers\": {\r\n    \"hostinger-api\": {\r\n      \"command\": \"hostinger-api-mcp\",\r\n      \"env\": {\r\n        \"DEBUG\": \"false\",\r\n        \"API_TOKEN\": \"YOUR API TOKEN\"\r\n      }\r\n    }\r\n  }\r\n}<\/code><\/pre>\n<ul>\n<li>API_TOKEN: Your access token for authenticating with <a data-click-id=\"hgr-post-content-link-hostingers-api\" href=\"https:\/\/www.hostinger.com\/support\/10840865-what-is-hostinger-api\/\">Hostinger&#8217;s API<\/a>. This is passed as an environment variable for improved security \u2014 do not write it directly into a config file on disk.<\/li>\n<li>\n<p class=\"no-margin\">DEBUG: Optional, set to &#8220;true&#8221; if you want verbose logs for debugging.<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"h-authentication\">Authentication<\/h2>\n<p>The Hostinger API MCP server supports two authentication methods:<\/p>\n<p><strong>API Token (original method \u2014 still supported)<\/strong><\/p>\n<ul>\n<li>Generate a token in Hostinger dashboard \u2192 <strong>API<\/strong> \u2192 <strong>API tokens<\/strong> tab<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-19809\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/public\" alt=\"\" width=\"1689\" height=\"777\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=1689,fit=scale-down 1689w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-07_17-17.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1689px) 100vw, 1689px\" \/><\/li>\n<li>Pass it via the API_TOKEN environment variable in your MCP config<\/li>\n<li>Suitable for personal use and single-user setups<\/li>\n<\/ul>\n<p><strong>OAuth (new)<\/strong><\/p>\n<ul>\n<li>Recommended for AI agents, external tools, and multi-user or production environments<\/li>\n<li>More secure and easier to set up without manual token management<\/li>\n<li>For setup instructions, refer to the <a data-click-id=\"hgr-post-content-link-github-repository\" href=\"https:\/\/github.com\/hostinger\/api-mcp-server\" target=\"_blank\" rel=\"noopener\">GitHub repository<\/a><\/li>\n<\/ul>\n<p>Both methods are supported simultaneously. Existing API token integrations do not require any changes.<\/p>\n<p id=\"h_5989c73219\"><b>Additional resources<\/b><\/p>\n<ul>\n<li>\n<p class=\"no-margin\"><b>API Docs<\/b>: <a data-click-id=\"hgr-post-content-link-https-developers-hostinger-com\" class=\"intercom-content-link\" href=\"https:\/\/developers.hostinger.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/developers.hostinger.com\/<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>GitHub Repository<\/b>: <a data-click-id=\"hgr-post-content-link-https-github-com-hostinger-api-mcp-server\" class=\"intercom-content-link\" href=\"https:\/\/github.com\/hostinger\/api-mcp-server\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/hostinger\/api-mcp-server<\/a><\/p>\n<\/li>\n<\/ul>\n<p class=\"no-margin\">The Hostinger MCP Server is a simple yet powerful bridge that connects AI interfaces to real-world hosting actions. Exposing Hostinger API endpoints as tools empowers AI tools to go beyond chat \u2014 enabling direct, intelligent, and automated management of hosting environments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Running your own Hostinger API MCP server<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[295],"tags":[],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-api"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/11079316-hostinger-api-mcp-server","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/342","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\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":17,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":24016,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/342\/revisions\/24016"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}