Skip to main content
Glama

namecheap-mcp

Stdio MCP server for Namecheap domains and DNS.

Why

Namecheap's official MCP server auth is broken (OAuth discovery points at www.namecheap.com instead of mcp.namecheap.com, single-use refresh tokens expire after ~24 hours or on concurrent refreshes), and setHosts is a footgun that overwrites the entire DNS zone (and resets EmailType if omitted) when you just want to patch one record.

Related MCP server: namecheap-webui-mcp

How

  • Zero-dependency stdio MCP server built on Namecheap's XML API.

  • Compresses the entire domain and DNS surface into 2 ergonomic tools (domains and dns) instead of 15+ scattered endpoints.

  • Safe read-merge-write DNS updates (set / delete by record ID or { type, name }) that automatically preserve existing records, TTLs, and EmailType (MX / MXE / FWD) unless mode: "replace" is explicitly requested.

  • Works directly with Namecheap XML API credentials or through a static-IP bearer proxy (like jump) so roaming networks never trip Namecheap's IP whitelist.

Tools

  • domains

    • list - List domains in account with paging and search.

    • get - Get domain details, lock state, nameservers, WhoisGuard, and contacts.

    • check - Check availability and pricing across standard and premium TLDs.

    • set_nameservers - Switch between Namecheap BasicDNS (default: true) and custom nameservers.

    • set_contacts - Update Registrant, Tech, Admin, and AuxBilling contacts.

    • set_lock - Lock or unlock registrar transfer lock.

    • register - Register a new domain (auto-fills contacts from an existing domain when omitted).

    • renew - Renew a domain.

    • balances - Get account balances.

  • dns

    • get - List DNS host records, emailType, and email forwarding rules.

    • set - Safe read-merge-write DNS updates (with automatic EmailType promotion/demotion, or mode: "replace").

    • delete - Delete specific DNS host records by id or { type, name, value }.

    • set_email_forwarding - Configure mailbox forwarding rules.

Usage

$ npm i
$ cp .env.example .env

Configure either Direct Namecheap API credentials or a Bearer Proxy in .env (or via env in mcp_config.json):

  • Direct API mode

    • NAMECHEAP_API_KEY - Namecheap XML API key.

    • NAMECHEAP_USER - Namecheap username.

    • NAMECHEAP_CLIENT_IP - Whitelisted client IPv4 address.

    • NAMECHEAP_URL (optional) - Defaults to https://api.namecheap.com/xml.response.

  • Bearer Proxy mode

    • NAMECHEAP_URL - Proxy endpoint URL.

    • NAMECHEAP_TOKEN - Proxy bearer token.

{
	"mcpServers": {
		"namecheap": {
			"command": "npx",
			"args": ["-y", "github:jessetane/namecheap-mcp"]
		}
	}
}

Test

$ npm test

License

MIT

Available Tools

2 tools
dnsB

Read, add/update (safe read-merge-write), or delete DNS host records and email forwarding settings on a Namecheap domain.

Inputs: action (required), domain (required), mode, upsert, +3 more.

domainsB

Manage Namecheap domain portfolio, availability & pricing checks, registration, renewal, nameservers, contacts, transfer lock, and account balances.

Inputs: action (required), page, years, domain, +9 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools target mostly distinct areas: domain portfolio/account/registration operations versus DNS records and email forwarding. There is minor boundary overlap around nameservers, which sit in the domains tool while DNS configuration is handled separately, but an agent can generally choose correctly.

    Naming Consistency5/5

    Both names are concise, lowercase resource nouns following the same convention. The naming is predictable and easy to map to the server's domain.

    Tool Count3/5

    Two broad tools can cover a lot of functionality, but the surface feels thin for full Namecheap domain and DNS lifecycle management. The tools are heavily aggregated, which may reduce discoverability and force agents to rely on long natural-language descriptions for action selection.

    Completeness4/5

    The set covers most core domain portfolio, registration, renewal, nameserver, contact, transfer-lock, balance, DNS record, and email-forwarding operations. Some lifecycle gaps remain, such as domain transfer initiation/status, privacy protection management, and DNSSEC controls.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides integration with the Namecheap API for domain management operations, including domain listing, availability checks, and nameserver configuration. It allows users to interact with their Namecheap account through natural language commands in MCP-compatible clients.
      3
      20
      MIT