Wireshark MCP Server logo

Wireshark MCP Server

Community
A-G-U-P-T-A

TShark/Wireshark MCP server for network packet analysis via Claude

PublisherA-G-U-P-T-A
Repositorywireshark-mcp
LanguagePython
Forks
4
Stars
21
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Wireshark MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    21 stars and 4 forks from the linked repository.

Wireshark MCP Server

Packet capture and analysis for AI agents via the Model Context Protocol (MCP).

Works with any stdio MCP host: Cursor, Claude Desktop, Claude Code, VS Code / Copilot, Windsurf, custom agents, and similar tools. No vendor lock-in — the host only needs to launch:

text
python -m wireshark_mcp

Version 0.2.2

Docs (wiki)
Setup for novicesInstall TShark + this package
MCP clientsCursor, Claude, VS Code, generic
TroubleshootingOffline server, PATH issues
SecuritySafe capture rules

GitHub Pages (optional): set Settings → Pages → Source = GitHub Actions, then the Pages workflow publishes docs/ as HTML.

What you get

  • Live capture and pcap/pcapng analysis through MCP tools
  • Guided workflows via MCP prompts
  • Startup preflight: if TShark is missing, the process exits so your host shows the server offline/error instead of a broken tool list
  • setup / doctor CLIs so a new user can configure paths without guessing

Requirements

  • Python 3.10+
  • TShark (PATH or TSHARK_PATH)
  • Npcap (Windows) or libpcap (Unix) for live capture
  • Authorization to capture on the target network

Quick start (5 minutes)

bash
git clone https://github.com/A-G-U-P-T-A/wireshark-mcp
cd wireshark-mcp
python -m venv .venv

# Windows:  .venv\Scripts\activate
# Unix:     source .venv/bin/activate

python -m pip install -e .
python -m wireshark_mcp doctor
python -m wireshark_mcp setup

setup detects TShark (or asks for its path) and writes or prints a standard mcpServers JSON block. Point your host at that config, then reload / restart the host.

Windows Wireshark install:

bash
winget install --id WiresharkFoundation.Wireshark -e

MCP config (any host)

json
{
  "mcpServers": {
    "wireshark": {
      "command": "/absolute/path/to/.venv/bin/python",
      "args": ["-m", "wireshark_mcp"],
      "env": {
        "TSHARK_PATH": "/absolute/path/to/tshark"
      }
    }
  }
}

Windows example paths:

  • Python: C:\\Users\\YOU\\...\\wireshark-mcp\\.venv\\Scripts\\python.exe
  • TShark: C:\\Program Files\\Wireshark\\tshark.exe

Ready-made template: examples/mcpServers.wireshark.json
Client-specific file locations: docs/Clients.md

CLI

CommandPurpose
python -m wireshark_mcpRun the MCP server (stdio)
python -m wireshark_mcp doctorJSON dependency report (exit 0/1)
python -m wireshark_mcp setupInteractive TShark + host config
python -m wireshark_mcp setup --client printPrint JSON only

Project layout

text
src/wireshark_mcp/     # MCP server package (tools, prompts, preflight)
examples/              # Sample mcpServers JSON
docs/                  # Setup wiki for novices
tests/                 # pytest (no live capture by default)
.cursor/skills/        # Optional Cursor agent skill
pyshark_mcp.py         # Thin legacy shim

Tools (selected)

AreaTools
Setupcheck_environment, configure_tshark
Capturelist_interfaces, quick_capture, capture_live_packets, save_capture_to_file
Analysisread_pcap_file, analyze_traffic, deep_packet_analysis, quick_traffic_analysis
App protocolsanalyze_dns_traffic, analyze_http_traffic, analyze_http_traffic_tabular
Diagnosticsprotocol_hierarchy_statistics, expert_information, filtered_packet_display

Prompts & resources

Prompts: packet_capture_help, investigate_live_traffic, analyze_pcap_file, security_traffic_review, safe_capture_rules

Resources: pyshark://version, pyshark://config (allow_simulation is always false)

Security

  • Interfaces allowlisted from tshark -D; shell metacharacters rejected
  • Subprocesses use argv + shell=False
  • Failures return errors — no simulated packets

Details: docs/Security.md

Tests & CI

bash
python -m pip install -e ".[dev]"
pytest -q -m "not live"

GitHub Actions installs TShark on Ubuntu and runs the non-live suite.

License

MIT

Installation

TypingMind
{
  "mcpServers": {
    "a-g-u-p-t-a-wireshark-mcp": {
      "command": "python",
      "args": [
        "-m",
        "wireshark_mcp"
      ]
    }
  }
}

Use Wireshark MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Wireshark MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Wireshark MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Wireshark MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "a-g-u-p-t-a-wireshark-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Wireshark MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Wireshark MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Wireshark MCP Server to help me with this task?
Wireshark MCP Server
Sure. I read it.
Here is what I found using Wireshark MCP Server.

Frequently asked questions

What is the Wireshark MCP Server MCP server used for?

Wireshark MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Wireshark MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Wireshark MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Wireshark MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Wireshark MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Wireshark MCP Server MCP to TypingMind?

Wireshark MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Wireshark MCP Server MCP provide in TypingMind?

Wireshark MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Wireshark MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Wireshark MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇