Mcp Mdns

io.github.daedalus由 GitHub 账号 daedalus 发布v0.1.2更新于 Oct 24, 2026

MCP server for mDNS (Multicast DNS) service discovery

概览

AI 生成的概览

一个本地 MCP 服务器,让助手在局域网中发现、查询、注册和注销 mDNS 服务。

可以做什么
列出局域网中广播的服务类型,并按类型浏览服务(例如 HTTP 或打印机服务),获取主机、端口和 TXT 记录等详细信息。将 .local 主机名解析为 IP 地址。在局域网中注册新服务,或注销此前注册的服务。
适用场景
适合助手需要在局域网中查找零配置设备与服务(如打印机、Web 界面或其他广播 mDNS 的主机),或需要向同一网络发布服务的场景。
运行要求
需要本地 Python 环境并从 PyPI 安装 mcp-mdns 包,以 stdio 进程运行;MCP 客户端需配置 mcp-mdns 命令。它作用于本地网络,未声明需要任何凭据。
安装前请注意
注册和注销服务会改变局域网中广播的内容,使用前应确认这些操作。服务发现会把局域网服务的详细信息(包括主机、端口和 TXT 记录)提供给助手。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Mdns,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-mdns — MCP server for mDNS service discovery

[PyPI] [Python] [Ruff]

MCP server that exposes mDNS (Multicast DNS) service discovery functionality via the Model Context Protocol. Enables LLMs to discover and query zero-configuration network services on the local network.

mcp-name: io.github.daedalus/mcp-mdns

Install

bash
pip install mcp-mdns

Usage

bash
# Run the MCP servermcp-mdns

Or run directly with Python:

bash
python -m mcp_mdns

MCP Server Configuration

Configure your MCP client with:

json
{  "mcpServers": {    "mdns": {      "command": "mcp-mdns",      "env": {}    }  }}

Available Tools

  • mdns_list_service_types — List all service types advertised on the local network
  • mdns_browse_services — Browse for services of a specific type (e.g., _http._tcp, _printer._tcp)
  • mdns_get_service_info — Get detailed information about a specific service (host, port, TXT records)
  • mdns_resolve_hostname — Resolve a .local hostname to IP addresses
  • mdns_register_service — Register a new service on the local network
  • mdns_unregister_service — Unregister a previously registered service

Development

bash
git clone https://github.com/daedalus/mcp-mdns.gitcd mcp-mdnspip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

License

MIT

来源:README.md,提交 dedf3c7

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分