spaceship-mcp

spaceship-mcp

MCP server for managing domain registrations, DNS, WHOIS privacy, transfers, and marketplace listings via Spaceship API.

Category
访问服务器

README

Spaceship MCP Server

License: MIT Node.js Version TypeScript

MCP server for Spaceship (by Namecheap) — domain registrar with DNS management, WHOIS privacy, domain transfers, and a built-in SellerHub marketplace. Manage everything from any MCP-compatible client.

35 tools across 9 categories. Built-in response caching, rate limit handling with exponential backoff, and actionable error messages.

Requirements

  • Node.js 20+
  • Spaceship API key and secret (API Manager)

Installation

git clone https://github.com/hlebtkachenko/spaceship-mcp.git
cd spaceship-mcp
npm ci
npm run build

Docker

docker build -t spaceship-mcp .
docker run -i --rm \
  -e SPACESHIP_API_KEY=your-key \
  -e SPACESHIP_API_SECRET=your-secret \
  spaceship-mcp

Configuration

Cursor

~/.cursor/mcp.json

{
  "mcpServers": {
    "spaceship": {
      "command": "node",
      "args": ["/path/to/spaceship-mcp/dist/index.js"],
      "env": {
        "SPACESHIP_API_KEY": "your-api-key",
        "SPACESHIP_API_SECRET": "your-api-secret"
      }
    }
  }
}

Claude Desktop

claude_desktop_config.json (location)

{
  "mcpServers": {
    "spaceship": {
      "command": "node",
      "args": ["/path/to/spaceship-mcp/dist/index.js"],
      "env": {
        "SPACESHIP_API_KEY": "your-api-key",
        "SPACESHIP_API_SECRET": "your-api-secret"
      }
    }
  }
}

Claude Code

.mcp.json in your project root, or ~/.claude.json globally:

{
  "mcpServers": {
    "spaceship": {
      "command": "node",
      "args": ["/path/to/spaceship-mcp/dist/index.js"],
      "env": {
        "SPACESHIP_API_KEY": "your-api-key",
        "SPACESHIP_API_SECRET": "your-api-secret"
      }
    }
  }
}

Any MCP client (stdio)

The server uses stdio transport. Point your MCP client to:

node /path/to/spaceship-mcp/dist/index.js

With SPACESHIP_API_KEY and SPACESHIP_API_SECRET environment variables set.

Environment Variables

Variable Required Default Description
SPACESHIP_API_KEY Yes API key from API Manager
SPACESHIP_API_SECRET Yes API secret from API Manager
SPACESHIP_CACHE_TTL No 120 Response cache lifetime in seconds (0 to disable)
SPACESHIP_MAX_RETRIES No 3 Max retry attempts for rate-limited (429) and timeout requests

Tools

Domains (12 tools)

Tool Description
ss_domains List all domains (paginated)
ss_domain_info Get domain details (status, expiry, nameservers, privacy)
ss_domain_check Check single domain availability
ss_domains_check Bulk availability check (up to 20 domains)
ss_domain_register Register a domain (async)
ss_domain_renew Renew a domain (async)
ss_domain_autorenew Toggle auto-renewal
ss_domain_nameservers Update nameservers (basic or custom)
ss_domain_contacts Update domain contacts
ss_domain_privacy Set WHOIS privacy level
ss_domain_transfer_lock Lock/unlock transfers
ss_domain_email_protection Toggle contact form in WHOIS

DNS (3 tools)

Tool Description
ss_dns_records List DNS records (A, AAAA, CNAME, MX, TXT, SRV, etc.)
ss_dns_save Add or update records (up to 500 per call)
ss_dns_delete Delete records by exact match

Contacts (4 tools)

Tool Description
ss_contact_save Create/update contact, returns contact ID
ss_contact_get Read contact details by ID
ss_contact_attr_save Save TLD-specific contact attributes (e.g. .ca)
ss_contact_attr_get Read contact attributes by ID

Transfers (4 tools)

Tool Description
ss_domain_transfer Initiate inbound domain transfer (async)
ss_domain_transfer_details Check transfer status
ss_domain_auth_code Get EPP/auth code for outbound transfers
ss_domain_restore Restore a deleted/expired domain (async)

Personal Nameservers (4 tools)

Tool Description
ss_personal_ns_list List vanity/glue nameservers for a domain
ss_personal_ns_get Get IPs for a specific nameserver host
ss_personal_ns_update Create or update a personal nameserver
ss_personal_ns_delete Delete a personal nameserver

SellerHub (7 tools)

Tool Description
ss_sellerhub_list List marketplace listings
ss_sellerhub_get Get listing details
ss_sellerhub_create List a domain for sale
ss_sellerhub_update Update listing (price, description)
ss_sellerhub_delete Remove from SellerHub
ss_sellerhub_checkout Create Buy Now checkout link
ss_sellerhub_verify Get DNS verification records

Analysis (1 tool)

Tool Description
ss_dns_alignment Compare expected vs actual DNS records to detect misconfigurations

Async Operations (1 tool)

Tool Description
ss_async_status Check status of registration, renewal, transfer, or restore

Async Operations

Domain registration, renewal, transfer, and restoration are asynchronous. These tools return an asyncOperationId — use ss_async_status to poll for completion. Statuses: pending, success, failed.

Response Caching

GET responses are cached for 120 seconds by default (configurable via SPACESHIP_CACHE_TTL). Write operations automatically invalidate related cache entries. Set SPACESHIP_CACHE_TTL=0 to disable caching entirely.

Rate Limit Handling

When Spaceship returns HTTP 429, the client automatically retries with exponential backoff, respecting the Retry-After header when present. Default: up to 3 retries. Timeout errors are also retried.

Security

  • 30-second timeout on all HTTP requests
  • Path injection prevention (rejects .., #)
  • Automatic retry with backoff for rate limits and timeouts
  • Error responses truncated to 500 characters
  • Context-aware recovery hints in error messages
  • JSON parsing wrapped in try/catch
  • All parameters validated with Zod schemas
  • No credentials stored on disk (env vars only)

Architecture

src/
  index.ts               Entry point, env validation, config
  spaceship-client.ts    API client (key + secret headers, retry, caching)
  cache.ts               TTL-based response cache with write invalidation
  tools/
    domains.ts           Domain management + email protection (12 tools)
    dns.ts               DNS records (3 tools)
    contacts.ts          Contact management + TLD attributes (4 tools)
    transfer.ts          Transfers and restore (4 tools)
    nameservers.ts       Personal nameservers (4 tools)
    sellerhub.ts         Marketplace (7 tools)
    analysis.ts          DNS alignment check (1 tool)
    async.ts             Async operation polling (1 tool)

Tech Stack

  • TypeScript, ESM
  • @modelcontextprotocol/sdk (stdio transport)
  • Zod (schema validation)
  • Native fetch with AbortSignal.timeout

API Reference

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选