Documentation menu

Automation

NetworkTuna has an API that scripts and AI assistants on this PC can use, for example to ask an AI assistant what NetworkTuna found today. It comes with an MCP server for AI tools such as Claude, Cursor and VS Code, and a command-line tool for scripts. To set it up, choose Settings in the sidebar and then Automation.

Settings › Automation on the General tab
API access on. Programs run as administrator may see everything NetworkTuna can show.

The API is a preview while NetworkTuna is in beta, so its details may change between versions.

Turn on API access

API access is off until you turn it on.

  1. On the General tab, turn on Allow programs to use NetworkTuna API.
  2. Confirm with Allow.

Only programs on this PC can connect. Other computers cannot. NetworkTuna itself sends your data nowhere, but an AI assistant may send what it reads to the company that runs it.

A program run as administrator can use NetworkTuna without a token. By default it may read everything and change nothing. What they may do on the same tab changes that. This limit helps prevent mistakes. It does not protect NetworkTuna from an administrator, who can change it anyway.

Tokens

Every other program needs a token. Give each program its own, so you can revoke one without affecting the others.

  1. On the API tokens tab, click Create token.
  2. Enter a name. NetworkTuna shows it in its log and when the program asks to change something.
  3. Under What the program may do, choose what it may see and change, for example See security events or Answer connection requests.
  4. Choose when the token expires: after 90 days by default, or from 7 days to Never.
  5. Click Create token, then Copy token. NetworkTuna shows the token only once, so keep it somewhere safe, such as a password manager.
The Create a token window
A token that may see everything and change nothing.

When you let a token change something, NetworkTuna turns on Ask me in NetworkTuna before this token changes anything. It then shows each change the program asks for, such as blocking an app, and applies it only after you click Allow change. Keep it on for AI assistants, because text they read, such as a device name, can trick them into asking for changes.

To take access away, click Revoke next to the token. Programs that use it lose access at once.

Connect an AI assistant

  1. Create a token for the assistant. A token that can only see, not change, is the safest choice.
  2. Copy the configuration from the MCP tab, or click Copy MCP configuration right after you create the token, which fills the token in for you.
  3. Add it to the assistant's MCP settings and restart the assistant.

For Claude, Cursor and most AI tools, the configuration looks like this:

{
  "mcpServers": {
    "networktuna": {
      "command": "C:\\Program Files\\DeinitLabs\\NetworkTuna\\api\\ntunamcp.exe",
      "env": { "NETWORKTUNA_API_TOKEN": "paste-your-token-here" }
    }
  }
}

The MCP tab also has the variant for VS Code. AI agents that use skills can learn NetworkTuna from its skill, which the installation includes. The Skills tab shows what to tell your agent.

Scripts

ntunacli.exe, in the same folder as the MCP server, lets scripts and scheduled tasks use NetworkTuna. It reads the token from the NETWORKTUNA_API_TOKEN environment variable. The CLI tab shows a first PowerShell command that checks your token.