{"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":"2025-04-14T07:56:51","modified_gmt":"2025-04-14T07:56:51","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 <b>Hostinger MCP server<\/b> enables seamless integration of Hostinger&rsquo;s API with AI tools that support the <b>Model Context Protocol (MCP)<\/b> &mdash; such as <b>Claude<\/b>, <b>Cursor<\/b>, or other AI coding assistants. This server exposes Hostinger API endpoints as callable tools, 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><p class=\"no-margin\">\n<\/p><h2 id=\"h_c9e0ca7fa5\"><b>Key capabilities<\/b><\/h2><ul>\n<li>\n<p class=\"no-margin\"><b>API Integration<\/b>: Connects directly to <a href=\"https:\/\/developers.hostinger.com\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Hostinger&rsquo;s Developer API<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>AI Tool Compatibility<\/b>: Built for environments supporting MCP, like Claude or Cursor<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Automated Operations<\/b>: Enables AI to manage services and more<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">\n<\/p><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 href=\"https:\/\/github.com\/nvm-sh\/nvm\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Node Version Manager (nvm)<\/a>:<\/p><pre><code># Install nvm (if not already installed)<br>curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | bash<br><br># Reload shell<br>source ~\/.bashrc<br><br># Install Node.js 20<br>nvm install 20<br><br># Set it as default<br>nvm use 20<\/code><\/pre><p class=\"no-margin\">\n<\/p><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 <br>npm install -g hostinger-api-mcp <br><br># Or with yarn <br>yarn global add hostinger-api-mcp <br><br># Or with pnpm <br>pnpm add -g hostinger-api-mcp<\/code><\/pre><p class=\"no-margin\">\n<\/p><h2 id=\"h_9672ca944a\"><b>AI integration setup<\/b><\/h2><p class=\"no-margin\">Tools like <b>Claude<\/b> and <b>Cursor<\/b> don&rsquo;t require manually running the MCP server. <a href=\"https:\/\/modelcontextprotocol.io\/quickstart\/user\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">This article<\/a> provides instructions on how to provide Claude with the following configuration:<\/p><pre><code>{<br>  \"mcpServers\": {<br>    \"hostinger-api\": {<br>      \"command\": \"hostinger-api-mcp\",<br>      \"env\": {<br>        \"DEBUG\": \"false\",<br>        \"APITOKEN\": \"YOUR API TOKEN\"<br>      }<br>    }<br>  }<br>}<\/code><\/pre><ul>\n<li>\n<p class=\"no-margin\">APITOKEN: Your access token for authenticating with Hostinger&rsquo;s API. Obtain it via <a href=\"https:\/\/hpanel.hostinger.com\/profile\/api\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">hpanel.hostinger.com<\/a><\/p>\n<\/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><p class=\"no-margin\">\n<\/p><h2 id=\"h_5989c73219\"><b>Additional resources<\/b><\/h2><ul>\n<li>\n<p class=\"no-margin\">&#128218; <b>API Docs<\/b>: <a href=\"https:\/\/developers.hostinger.com\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">https:\/\/developers.hostinger.com\/<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">&#128736;&#65039; <b>GitHub Repository<\/b>: <a href=\"https:\/\/github.com\/hostinger\/api-mcp-server\" target=\"_blank\" class=\"intercom-content-link\" 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":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":5785,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/342\/revisions\/5785"}],"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}]}}