SharkMCP logo

SharkMCP

Community
weirdmachine64

A swiss-knife MCP server for analysing PCAP files

Publisherweirdmachine64
RepositorySharkMCP
LanguagePython
Forks
2
Stars
76
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    SharkMCP 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

    76 stars and 2 forks from the linked repository.

SharkMCP

An MCP server that exposes sharkd — Wireshark's programmatic interface — as a set of tools for LLMs. Load PCAP/PCAPNG files and analyse them with natural language.

Requirements

  • Python 3.10+
  • Wireshark (provides sharkd)

Installation

bash
git clone https://github.com/weirdmachine64/sharkmcp.git
cd sharkmcp
pip install -e .

Or run directly from the repo without installing:

bash
uvx --from git+https://github.com/weirdmachine64/sharkmcp sharkmcp

Configuration

Add to your .mcp.json:

json
{
  "mcpServers": {
    "sharkmcp": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/weirdmachine64/sharkmcp", "sharkmcp"],
      "env": {
        "SHARKMCP_TIMEOUT": "300"
      }
    }
  }
}
Env varDefaultDescription
SHARKMCP_SHARKD_BINsharkdPath to sharkd binary
SHARKMCP_TIMEOUT300Per-request timeout in seconds

Tools

Each loaded PCAP gets a dedicated sharkd subprocess. Results from expensive scans (conversations, expert info, export objects) are cached in memory so paginated follow-up calls are served without re-scanning.

Session

ToolDescription
load_pcap(path, alias?)Load a PCAP/PCAPNG file
list_pcaps()List all loaded PCAPs
unload_pcap(alias)Terminate session and free memory

Overview

ToolDescription
pcap_summary(alias)Frame count, duration, file size, protocols seen
server_info(alias)All available tap types, follow protocols, field types

Packet Inspection

ToolDescription
list_packets(alias, filter?, columns?, refs?)Paginated frame list with display filter
packet_detail(alias, frame, include_bytes?, include_hidden?)Full protocol tree for one frame
extract_fields(alias, fields, filter?)Extract arbitrary fields per packet as a table

Utilities

ToolDescription
validate(alias, filter?, field?)Validate a display filter and/or field name
complete(alias, field?, pref?)Autocomplete field or preference names by prefix
get_preference(alias, preference?)Read dissector preferences
set_preference(alias, name, value)Set a dissector preference for this session
set_frame_comment(alias, frame, comment)Annotate a frame (session-scoped)

Traffic Structure

ToolDescription
protocol_hierarchy(alias, filter?)Nested protocol tree with frame/byte counts
io_stats(alias, interval_ms?, filter?)Per-interval frame and byte counts
iograph(alias, graphs, interval_ms?, filters?)Multi-line traffic graph; supports packets, bytes, bits, sum:<field>, avg:<field>, min:<field>, max:<field>, load:<field>, frames:<field>
follow_stream(alias, protocol, filter)Reassemble a stream (tcp, udp, tls, http, http2, quic, sip, dccp, websocket)

Conversations & Topology

ToolDescription
conversations(alias, type?, sort_by?)Conversation table — bytes/frames per peer pair
endpoints(alias, type?, sort_by?)Endpoint table — tx/rx per host

Supported layer types for both: tcp, udp, ip, ipv6, eth, sctp, dccp, mptcp, wifi, bluetooth, zigbee, fc, fddi, usb, and more.

Protocol Statistics

ToolDescription
expert_info(alias, filter?)Per-frame anomaly detection — errors, warnings, notes, chats
protocol_stats(alias, protocol)Aggregate stats for dns, http, http_requests, http_server, sip, dhcp, h225, http2, rtsp
service_response_time(alias, protocol)Request/response latency for smb, smb2, snmp, ldap, diameter, rpc, gtp, and more
response_time_delay(alias, protocol)Round-trip delay for radius, h225_ras, megaco, mgcp
sequence_diagram(alias, type?)Flow diagram data for tcp, icmp, icmpv6, any

Media & VoIP

ToolDescription
voip_calls(alias, filter?)SIP/H.323 call list with state and participants
rtp_streams(alias, stream_spec?)RTP stream inventory; pass stream_spec for per-stream jitter/loss
multicast_streams(alias, filter?)UDP multicast stream statistics

Export & Objects

ToolDescription
export_objects(alias, type?)List extractable objects (http, imf, smb, tftp, dicom, ftp-data)
download_object(alias, token)Download an object, TLS session keys (ssl-secrets), or RTP audio (rtp:<spec>) as base64

Escape Hatch

ToolDescription
tap(alias, specs, filter?, skip?, limit?)Run any sharkd tap directly — up to 16 specs in one PCAP scan. Use server_info to discover valid identifiers.

Example

> load_pcap("/captures/traffic.pcap", alias="traffic")
> protocol_hierarchy("traffic")
> expert_info("traffic", limit=20)
> conversations("traffic", type="tcp", sort_by="bytes")
> extract_fields("traffic", ["dns.qry.name", "dns.a"], filter="dns")
> follow_stream("traffic", "http", "tcp.stream eq 0")
> export_objects("traffic", type="http")
> download_object("traffic", "eo:http_0")

Architecture

    LLM
     │  MCP (stdio)
     ▼
 SharkMCP server
     │  JSON-RPC 2.0 (stdin/stdout)
     ├─ sharkd [pcap-1]
     ├─ sharkd [pcap-2]
     └─ sharkd [pcap-N]

One sharkd subprocess per loaded PCAP. Sessions are isolated — concurrent queries on different aliases never block each other.

Installation

TypingMind
{
  "mcpServers": {
    "sharkmcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/weirdmachine64/sharkmcp",
        "sharkmcp"
      ]
    }
  }
}

Use SharkMCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once SharkMCP 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 SharkMCP 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 SharkMCP 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": {
    "sharkmcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the SharkMCP 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 SharkMCP 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 SharkMCP to help me with this task?
SharkMCP
Sure. I read it.
Here is what I found using SharkMCP.

Frequently asked questions

What is the SharkMCP MCP server used for?

SharkMCP 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 SharkMCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use SharkMCP 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 SharkMCP 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 SharkMCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect SharkMCP MCP to TypingMind?

SharkMCP 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 SharkMCP MCP provide in TypingMind?

SharkMCP 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 SharkMCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If SharkMCP 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 👇