{"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-06-12T09:31:54","modified_gmt":"2026-06-12T09:31:54","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>&nbsp;enables seamless integration of Hostinger&rsquo;s API with AI tools that support the <strong>Model Context Protocol (MCP)<\/strong> &mdash; 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><p class=\"no-margin\">In other words, you can now &ldquo;vibe sysadmin&rdquo; your services on Hostinger.<\/p><h2 id=\"h_c9e0ca7fa5\"><b>Key capabilities<\/b><\/h2><ul>\n<li class=\"whitespace-normal break-words pl-2\"><strong>API Integration<\/strong>: Connects directly to Hostinger&rsquo;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 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><h2 id=\"h_7f1d76fffb\"><b>Installation guide<\/b><\/h2><h3 id=\"h_24609a647a\"><b>1. Install Node.js<\/b><\/h3><p class=\"no-margin\">Before installing the MCP server, make sure Node.js 20+ is installed. You can do this via <a class=\"intercom-content-link\" href=\"https:\/\/github.com\/nvm-sh\/nvm\" target=\"_blank\" rel=\"noopener\">Node Version Manager (nvm)<\/a>:<\/p><pre><code># Install nvm (if not already installed)\r\ncurl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | bash\r\n\r\n# Reload shell\r\nsource ~\/.bashrc\r\n\r\n# Install Node.js 20\r\nnvm install 20\r\n\r\n# Set it as default\r\nnvm use 20<\/code><\/pre><h3 id=\"h_80a002fddb\"><b>2. Install the MCP server CLI<\/b><\/h3><p class=\"no-margin\">After Node.js is ready, install the MCP server globally:<\/p><pre><code># Install globally from npm \r\nnpm install -g hostinger-api-mcp \r\n\r\n# Or with yarn \r\nyarn global add hostinger-api-mcp \r\n\r\n# Or with pnpm \r\npnpm add -g hostinger-api-mcp<\/code><\/pre><h2 id=\"h_9672ca944a\"><b>AI integration setup<\/b><\/h2><p class=\"no-margin\">Tools like Claude, Cursor, Devin Desktop (formerly Windsurf), and OpenAI Codex don&rsquo;t require manually running the MCP server. <a 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><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><ul>\n<li>API_TOKEN: Your access token for authenticating with Hostinger&rsquo;s API. This is passed as an environment variable for improved security &mdash; do not write it directly into a config file on disk.<\/li>\n<li>\n<p class=\"no-margin\">DEBUG: Optional, set to &ldquo;true&rdquo; if you want verbose logs for debugging.<\/p>\n<\/li>\n<\/ul><h2 id=\"h-authentication\">Authentication<\/h2><p>The Hostinger API MCP server supports two authentication methods:<\/p><p><strong>API Token (original method &mdash; still supported)<\/strong><\/p><ul>\n<li>Generate a token in hPanel &rarr; Account &rarr; API<\/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><p><strong>OAuth (new)<\/strong><\/p><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 href=\"https:\/\/github.com\/hostinger\/api-mcp-server\" target=\"_blank\" rel=\"noopener\">GitHub repository<\/a><\/li>\n<\/ul><p>Both methods are supported simultaneously. Existing API token integrations do not require any changes.<\/p><h2 id=\"h_5989c73219\"><b>Additional resources<\/b><\/h2><ul>\n<li>\n<p class=\"no-margin\">&#128218; <b>API Docs<\/b>: <a 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\">&#128736;&#65039; <b>GitHub Repository<\/b>: <a 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><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 &mdash; 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":{"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":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":11580,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/342\/revisions\/11580"}],"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}]}}