简介
name.com registrar
原始描述
Domain registrar and DNS manager using the Name.com CORE API. Use when the user asks to search for, buy, or register domains, manage DNS records (A, AAAA, CN...
通过你的 Agent 添加
安装目录:namecom-registrar/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: namecom-registrar
description: Autonomous domain registrar and DNS manager using the Name.com CORE API. Use when the user asks to search for, buy, or register domains, manage DNS records (A, AAAA, CNAME, MX, TXT), solve ACME DNS-01 challenges for TLS certificates, or update dynamic DNS for residential/home-lab setups.
metadata: {"openclaw": {"requires": {"bins": ["node", "npm"], "env": ["NAMECOM_USERNAME", "NAMECOM_TOKEN"], "envOptional": ["NAMECOM_USERNAME_TEST", "NAMECOM_TOKEN_TEST"]}, "primaryEnv": "NAMECOM_TOKEN", "homepage": "https://github.com/patramsey/namecom-clawbot", "install": [{"id": "node", "kind": "node", "package": "namecom-clawbot", "bins": ["namecom-clawbot"], "label": "Install namecom-clawbot MCP server (npm)"}]}}
Name.com Domain Registrar & DNS Manager
MCP server providing nine tools for autonomous domain registration and DNS management against the Name.com CORE API (v1).
Environment Variables
Set credentials before starting the server:
| Variable | Required | Description |
|---|---|---|
NAMECOM_USERNAME |
Yes | Name.com account username |
NAMECOM_TOKEN |
Yes | Name.com API token |
NAMECOM_USERNAME_TEST |
Optional | Sandbox username (no real charges) |
NAMECOM_TOKEN_TEST |
Optional | Sandbox API token |
Generate tokens at Account > Security > API Access. For sandbox testing, create sandbox credentials there and set only NAMECOM_USERNAME_TEST and NAMECOM_TOKEN_TEST (leave production vars unset); the server then targets the sandbox API.
Security & trust
- Token scope: The API token has full account access (domains, DNS, purchases). Name.com does not document per-operation token scopes; use sandbox credentials until you have verified behavior. You can harden production tokens with IP whitelisting (Account > Security > API Access) to limit where the token can be used.
- Purchases:
register_domain performs a zero-click purchase using the account’s default payment profile (no extra confirmation step). Verify payment settings and test with sandbox first; for production, consider using a payment method with spending limits or alerts.
- Install & supply chain: This skill installs the npm package
namecom-clawbot. The package is published with signed npm provenance (GitHub Actions), so you can verify on the npm package page that the build matches the GitHub repo. Review the repo and package before installing. To limit risk, run the MCP server in an isolated environment (e.g. container or VM) and use sandbox credentials first.
Running the Server
# Install & build
npm install && npm run build
# Run (stdio transport — used by MCP hosts like Cursor)
node dist/src/index.js
register_domain performs a zero-click purchase using the account’s default payment profile (no extra confirmation step). Verify payment settings and test with sandbox first; for production, consider using a payment method with spending limits or alerts.namecom-clawbot. The package is published with signed npm provenance (GitHub Actions), so you can verify on the npm package page that the build matches the GitHub repo. Review the repo and package before installing. To limit risk, run the MCP server in an isolated environment (e.g. container or VM) and use sandbox credentials first.# Install & build
npm install && npm run build
# Run (stdio transport — used by MCP hosts like Cursor)
node dist/src/index.js
Or add to your MCP host config:
{
"mcpServers": {
"namecom-registrar": {
"command": "node",
"args": ["dist/src/index.js"],
"env": {
"NAMECOM_USERNAME": "<your-username>",
"NAMECOM_TOKEN": "<your-api-token>"
}
}
}
}
Tools
check_domain
check_domainCheck availability and pricing for up to 50 specific domain names at once. Returns purchase price (USD), renewal price, and premium status.
Always call this before register_domain to confirm availability and get pricing for premium domains.
search_domain
Keyword-based domain search. Provide a keyword and optionally filter by TLDs to get suggested available domain names with pricing. Use this when the user wants to brainstorm names rather than check a specific one.
register_domain
Zero-click domain purchase using the account's default payment profile. Automatically enables:
- WHOIS Privacy — personal info hidden from public WHOIS
- Registrar Lock — prevents unauthorized transfers
For premium domains, pass the purchasePrice and purchaseType values from check_domain.
list_domains
List all domains in the account with expiration dates, autorenew/lock/privacy status. Use to see what the user already owns.
get_domain
Get detailed info for a single domain — contacts, nameservers, expiration, renewal pricing.
set_nameservers
Replace a domain's nameservers. Use when pointing a domain to Cloudflare, Route 53, Fly.io DNS, etc.
manage_dns
Create, delete, or list DNS records. Supported types: A, AAAA, CNAME, MX, TXT, ANAME, NS, SRV.
- Use
action="list"to see all records and get record IDs for deletion - Use
host=""orhost="@"for apex records,host="*"for wildcard - MX and SRV records require
priority
solve_dns01_challenge
End-to-end ACME DNS-01 challenge workflow:
- Creates
_acme-challengeTXT record with the challenge digest - Polls Google DNS and Cloudflare DNS every 5s until global propagation (up to 2 min)
- Cleans up the TXT record on timeout or error
Returns the recordId so the caller can delete the record after certificate validation completes.
update_ddns
Dynamic DNS updater for residential/home-lab IPs:
- Detects the machine's current public IPv4 via ipify
- Finds the existing A record for the given host
- Updates it if the IP changed, creates it if none exists, or skips if already correct
Example Workflows
Find and buy a cheap .dev domain, set up a wildcard A record:
search_domainwithkeyword="coolproject",tldFilter=["dev", "app"]- Pick the cheapest purchasable result
register_domainwith the chosen namemanage_dns→action="create",host="*",type="A",answer="<ip>"
See what domains you already own and check one's details:
list_domainsto get the full inventoryget_domainwith a specific domain to see contacts, nameservers, expiration
Update DDNS after IP change:
update_ddnswithdomainName="example.com",host="home"- Tool auto-detects the new public IP and patches the A record
Solve an ACME DNS-01 challenge for Let's Encrypt:
solve_dns01_challengewithdomainName="example.com",challengeValue="<digest>"- Wait for the tool to confirm propagation
- Complete ACME validation with the CA
manage_dns→action="delete",recordId=<id from step 1>to clean up
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。