nmos-mcp
An MCP server for AMWA NMOS that connects to a registry to query network resources (IS-04) and enables routing media by connecting senders to receivers (IS-05).
README
nmos-mcp
An MCP server for AMWA NMOS. It connects to an NMOS Registry, lets an agent query everything on the network (IS-04) and — the headline feature — connect senders to receivers to route media between devices (IS-05).
- IS-04 (Discovery & Registration) — read Nodes, Devices, Senders, Receivers, Flows, Sources and Subscriptions from the registry's Query API.
- IS-05 (Device Connection Management) — connect/disconnect, enable/disable senders, inspect staged/active state, and bulk-route.
- Works against a plain-HTTP lab registry or an HTTPS deployment with IS-10 OAuth2 bearer tokens.
- Finds the registry from
NMOS_REGISTRY_URL, or auto-discovers it over mDNS (_nmos-query._tcp).
1. Install
cd nmos-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]" # or: uv pip install -e ".[dev]"
This creates the nmos-mcp console command inside .venv/bin/.
Note (this machine): the shell auto-activates another project's virtualenv, so plain
python3may be the wrong interpreter. Ifpython3 -m venvfails, build the venv with the real interpreter:env -i HOME="$HOME" PATH="/usr/bin:/bin" /opt/homebrew/bin/python3 -m venv .venvand use.venv/bin/python/.venv/bin/nmos-mcpdirectly.
2. Configure
Copy .env.example to .env and point it at your registry:
cp .env.example .env
NMOS_REGISTRY_URL=http://registry.example.local # leave UNSET to auto-discover via mDNS
NMOS_QUERY_VERSION=v1.3
NMOS_CONNECTION_VERSION=v1.1
NMOS_USE_HTTPS=false
NMOS_VERIFY_TLS=true
# IS-10 auth (optional, for secured deployments):
# NMOS_AUTH_ENABLED=true
# NMOS_AUTH_TOKEN_URL=https://auth.local/oauth2/token
# NMOS_AUTH_CLIENT_ID=...
# NMOS_AUTH_CLIENT_SECRET=...
.envis git-ignored — internal hostnames (e.g.registry.example.local) and credentials never get committed..env.exampleis the only env file in git.
.envis read relative to the process working directory. When Claude Code launches the server the working directory may differ, so pass the registry URL via-ein the Claude Code registration below (that value is stored in your private Claude config, not in the repo).
3. Start the server
The server speaks the MCP protocol over a transport — you normally don't run it by hand; an MCP client (Claude Code) launches it. To run it manually:
nmos-mcp # stdio transport (what Claude Code / Claude Desktop use)
nmos-mcp --http # streamable-HTTP transport
To poke at the tools interactively with the MCP Inspector:
mcp dev src/nmos_mcp/server.py
4. Add it to Claude Code
Register the server with the CLI (from anywhere). Use -e to inject the registry URL
and -s local so it stays in your private config rather than the shared repo:
claude mcp add nmos \
-s local \
-e NMOS_REGISTRY_URL=http://registry.example.local \
-- /ABSOLUTE/PATH/TO/nmos-mcp/.venv/bin/nmos-mcp
Verify it connected:
claude mcp get nmos # Status: ✔ Connected
claude mcp list
Then in a Claude Code session just ask, e.g.:
"List the NMOS senders, then connect 'AES67 sender 4' to 'AES67 receiver 4'."
To update or remove it:
claude mcp remove nmos -s local # then re-add with new flags
Scopes: -s local (default) keeps the server private to you for this project
(stored in ~/.claude.json). -s user makes it available in all your projects.
Avoid -s project (writes a committed .mcp.json) unless you deliberately want the
registry URL shared with the team via git.
Claude Desktop (alternative client)
Add to claude_desktop_config.json:
{
"mcpServers": {
"nmos": {
"command": "/ABSOLUTE/PATH/TO/nmos-mcp/.venv/bin/nmos-mcp",
"env": { "NMOS_REGISTRY_URL": "http://registry.example.local" }
}
}
}
Tools
IS-04 (query): registry_info, list_nodes, list_devices, list_senders,
list_receivers, list_flows, list_sources, get_resource, query_resources.
IS-05 (connection): get_sender, get_receiver, get_sender_transport_file,
connect_sender_to_receiver, disconnect_receiver, enable_sender,
disable_sender, bulk_connect, stage_receiver, stage_sender.
How a connection is made
The Query API lives on the registry; the Connection API (IS-05) lives on each Node. To wire a sender to a receiver the server:
- Looks the receiver up in the registry and reads its device's
controlsarray to find the IS-05 endpoint (urn:x-nmos:control:sr-ctrl). - Fetches the sender's SDP transport file.
PATCHes the receiver's/stagedwith the sender id,master_enable: true, the transport file, andactivation: { mode: activate_immediate }.- Reads back the receiver's
/activestate to confirm the route.
The connection endpoint version is taken from the device's advertised control href, so nodes exposing IS-05 v1.0 or v1.1 both work.
Test
pytest
Unit tests mock both the Registry Query API and a Node Connection API (via respx),
covering the connect/disconnect PATCH bodies, endpoint resolution, config coercion
and URL handling.
End-to-end against a real registry
Point NMOS_REGISTRY_URL at a live registry (or a local EasyNMOS stack:
docker run -d --net=host rhastie/easy-nmos), then use mcp dev or Claude Code to
list_senders / list_receivers, run connect_sender_to_receiver, and confirm the
receiver's /active shows the sender's multicast group.
Scope & roadmap
Current: IS-04 read/query + IS-05 connection management. The module layout leaves room to add IS-04 registration writes, IS-08 audio channel mapping, IS-07 events/tally and IS-09 system parameters as additional tool groups.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。