Skip to main content
Glama

infra-tak-mcp

MCP server that drives an infra-TAK host from Grok Build, Cursor, Claude Desktop, or any MCP client.

Run it on the Ubuntu TAK box. Clients on a laptop speak stdio over SSH. Do not publish the MCP HTTP port or the MediaMTX control API.

This is not an official takwerx product.

What it talks to

Target

Where

infra-TAK marketplace

console /api/<module>/...

Node-RED Admin API

http://127.0.0.1:1880 (not the public Authentik URL)

MediaMTX control API

http://127.0.0.1:9898 (not 9997)

TAK Marti video

/Marti/api/video

Docker

local docker CLI

Related MCP server: Woow Podman MCP Server

Install on the TAK host (Ubuntu 22.04)

/opt is root-owned. After a sudo git clone, chown the tree to your login user. Use a venv. Do not pip install -e . — Ubuntu 22.04 system pip has no PEP 660 editable hook.

Pin MCP 1.x. This server uses the FastMCP 1.x API. mcp 2.x breaks the Grok Build handshake.

sudo apt-get update
sudo apt-get install -y python3-venv python3-pip git
sudo git clone https://github.com/misterdallas/infra-tak-mcp.git /opt/infra-tak-mcp
sudo chown -R "$USER:$USER" /opt/infra-tak-mcp
cd /opt/infra-tak-mcp
python3 -m venv .venv
. .venv/bin/activate
pip install -U pip setuptools wheel
pip install . -c constraints.txt
cp -n .env.example .env
nano .env
python -c "import mcp; print(mcp.__version__)"   # must be 1.x

One-shot:

curl -fsSL https://raw.githubusercontent.com/misterdallas/infra-tak-mcp/main/install.sh | sudo bash

Grok Build (laptop)

Passwordless SSH first:

ssh-copy-id USER@TAK_HOST
ssh USER@TAK_HOST 'echo ok'
grok mcp add infra-tak -- ssh USER@TAK_HOST 'cd /opt/infra-tak-mcp && . .venv/bin/activate && set -a && . ./.env && set +a && python -m infra_tak_mcp.server'
grok mcp list
grok mcp doctor infra-tak

Or copy mcp.grok.example.toml into ~/.grok/config.toml.

Do not add this server as a public custom connector on grok.com. That requires a reachable HTTPS URL and would expose marketplace deploy/stop.

Cursor / Claude Desktop

See mcp.cursor.example.json.

Tools

Marketplace: marketplace_list, marketplace_call, marketplace_deploy, marketplace_control, marketplace_uninstall

Keys: takserver, federationhub, authentik, takportal, caddy, cloudtak, mediamtx, tvr, nodered, emailrelay, guarddog, cesium, webodm, netbird, eudassist, atlas, simulator, clientfeed.

action="raw" hits extra module routes. Deploy / uninstall / start / stop / restart require confirm=true.

Node-RED: nodered_info, nodered_list_flows, nodered_add_flow, nodered_deploy_flows, nodered_install_node, nodered_inject

Host: stack_health, mediamtx_paths, mediamtx_info, tak_list_videos, tak_publish_video, advertise_ready_streams, docker_ps, docker_logs

Troubleshooting

Symptom

Fix

Permission denied: '.../.venv' or cp: cannot create '.env'

sudo chown -R "$USER:$USER" /opt/infra-tak-mcp

build_editable / PEP 660 error

Use pip install . inside the venv, never -e

Defaulting to user installation

The venv is not active, or you used system pip

Grok Build handshake fails / doctor dies after connect

Host pulled mcp 2.x. pip install --force-reinstall 'mcp[cli]>=1.9.0,<2'

MediaMTX curl refused

Use 127.0.0.1:9898 on the TAK host, not 9997 and not the laptop

Node-RED tools 401/empty

Hit loopback :1880, not https://nodered.<domain>

License

MIT

Available Tools

19 tools
docker_logsC

Tail logs for a Docker container.

Inputs: name (required), tail. Returns: result

docker_psA

List Docker containers (ALLOW_DOCKER=1).

Inputs: no named parameters. Returns: result

marketplace_callA

Call /api// on the infra-TAK console.

action: status | log | logs | version | update-status | start | stop | restart | deploy | uninstall | raw raw body_json: {"method":"GET","path":"deployment-config","json":{}} confirm=true required for deploy, uninstall, start, stop, restart.

Inputs: action (required), module (required), confirm, body_json. Returns: result

marketplace_controlC

Start, stop, or restart a marketplace module.

Inputs: action (required), module (required), confirm. Returns: result

marketplace_deployB

Start a marketplace deploy job. Poll marketplace_call(module, 'log').

Inputs: module (required), confirm, params_json. Returns: result

marketplace_listA

Catalog of infra-TAK marketplace module keys this MCP knows how to drive.

Inputs: no named parameters. Returns: result

marketplace_uninstallB

Uninstall a marketplace module. Requires confirm=true.

Inputs: module (required), confirm, admin_password. Returns: result

mediamtx_infoC

MediaMTX server info.

Inputs: no named parameters. Returns: result

mediamtx_pathsB

List MediaMTX paths. infra-TAK binds the control API on :9898.

Inputs: no named parameters. Returns: result

nodered_add_flowB

Append nodes to the current flows and redeploy. confirm=true required.

Inputs: flow_json (required), confirm. Returns: result

nodered_deploy_flowsB

POST /flows and replace the running Node-RED document. confirm=true required.

Inputs: flows_json (required), confirm. Returns: result

nodered_infoA

Node-RED settings, diagnostics, and palette from the loopback Admin API.

Inputs: no named parameters. Returns: result

nodered_injectC

Trigger an inject node by id.

Inputs: node_id (required). Returns: result

nodered_install_nodeC

Install a palette package such as node-red-contrib-tak.

Inputs: package (required), confirm. Returns: result

nodered_list_flowsB

GET /flows from Node-RED Admin API on 127.0.0.1:1880.

Inputs: no named parameters. Returns: result

stack_healthB

Probe MediaMTX, Node-RED Admin, TAK Marti, and infra-TAK console.

Inputs: no named parameters. Returns: result

tak_list_videosB

List TAK Server Video Manager feeds.

Inputs: no named parameters. Returns: result

tak_publish_videoC

Register a MediaMTX path on TAK Video Manager with decomposed fields.

Inputs: path (required), alias. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 19 tools

    Disambiguation3/5

    The domain-prefixed tools mostly target distinct resources, but marketplace_call is a generic escape hatch that explicitly supports deploy/start/stop/restart/uninstall, directly overlapping marketplace_deploy, marketplace_control, and marketplace_uninstall. nodered_deploy_flows vs nodered_add_flow also sit close together (replace vs append the flow document). An agent could reasonably pick the wrong tool for marketplace operations.

    Naming Consistency4/5

    Strong, predictable snake_case with domain prefixes (marketplace_*, nodered_*, mediamtx_*, docker_*, tak_*). Two outliers lack a prefix (stack_health, advertise_ready_streams), which is a minor deviation but still readable.

    Tool Count4/5

    19 tools is on the heavy side but justified by spanning five subsystems (marketplace, Node-RED, MediaMTX, Docker, TAK). The count is slightly inflated by the redundant marketplace_call umbrella overlapping three dedicated marketplace tools.

    Completeness4/5

    Covers lifecycle across its domains: marketplace list/call/deploy/control/uninstall, Node-RED flows and palette, MediaMTX listing, Docker listing/logs, and TAK video publish/advertise. Minor gaps exist (no Docker container start/stop or MediaMTX path mutation), but core workflows are reachable.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables ERPNext management, file operations, read-only database access, and ERPNext API integration through a standardized MCP server.
      4
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      MCP server that exposes Podman host management as tools, allowing natural language control of containers, images, volumes, networks, and pods. Includes an administrative console with safety profiles for gated access.
      18
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients to manage a self-hosted RPort fleet by listing and inspecting connected devices, opening and closing SSH tunnels, and executing commands through RPort agents.
      10
      MIT