# namecheap-api-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/lanternrow/namecheap-api-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 215  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/namecheap-api-mcp

## Description
Namecheap API — domains, DNS, contacts, registrar lock, SSL listing, and pricing.

## Tools
Capabilities this server exposes over MCP:

- **check_connection** — Verify credentials + IP whitelist; returns the account balance summary.
- **list_domains** — List domains with expiry, lock, auto-renew, and WhoisGuard status (paged/searchable).
- **get_domain_info** — Detailed info for one domain.
- **check_domains** — Check availability + premium pricing (up to 50 at once).
- **get_domain_contacts** — Registrant / Tech / Admin / AuxBilling contacts.
- **get_registrar_lock** — Registrar lock status.
- **get_dns_hosts** — All DNS host records for a domain.
- **get_nameservers** — Nameservers and whether Namecheap DNS is in use.
- **get_email_forwarding** — Email forwarding rules.
- **get_pricing** — Namecheap pricing for a product type (cache the results).
- **list_ssl_certificates** — SSL certificates with type, host, status, expiry.
- **set_dns_hosts** — Replace **all** host records (destructive: omitted records are deleted — send the full set).
- **set_default_dns** — Switch a domain to Namecheap's default nameservers.
- **set_custom_nameservers** — Point a domain at custom nameservers.
- **set_email_forwarding** — Set email forwarding rules.
- **set_registrar_lock** — Lock / unlock a domain at the registrar.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "namecheap-api-mcp": {
    "command": "npx",
    "args": ["-y","namecheap-api-mcp"],
    "env": {
      "NAMECHEAP_API_USER": "",
      "NAMECHEAP_API_KEY": "",
      "NAMECHEAP_CLIENT_IP": ""
    }
  }
}
```

**Requires environment variables:** `NAMECHEAP_API_USER`, `NAMECHEAP_API_KEY`, `NAMECHEAP_CLIENT_IP` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What namecheap-api-mcp MCP server does

namecheap-api-mcp MCP server connects an MCP-compatible AI client to the Namecheap API. It provides account connection checks, domain inventory, individual domain details, availability checks, contacts, registrar-lock status, DNS records, nameservers, email forwarding, product pricing, and SSL certificate listings.

The server also exposes configuration changes for DNS hosts, nameservers, forwarding rules, and registrar locks. Its write surface is intentionally limited to configuration: it does not register or renew domains, reactivate domains, transfer domains, buy or activate SSL certificates, add funds, or modify account and address data.

## How it works

The package communicates with Namecheap using the credentials and client IP supplied through environment variables. Namecheap requires the public IPv4 address running the server to be whitelisted, so the API access settings and runtime network location must match. The server parses Namecheap’s XML error responses and reports API error numbers and messages even when the HTTP response itself is successful.

Domain availability checks accept up to 50 domains in one request and can include premium pricing. Domain listings support pagination and search. Pricing results should be cached by the calling workflow when appropriate.

`set_dns_hosts` replaces the complete host-record collection rather than applying a single-record patch. Before using it, read the existing records, merge the intended change, and submit the full resulting set; records left out of the request are deleted.

## Setup and configuration

Enable Namecheap API access under the account’s API Access settings, copy the API key, and whitelist the public IPv4 address of the machine that will run the process. Production API access also has Namecheap eligibility requirements: an account must have at least 20 domains, a balance of at least $50, or $50 in lifetime spending.

The standard launch configuration uses `npx -y namecheap-api-mcp` and sets `NAMECHEAP_API_USER`, `NAMECHEAP_API_KEY`, and `NAMECHEAP_CLIENT_IP`. `NAMECHEAP_USERNAME` is optional and defaults to the API user; it is relevant when using reseller sub-users. `NAMECHEAP_ENVIRONMENT` defaults to `production` and can be set to `sandbox`.

Alternatively, clone the repository, install dependencies, run the build, and point the client at `dist/index.js`. A local `.env` file can be used with Node’s native `--env-file` option. Credentials are read from environment variables and are not hard-coded, logged, or written to disk by the server.

## Tools and capabilities

Read tools include:

- `check_connection` for credential, whitelist, and balance verification.
- `list_domains` and `get_domain_info` for domain inventory and details.
- `check_domains` for availability and premium pricing.
- `get_domain_contacts`, `get_registrar_lock`, and `get_nameservers` for account configuration data.
- `get_dns_hosts` and `get_email_forwarding` for DNS and forwarding inspection.
- `get_pricing` and `list_ssl_certificates` for product prices and certificate status.

Configuration tools include `set_dns_hosts`, `set_default_dns`, `set_custom_nameservers`, `set_email_forwarding`, and `set_registrar_lock`. These changes do not directly charge the account according to the documented safety model.

## Limitations and notes

namecheap-api-mcp MCP server requires IPv4 for the whitelisted client address; IPv6 is not supported for this requirement. The Namecheap API places the key in the query string by design, but the server does not log request URLs or the key. Error output exposes only the Namecheap error number and message.

The server cannot perform purchases, registrations, renewals, transfers, reactivations, SSL activation, balance funding, or account/address mutations. Treat DNS replacement as destructive even though it is configuration-only: omitted records are removed by Namecheap. The API key should be treated as a secret and kept out of client configuration files that may be shared.

_Full upstream README: https://allmcps.com/mcp/namecheap-api-mcp/readme_

