Skip to main content
Glama

mcp-namecheap

Comprehensive MCP server for the Namecheap API. Manage domains, DNS records, nameservers, registration, and pricing — all from Claude, Cursor, or any MCP client.

Tools (10)

Tool

Description

namecheap_list_domains

List all domains in your account

namecheap_get_domain_info

Detailed info: owner, status, dates, DNS

namecheap_check_domain

Check domain availability (bulk)

namecheap_get_dns_hosts

Get DNS records (A, AAAA, CNAME, MX, TXT...)

namecheap_set_dns_hosts

Set DNS records (replaces all existing)

namecheap_get_nameservers

Get current nameservers

namecheap_set_nameservers

Set custom nameservers

namecheap_set_default_nameservers

Reset to Namecheap DNS

namecheap_register_domain

Register (purchase) a domain

namecheap_get_tld_pricing

Get TLD pricing (registration/renewal/transfer)

Related MCP server: dynadot-mcp

Setup

1. Get Namecheap API Access

  1. Log in to Namecheap

  2. Go to Profile → Tools → API Access

  3. Enable API access and whitelist your IP address

  4. Copy your API key

2. Install

git clone https://github.com/jarupai/mcp-namecheap.git
cd mcp-namecheap
npm install
npm run build

3. Configure Claude Code

Add to your Claude Code MCP settings (~/.claude/settings.json or project .claude/settings.local.json):

{
  "mcpServers": {
    "namecheap": {
      "command": "node",
      "args": ["/path/to/mcp-namecheap/dist/index.js"],
      "env": {
        "NAMECHEAP_API_USER": "your_username",
        "NAMECHEAP_API_KEY": "your_api_key",
        "NAMECHEAP_USERNAME": "your_username"
      }
    }
  }
}

Configure Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "namecheap": {
      "command": "node",
      "args": ["/path/to/mcp-namecheap/dist/index.js"],
      "env": {
        "NAMECHEAP_API_USER": "your_username",
        "NAMECHEAP_API_KEY": "your_api_key",
        "NAMECHEAP_USERNAME": "your_username"
      }
    }
  }
}

Environment Variables

Variable

Required

Description

NAMECHEAP_API_USER

Yes

API username

NAMECHEAP_API_KEY

Yes

API key

NAMECHEAP_USERNAME

Yes

Account username

NAMECHEAP_CLIENT_IP

No

Whitelisted IP (auto-detected if not set)

NAMECHEAP_SANDBOX

No

Set true for sandbox API

Examples

List your domains:

"Show me all my Namecheap domains"

Check availability:

"Is coolstartup.ai available?"

Manage DNS:

"Add a CNAME record for api.mysite.com pointing to myapp.railway.app"

Get pricing:

"How much does a .app domain cost?"

Register a domain:

"Register example.com for 1 year"

Important Notes

  • namecheap_set_dns_hosts replaces all records. Always read existing records first with namecheap_get_dns_hosts, modify the list, then set them all back.

  • namecheap_register_domain will charge your account. The AI will confirm before executing.

  • IP auto-detection uses public services (ipify.org, ip.sb, ifconfig.me). Set NAMECHEAP_CLIENT_IP manually if your IP is static.

Credits

Inspired by community MCP servers:

License

MIT

Available Tools

10 tools
namecheap_check_domainA

Check if one or more domains are available for registration. Returns availability and premium pricing.

Inputs: domains (required).

namecheap_get_dns_hostsA

Get all DNS host records for a domain (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA).

Inputs: domain (required).

namecheap_get_domain_infoA

Get detailed info about a domain: owner, status, creation/expiry dates, DNS provider, nameservers.

Inputs: domain (required).

namecheap_get_nameserversA

Get current nameservers for a domain and whether it uses Namecheap DNS or custom nameservers.

Inputs: domain (required).

namecheap_get_tld_pricingA

Get pricing for a TLD (.com, .net, .app, etc.) — registration, renewal, and transfer costs for different year periods.

Inputs: tld (required).

namecheap_list_domainsA

List all domains in your Namecheap account with details: expiration, auto-renew, lock status, DNS provider.

Inputs: page, pageSize.

namecheap_register_domainA

Register (purchase) a new domain name. Requires contact information as parameters. This will charge your Namecheap account.

Inputs: city (required), email (required), phone (required), domain (required), +9 more.

namecheap_set_default_nameserversA

Reset a domain to use Namecheap default nameservers. Use this to switch back from custom nameservers.

Inputs: domain (required).

namecheap_set_dns_hostsA

Set DNS host records for a domain. WARNING: This REPLACES all existing records. Always get current records first, modify them, and set the full list back.

Inputs: hosts (required), domain (required).

namecheap_set_nameserversA

Set custom nameservers for a domain (e.g. Cloudflare, AWS Route53). This switches the domain away from Namecheap DNS.

Inputs: domain (required), nameservers (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of domain management: listing, info, availability, DNS records, nameservers, pricing, and registration. While set_nameservers and set_default_nameservers are related, their descriptions clearly distinguish custom vs. default, preventing misselection.

    Naming Consistency5/5

    All tools follow the namecheap_<verb>_<object> pattern consistently. Verbs (list, get, check, set, register) are used predictably, and there is no mixed casing or stray naming.

    Tool Count5/5

    With 10 tools, the server covers the core domain management workflows (query, purchase, DNS, nameservers, pricing) without unnecessary bloat. Each tool addresses a real need and earns its place.

    Completeness3/5

    The tool set lacks key domain lifecycle operations such as renewal, transfer, and contact updates. While DNS and nameserver management are well covered, this gap will cause agent failures for expiration-related tasks.

    Maintenance

    ActivityInactive
    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
      34 npm
      20
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server that wraps the Namecheap API, enabling AI assistants to manage domains, DNS records, SSL certificates, and account information.
      2
      12 npm
      -