Www
БесплатноНе проверенEnables MCP server discovery via DNS TXT records, allowing agents to find, browse, and install MCP servers using existing DNS infrastructure without centralized
Описание
Enables MCP server discovery via DNS TXT records, allowing agents to find, browse, and install MCP servers using existing DNS infrastructure without centralized registries.
README
npm version License: MIT Node.js >= 18
DNS-based MCP service discovery and installation.
Problem
Agents need to discover MCP servers, but current approaches lean on centralized registries or hardcoded configurations. This creates single points of failure, adds deployment overhead, and forces agents into walled gardens. There should be a way to discover MCP services using infrastructure that already exists everywhere: DNS.
How It Works
mcp-www is itself a standard MCP server. An agent connects to it the same way it connects to any other MCP server — no new client code, no special SDK, no registry signup.
Once connected, the agent calls discover with a domain name. mcp-www performs a standard UDP DNS TXT lookup for _mcp.{domain}, parses the records, and returns all advertised MCP servers. Then browse connects to those servers and retrieves their full manifests. Finally, install generates the config to permanently add a server to the user's MCP client.
Agent → mcp-www → discover("example.com") → DNS TXT lookup
→ browse("example.com") → server card GET with MCP handshake fallback
→ install("example.com") → config for Claude Desktop / VS Code / Cursor / Windsurf
No HTTP registry in the loop. The DNS infrastructure is the registry.
Install
npm install -g mcp-www
Or use directly with npx:
npx mcp-www
Claude Code / MCP Client Config
Add to your MCP client config (e.g., .mcp.json):
{
"mcpServers": {
"mcp-www": {
"type": "stdio",
"command": "npx",
"args": ["mcp-www"]
}
}
}
Try It
korm.co publishes a live _mcp TXT record. You can discover and interact with it end-to-end:
discover("korm.co") → DNS lookup, returns all _mcp TXT records
discover_browse("korm.co") → DNS + server card in one call, init as fallback
browse({ domain: "korm.co" }) → server card first, MCP handshake as fallback
call_remote_tool("https://mcp.korm.co", "browse_posts") → returns blog articles
read_remote_resource("https://mcp.korm.co", "korm://bio") → reads author bio
get_remote_prompt("https://mcp.korm.co", "recommend-post", { "topic": "AI" }) → gets prompt
install({ domain: "korm.co" }) → generates config to add to your MCP client
Key Design Points
- Uses UDP DNS (port 53) for lookups — the lightest possible network primitive. A single UDP packet out, a single packet back.
- The DNS infrastructure IS the registry — no additional servers to deploy, no uptime to maintain, no accounts to create. If you can publish a TXT record, you can advertise your MCP server.
- mcp-www is a standard MCP server — any MCP-compliant agent can use it with zero new client code.
- Multiple TXT records supported — a domain can publish multiple
_mcpTXT records, each advertising a different MCP server. For example, a public content server alongside an authenticated API:_mcp.example.com TXT "v=mcp1; src=https://mcp.example.com; auth=none" _mcp.example.com TXT "v=mcp1; src=https://api.example.com/mcp; auth=oauth2"discoverreturns all records — the agent decides which to connect to based on auth requirements and capabilities. How agents should select between multiple servers for the same domain is an open question. - Works with split-horizon DNS — enterprise and private networks can publish internal
_mcprecords visible only inside their network. - Allows overriding the default system DNS resolver via environment variable:
MCP_DNS_SERVER=192.168.68.133:5335 npx mcp-www
Tools
discover
DNS-only lookup. Returns all _mcp.{domain} TXT records — there can be multiple, each advertising a different MCP server. Supports single domain or batch lookup.
{ "tool": "discover", "arguments": { "domain": "example.com" } }
{ "tool": "discover", "arguments": { "domains": ["example.com", "acme.org"] } }
discover_browse
DNS lookup + server card in one call. Looks up all _mcp.{domain} TXT records, then fetches .well-known/mcp.json for server metadata. Only falls back to MCP initialize if no server card is found.
{ "tool": "discover_browse", "arguments": { "domain": "example.com" } }
browse
Inspect a domain or server URL. Tries .well-known/mcp.json (server card) first, only falls back to MCP initialize handshake if no server card is found. For domains: also performs DNS lookup for _mcp TXT records.
{ "tool": "browse", "arguments": { "domain": "example.com" } }
{ "tool": "browse", "arguments": { "url": "https://mcp.example.com" } }
call_remote_tool
Call a tool on a remote MCP server. Use browse first to discover available tools, then use this to execute them.
{
"tool": "call_remote_tool",
"arguments": {
"url": "https://mcp.example.com",
"tool": "list_articles",
"arguments": { "limit": 5 }
}
}
read_remote_resource
Read a resource from a remote MCP server by its URI.
{
"tool": "read_remote_resource",
"arguments": {
"url": "https://mcp.example.com",
"uri": "korm://bio"
}
}
get_remote_prompt
Get a prompt from a remote MCP server with optional arguments.
{
"tool": "get_remote_prompt",
"arguments": {
"url": "https://mcp.example.com",
"prompt": "recommend-post",
"arguments": { "topic": "AI vision" }
}
}
install
Generate client configuration to permanently add a discovered MCP server. Returns config file paths and JSON entries for Claude Desktop, VS Code, Cursor, and Windsurf. The agent reads the target config file, merges the entry, and writes it back.
{ "tool": "install", "arguments": { "domain": "example.com" } }
{ "tool": "install", "arguments": { "url": "https://mcp.example.com", "name": "my-server" } }
Status
Working. The server implements DNS-based discovery, server inspection, remote tool calling, resource reading, prompt retrieval, and client installation over the Streamable HTTP transport.
Note: DNS-based MCP discovery via
_mcpTXT records is currently in pre-SEP research status — it is not yet a ratified part of the Model Context Protocol specification. See Discussion #2334 and Discussion #2368 for ongoing work. The format and behavior may change as the specification evolves.
Feedback, criticism, and alternative approaches are welcome — open an issue or start a discussion.
Security
DNS-based trust model
Because mcp-www uses DNS TXT records for discovery, domain ownership is enforced by DNS infrastructure itself — only the domain owner (or their DNS provider) can publish _mcp TXT records. This is inherently stronger than centralized registries, which introduce a single point of compromise.
IDN homograph attack detection
mcp-www detects IDN homograph attacks on all domain lookups. These attacks use visually identical characters from different Unicode scripts (e.g., Cyrillic "a" vs Latin "a") to spoof legitimate domains.
Detection covers:
- Punycode-encoded domains — labels starting with
xn--(the ASCII encoding of internationalized domain names) - Mixed-script labels — a single label containing characters from multiple scripts (e.g., Latin + Cyrillic)
- Non-Latin labels — fully Cyrillic/Greek labels that could visually mimic common Latin domains
When detected, a prominent warning is surfaced as a separate content block, instructing the agent to verify the domain with the user before proceeding. Lookups are not blocked — the warning is informational.
Additional considerations
- No implicit trust — mcp-www discovers and inspects remote servers, but tool execution (
call_remote_tool) is always an explicit agent action. - Split-horizon DNS — private/internal
_mcprecords are only resolvable within the network they're published on. - Unicode normalization — all domain inputs are NFC-normalized before lookup.
Related
- In-Process Benchmarks
- Model Context Protocol Specification
- DNS TXT records for organisation-scoped registry discovery — Discussion #2334
- DNS-native MCP discovery: a zero-infrastructure alternative — Discussion #2368
- SEP-2127: MCP Server Cards — HTTP Server Discovery via .well-known
License
MIT
Установка Www
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/kormco/mcp-wwwFAQ
Www MCP бесплатный?
Да, Www MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Www?
Нет, Www работает без API-ключей и переменных окружения.
Www — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Www в Claude Desktop, Claude Code или Cursor?
Открой Www на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Www with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
