@mukundakatta/domain-mcp
v0.1.0
Published
MCP server: extract eTLD, eTLD+1, subdomain from a domain name using the Public Suffix List.
Maintainers
Readme
domain-mcp
MCP server: split a domain or URL using the Public Suffix List. Distinguishes
bbc.co.uk (registrable) from co.uk (public suffix) — naive string splits
on . get this wrong.
Tool
parse
{ "input": "www.bbc.co.uk" }→
{
"input": "www.bbc.co.uk",
"hostname": "www.bbc.co.uk",
"subdomain": "www",
"domain": "bbc.co.uk",
"public_suffix": "co.uk",
"domain_without_suffix": "bbc",
"is_ip": false,
"is_icann": true,
"is_private": false
}Accepts a bare domain or a full URL. IPs are flagged via is_ip.
Configure
{ "mcpServers": { "domain": { "command": "npx", "args": ["-y", "@mukundakatta/domain-mcp"] } } }License
MIT.
