Skip to content
VS Code

tshark-mcp for VS Code

io.github.kx96xx/tshark-mcp

Read-only packet capture analysis with tshark: Diameter, GTP, SIP, RTP, SIGTRAN, DNS, TCP and TLS.

client:VS Code transport:stdio runtime:pypi

Install tshark-mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "tshark-mcp-allow-dirs",
      "description": "TSHARK_MCP_ALLOW_DIRS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tshark-mcp-tshark",
      "description": "TSHARK_MCP_TSHARK",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tshark-mcp-redact",
      "description": "TSHARK_MCP_REDACT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tshark-mcp-export-dir",
      "description": "TSHARK_MCP_EXPORT_DIR",
      "password": true
    }
  ],
  "servers": {
    "tshark-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tshark-mcp-server"
      ],
      "env": {
        "TSHARK_MCP_ALLOW_DIRS": "${input:tshark-mcp-allow-dirs}",
        "TSHARK_MCP_TSHARK": "${input:tshark-mcp-tshark}",
        "TSHARK_MCP_REDACT": "${input:tshark-mcp-redact}",
        "TSHARK_MCP_EXPORT_DIR": "${input:tshark-mcp-export-dir}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

tshark-mcp in other clients