Labsco
johnsorrentino logo

Namecheap

โ˜… 17

from johnsorrentino

Manage domains using the Namecheap API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

MCP Namecheap Server

A Model Context Protocol (MCP) server that provides integration with the Namecheap API for domain management operations.

Features

I only added the functionality I use and I don't think it's a good idea to allow an agent to register domains. The complete set of Namecheap API methods can be found here.

  • Get Domain List: Retrieve all domains in your Namecheap account
  • Check Domain Availability: Check if domains are available for registration
  • Set Custom DNS: Configure custom nameservers for your domains
  • Configurable Tools: Enable/disable specific tools to control what's available in Cursor

Development

Scripts

  • npm run build - Build the TypeScript project
  • npm run dev - Run in development mode with tsx
  • npm start - Run the built project

Project Structure

src/
โ”œโ”€โ”€ index.ts          # Main MCP server implementation
โ”œโ”€โ”€ namecheap-client.ts # Namecheap API client
โ””โ”€โ”€ types.ts          # TypeScript type definitions

API Reference

This server uses the following Namecheap API endpoints:

  • namecheap.domains.getList - Retrieve domain list
  • namecheap.domains.check - Check domain availability
  • namecheap.domains.dns.setCustom - Set custom nameservers

For more information, see the Namecheap API documentation.

Error Handling

The server includes comprehensive error handling for:

  • Missing or invalid API credentials
  • Network connectivity issues
  • Namecheap API errors
  • Invalid parameters
  • Disabled tools

Security Considerations

  • Store API credentials securely
  • Keep your IP whitelist updated
  • Use environment variables for sensitive configuration
  • Consider using the sandbox environment for testing