mcp-mdns
by daedalus
README.md
# mcp-mdns — MCP server for mDNS service discovery
[](https://pypi.org/project/mcp-mdns/)
[](https://pypi.org/project/mcp-mdns/)
[](https://github.com/astral-sh/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 server
mcp-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.git
cd mcp-mdns
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
```
## License
MIT
TDQS
A4.3/5.0
Scored across 6 tools
Disambiguation5/5
Each tool has a distinct purpose: browsing services, getting service info, listing service types, registering, unregistering, and resolving hostnames. No two tools overlap in functionality.
Naming Consistency5/5
All tools follow the consistent pattern 'mdns_verb_noun' (e.g., mdns_browse_services, mdns_register_service). The naming is perfectly uniform and predictable.
Tool Count5/5
With 6 tools, the server covers the core mDNS operations without being too few or too many. Each tool earns its place for a focused networking utility.
Completeness4/5
The tool set covers browsing, querying, registration, and hostname resolution. Missing an update tool for registered services, but this is a minor gap; core workflows are well-supported.
Maintenance
ActivityInactive
ResponsivenessNo issues