Skip to main content
Glama
Spaceship MCP Server

Spaceship MCP Server

by YahIsKing

Spaceship MCP Server

An MCP (Model Context Protocol) server for managing domains, DNS records, and nameservers on Spaceship.com — directly from Claude, Cursor, or any MCP-compatible AI client.

Features

22 tools covering the full Spaceship API:

Category

Tools

Domains

List domains, get domain details, check availability (single + bulk)

DNS Records

Get, create/update, delete — supports A, AAAA, CNAME, MX, TXT, NS, SRV

Nameservers

Get and update nameservers (switch to Cloudflare, etc.)

Management

Auto-renew, transfer lock, transfer auth code, domain renewal

Privacy

WHOIS privacy level, email protection/contact form

Transfers

Initiate inbound transfers, check transfer status

Contacts

Update domain contact assignments

Personal NS

Manage glue records (personal nameservers)

Async Ops

Check status of async operations

Related MCP server: AgentDomain

Quick Start

1. Get your Spaceship API credentials

Go to your Spaceship account → API → Create a new API key. You'll get an API Key and API Secret.

2. Install

# Clone the repo
git clone https://github.com/YahIsKing/spaceship-mcp.git
cd spaceship-mcp
npm install

3. Add to Claude Code

claude mcp add spaceship \
  --scope user \
  -e SPACESHIP_API_KEY=your_key_here \
  -e SPACESHIP_API_SECRET=your_secret_here \
  -- node /path/to/spaceship-mcp/index.js

Then restart Claude Code. The Spaceship tools will be available globally across all projects.

Alternative: Use a .env file

Copy .env.example to .env and fill in your credentials:

cp .env.example .env
SPACESHIP_API_KEY=your_key_here
SPACESHIP_API_SECRET=your_secret_here

Then add to Claude without inline env vars:

claude mcp add spaceship --scope user -- node /path/to/spaceship-mcp/index.js

For Cursor / VS Code

Add to your MCP settings (.cursor/mcp.json or VS Code MCP config):

{
  "mcpServers": {
    "spaceship": {
      "command": "node",
      "args": ["/path/to/spaceship-mcp/index.js"],
      "env": {
        "SPACESHIP_API_KEY": "your_key_here",
        "SPACESHIP_API_SECRET": "your_secret_here"
      }
    }
  }
}

Usage Examples

Once connected, you can ask your AI assistant to:

  • "List all my domains"

  • "Get DNS records for example.com"

  • "Add a CNAME record for www pointing to my-app.vercel-dns.com"

  • "Switch example.com nameservers to Cloudflare"

  • "Check if coolstartup.com is available"

  • "Enable auto-renew on all my domains"

  • "Get the transfer auth code for example.com"

  • "Set WHOIS privacy to high on all domains"

Tools Reference

Domain Queries

Tool

Description

list_domains

List all domains with pagination

get_domain

Get full domain details (expiry, status, nameservers, contacts)

check_domain_availability

Check if a single domain is available

check_domains_availability

Check availability of multiple domains at once

DNS Records

Tool

Description

get_dns_records

Get all DNS records for a domain (full values, no truncation)

set_dns_records

Add or update DNS records (handles type-specific field mapping)

delete_dns_records

Delete specific DNS records by type, name, and value

Supported record types: A, AAAA, CNAME, MX, TXT, NS, SRV

The server automatically maps record values to the correct Spaceship API fields:

  • A/AAAA → address

  • CNAME → cname

  • MX → exchange + preference

  • TXT → value

  • NS → nsdname

  • SRV → target + priority

Nameservers

Tool

Description

get_nameservers

Get current nameservers for a domain

set_nameservers

Update nameservers (e.g., point to Cloudflare)

Domain Management

Tool

Description

set_auto_renew

Enable or disable auto-renewal

renew_domain

Renew a domain for additional years

get_transfer_auth_code

Get the EPP authorization code for outbound transfers

set_transfer_lock

Lock or unlock domain transfers

transfer_domain

Initiate an inbound domain transfer to Spaceship

get_transfer_status

Check the status of an in-progress transfer

Privacy & WHOIS

Tool

Description

set_privacy

Set WHOIS privacy level (high, low, off)

set_email_protection

Toggle WHOIS contact form

Contacts

Tool

Description

set_domain_contacts

Update registrant, admin, tech, billing contacts

Personal Nameservers (Glue Records)

Tool

Description

get_personal_nameservers

List personal nameserver records

set_personal_nameserver

Create or update a glue record

delete_personal_nameserver

Delete a glue record

Async Operations

Tool

Description

get_async_operation

Check status of async operations (registration, transfer)

API Notes

This server was built by reverse-engineering the Spaceship API, as their documentation has inaccuracies. Key findings:

  • DNS endpoint: /v1/dns/records/{domain} (not /v1/domains/{domain}/dns/records)

  • DNS DELETE: Expects a bare JSON array, not { items: [...] }

  • DNS PUT: Expects { items: [...] } with type-specific value fields

  • Auto-renew field: isEnabled (not autoRenew)

  • Transfer lock field: isLocked (not transferLock)

  • Multi-availability field: domains (not domainNames)

  • Nameservers: Included in domain detail response, no separate GET endpoint

  • Set nameservers: Requires { provider: "custom"|"basic", hosts: [...] }

Requirements

  • Node.js 18+

  • Spaceship API key and secret

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers