Same price at renewalFree .com domain with yearly plans7-day money-back guarantee24/7 tickets · Live help Mon–Sat 9–6JazzCash & Easypaisa acceptedSame price at renewalFree .com domain with yearly plans7-day money-back guarantee24/7 tickets · Live help Mon–Sat 9–6JazzCash & Easypaisa accepted

XHOST MCP for AI Coding Agents

XHOST MCP connects AI coding agents such as Cursor, VS Code, Claude and Google Antigravity to your XHOST account. Ask your agent to build and deploy a site to your cPanel hosting, change nameservers, add DNS records, point a domain to Vercel or Netlify, or check your plan, usage and invoices. Connect with one click: sign in to XHOST, approve, done. It can never pay or buy anything.

Connect XHOST to your editor

Connect in one click (recommended)

Click your editor, sign in to XHOST, press Approve, and you are connected. No API key to copy, and you can disconnect any time below.

Server URLhttps://xhost.pk/api/mcp
  1. Click your editor above (or add the server URL).
  2. Your browser opens XHOST: sign in and press Approve. You return to the editor, connected.
  3. Ask your agent: “List my XHOST services” or “Deploy the dist folder to my XHOST site”.

Why developers move from Vercel, Netlify and Render to XHOST

  • One bill in rupees: hosting, domains, .pk domains and business email together, paid with JazzCash, Easypaisa, card or bank transfer.
  • Same price at renewal on shared hosting, with 3 to 20 sites per plan.
  • Deploy from your editor: your AI agent builds and deploys with one sentence, no CI setup.
  • Email on the same domain: mailboxes are included with every plan.
  • Keep Vercel or Netlify if you like: keep the domain at XHOST and point it there with connect_domain.

What you can ask your agent

  • "Build this Vite app and deploy it to my XHOST site."
  • "Deploy the docs to public_html/docs and show me the deployment history."
  • "Point shop.example.pk to my Vercel project."
  • "Switch example.pk to XHOST nameservers."
  • "Add the TXT record Google Search Console asked for."
  • "How much disk space is my hosting using, and when does it renew?"

Tools

ToolWhat it does
deployDeploy a build folder (dist/, out/, build/) to public_html or a folder inside it. The agent zips and uploads it in one command. Adds an SPA fallback on request.
list_deploymentsDeployment history for a hosting service: status, folder, file count and message.
list_services / get_serviceYour hosting accounts with plan, domain, status, disk and bandwidth usage, server IP and nameservers.
list_hosting_plansXHOST plans with PKR prices and features.
list_domains / get_domainYour domains with status, expiry and nameservers.
get_nameservers / set_nameserversRead or change nameservers: custom (e.g. Cloudflare), XHOST default or registrar DNS.
list_dns_records / add_dns_record / delete_dns_record / set_dns_recordsManage A, AAAA, CNAME, MX, TXT and NS records.
connect_domainPoint a domain to Vercel, Netlify or your XHOST hosting in one call, keeping email records.
list_invoicesInvoices and due dates, read only.
recent_activityEvery change made with your API keys.

Prompts included: migrate_from_vercel and deploy_this_project.

Set up in your AI tool

  • Cursor: Click “Add to Cursor”, then Connect next to xhost in Settings → MCP. Sign in to XHOST and approve.
  • VS Code: Click “Add to VS Code”, then Start the xhost server. VS Code opens the XHOST sign-in.
  • Claude Code: Run the command below, then /mcp → xhost → Authenticate.
  • Claude (claude.ai & Desktop): Settings → Connectors → Add custom connector, paste the server URL.
  • Google Antigravity & Windsurf: Add the server URL as serverUrl in mcp_config.json; sign in on first use.

Remote server (any client with remote MCP support; it opens the XHOST sign-in):

{
  "mcpServers": {
    "xhost": { "url": "https://xhost.pk/api/mcp" }
  }
}

Claude Code:

claude mcp add --transport http xhost https://xhost.pk/api/mcp

Local server with an API key (for CI or clients without remote MCP): create a key in Dashboard → Developers and use the xhost-mcp npm package (Node.js 18.17+):

{
  "mcpServers": {
    "xhost": {
      "command": "npx",
      "args": ["-y", "xhost-mcp"],
      "env": { "XHOST_API_KEY": "xhost_your_key" }
    }
  }
}

Safe by design

  • You approve each app: sign in to XHOST, choose read, write and deploy, and disconnect any app any time in Dashboard → Developers.
  • MCP-only access: connected apps and API keys cannot reach the rest of your account or log in to the dashboard.
  • No payments: the agent can read invoices but cannot pay or buy.
  • You approve changes: MCP clients ask before running a tool that changes something.
  • Activity log: every deploy, DNS and nameserver change is listed in your dashboard.
  • Safe deploys: builds only, never node_modules, .git or .env files; 50 MB and 20,000 files per deployment; files outside the upload are kept.

Moving a site from Vercel or Netlify

Static sites and single-page apps (React, Vite, Vue, Astro, Next.js static export) move to cPanel hosting as they are. Use the migrate_from_vercel prompt, or read using XHOST domains with Vercel and Netlify. Apps that need a Node.js server run on an XHOST VPS.

Frequently asked questions

What is XHOST MCP?

XHOST MCP is a Model Context Protocol server that lets AI coding agents such as Cursor, Claude Code, Claude Desktop and Google Antigravity work with your XHOST hosting, domains and DNS, for example deploying a build or adding a DNS record.

How do I connect XHOST MCP to Cursor or Claude?

Click "Add to Cursor" or "Add to VS Code" on xhost.pk/mcp, or add the server URL https://xhost.pk/api/mcp in Claude, Claude Code, Antigravity or Windsurf. Your browser opens XHOST: sign in, press Approve, and the editor is connected. No API key to copy. An npm package with API keys is also available for CI.

Can the AI agent spend money on my account?

No. XHOST API keys can read invoices and renewal dates but cannot pay or buy anything.

Can I deploy a Next.js or Vite app from Vercel to XHOST with MCP?

Yes for static output: build the project (Next.js with output: export) and ask your agent to deploy the out/ or dist/ folder. Apps that need a Node.js server run on an XHOST VPS.

Which AI tools will work with XHOST MCP?

Any client that supports the Model Context Protocol, including Cursor, Claude Code, Claude Desktop, Google Antigravity, VS Code and Windsurf.