npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

xhost-mcp

v1.0.1

Published

XHOST MCP server: deploy to cPanel, manage domains, nameservers and DNS, and read hosting plans and invoices from Cursor, VS Code, Claude, Google Antigravity and other MCP clients. One-click OAuth remote server at https://xhost.pk/api/mcp, or run locally

Readme

XHOST MCP

Deploy to XHOST hosting and manage your domains, nameservers and DNS from AI coding agents: Cursor, Claude Code, Claude Desktop, Google Antigravity, VS Code, Windsurf and any other Model Context Protocol client.

"Build this project and deploy it to my XHOST site." "Point shop.example.pk to my Vercel project." "Switch example.pk to XHOST nameservers." "Add the TXT record Google Search Console asked for."

Fastest: connect in one click (no API key)

XHOST also runs this server for you at https://xhost.pk/api/mcp with OAuth sign-in:

  1. Open https://xhost.pk/mcp and click Add to Cursor or Add to VS Code (or add the URL below in your client).
  2. Your browser opens XHOST: sign in and press Approve (choose read / write / deploy).
  3. You are back in your editor, connected. Disconnect any time in Dashboard → Developers.

| Client | How | |---|---| | Cursor | One-click button on xhost.pk/mcp, or {"mcpServers":{"xhost":{"url":"https://xhost.pk/api/mcp"}}} | | VS Code | One-click button on xhost.pk/mcp, or .vscode/mcp.json: {"servers":{"xhost":{"type":"http","url":"https://xhost.pk/api/mcp"}}} | | Claude Code | claude mcp add --transport http xhost https://xhost.pk/api/mcp, then /mcp → xhost → Authenticate | | Claude (claude.ai & Desktop) | Settings → Connectors → Add custom connector → https://xhost.pk/api/mcp | | Google Antigravity, Windsurf | {"mcpServers":{"xhost":{"serverUrl":"https://xhost.pk/api/mcp"}}} in mcp_config.json |

With the remote server, deploy returns a one-time upload link and the exact command; the agent zips your build folder and uploads it with curl.

Use this npm package instead when your client has no remote MCP support, or for CI and scripts with an API key:

1. Create an API key

Log in at https://xhost.pk/dashboard/developers → Create API key. Choose permissions:

| Permission | Allows | |---|---| | read | Plans, services, usage, deployments, domains, nameservers, DNS, invoices, activity | | write | Change nameservers and DNS records, point domains to Vercel / Netlify / XHOST | | deploy | Upload builds to your cPanel hosting |

The key (xhost_…) is shown once. Keys never allow payments or purchases.

2. Add XHOST to your AI tool

The server runs with Node.js 18.17 or newer:

npx -y xhost-mcp

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project):

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

Claude Code

claude mcp add xhost --env XHOST_API_KEY=xhost_your_key -- npx -y xhost-mcp

Claude Desktop

Settings → Developer → Edit Config (claude_desktop_config.json), same block as Cursor under "mcpServers".

Google Antigravity

Agent panel → … → MCP Servers → Manage → View raw config (mcp_config.json), same block as Cursor under "mcpServers".

VS Code

.vscode/mcp.json:

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

Tools

| Tool | What it does | |---|---| | xhost_whoami | Account, key permissions, counts | | list_hosting_plans | Plans and PKR prices | | list_services / get_service | Hosting accounts, usage, server nameservers and IP | | deploy | Zip a local build folder and deploy it to public_html (or a folder inside it) | | list_deployments | Deployment history | | list_domains / get_domain | Domains, expiry, status | | get_nameservers / set_nameservers | Read or change nameservers (custom, XHOST default or registrar DNS) | | list_dns_records / add_dns_record / delete_dns_record / set_dns_records | DNS management | | connect_domain | Point a domain to Vercel, Netlify or XHOST hosting in one call (keeps email records) | | list_invoices | Invoices (read only) | | recent_activity | Changes made with API keys |

Prompts: migrate_from_vercel, deploy_this_project.

Deploy notes

  • Deploy the build output (dist/, out/, build/), not the project root. node_modules, .git and .env files are never uploaded.
  • Files with the same name are overwritten; other files on the server are kept.
  • Limits per deployment: 50 MB packed, 20,000 files.
  • For single-page apps pass spa_fallback: true to add an .htaccess route fallback.
  • Next.js: set output: 'export'. Apps that need a Node.js server run on an XHOST VPS.

Environment

| Variable | Default | |---|---| | XHOST_API_KEY | required | | XHOST_API_URL | https://xhost.pk/api/mcp/v1 |

Support: [email protected] · WhatsApp +92 313 4595313 · https://xhost.pk/mcp