noc-pcap-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@noc-pcap-mcp-serverSummarize the packet capture at /tmp/capture.pcap"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
noc-pcap-mcp-server
An MCP (Model Context Protocol) server that lets an LLM-based assistant diagnose network problems from packet captures (PCAP/PCAPNG files), without the operator needing to use Wireshark directly. Built for junior analysts in a NOC (Network Operations Center) setting.
Built with the official Python MCP SDK
(FastMCP) and scapy for packet parsing.
Tools
All tools take a file_path to a .pcap/.pcapng file. stream_id values
are returned by list_tcp_conversations and identify one TCP conversation.
Tool | Parameters | Returns |
|
| Duration, packet count, protocol breakdown, top talkers |
|
| List of TCP conversations (4-tuple, |
|
| RTT, retransmission count, zero-window events, duplicate ACKs, with the frame numbers that evidence each finding |
|
| Findings ranked by severity: port scans, ARP spoofing, high-entropy DNS queries, cleartext credentials |
|
| Reassembled JSON-RPC messages, classified (initialize / notification / request / response) and paired by |
These are designed to be composable: a host LLM chains them (e.g. list conversations, then analyze the relevant one) rather than calling one do-everything tool.
Related MCP server: Wireshark-MCP
Requirements
Python >= 3.11
uv (recommended) or
pip
Installation
git clone https://github.com/anthonylouschwank/noc-pcap-mcp-server.git
cd noc-pcap-mcp-server
uv syncOr with pip:
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -e .Usage
Standalone (for testing with an MCP-capable client, e.g. Claude Desktop)
Run over stdio:
uv run noc-pcap-mcpExample Claude Desktop config entry:
{
"mcpServers": {
"noc-pcap": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/noc-pcap-mcp-server", "noc-pcap-mcp"]
}
}
}As a dependency of another chatbot host
See noc-assistant,
which launches this server as a subprocess and aggregates its tools with
other MCP servers.
Project layout
src/noc_pcap_mcp/
├── server.py # tool registration (FastMCP)
├── pcap_utils.py # capture summary + TCP conversation indexing
├── tcp_analysis.py # RTT / retransmissions / zero-window per conversation
├── security.py # port scans, ARP spoofing, DNS entropy, cleartext creds
└── jsonrpc.py # TCP reassembly + JSON-RPC message classificationStatus
Scaffolding stage: tools are registered with their final signatures and
docstrings; the analysis logic in pcap_utils.py, tcp_analysis.py,
security.py and jsonrpc.py is not implemented yet.
Author
Built by Anthony Schwank for CC3067 - Redes, Universidad del Valle de Guatemala.
Available Tools
5 toolsanalyze_tcp_conversationB
RTT, retransmissions, zero-window events and duplicate ACKs for one TCP conversation, citing the frame numbers that evidence each finding.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| stream_id | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral disclosure burden. It usefully states that findings are evidenced by frame numbers, but it does not explicitly confirm the operation is read-only, describe failure behavior, or mention any prerequisites beyond the two parameters.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single dense, front-loaded line with no filler. Every phrase contributes substantive information about what the tool analyzes and how results are presented.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers key outputs and the single-conversation scope, but with no output schema and no annotations it leaves gaps: how to source stream_id, whether the file must already be loaded, and what error conditions exist. It is adequate for selection but not fully sufficient for invocation without relying on external knowledge.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate for the undocumented file_path and stream_id parameters. It only hints that a single TCP conversation is involved, offering no detail on what stream_id represents, how to obtain it, or accepted file path formats.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly identifies the tool's focus: RTT, retransmissions, zero-window events, and duplicate ACKs for a single TCP conversation. Though it lacks an explicit verb, the scope is specific and distinguishable from siblings like list_tcp_conversations or detect_security_anomalies.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given for when to choose this tool over alternatives, nor any mention of prerequisites such as first listing available TCP conversations or obtaining a stream_id. The intended use is only implied by the tool name and contents.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
detect_security_anomaliesA
Scan a PCAP for port scans, ARP spoofing, high-entropy DNS queries and cleartext credentials, ranked by severity.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral transparency. It discloses the nature of the operation (scanning a PCAP for specific anomaly types) and the output ordering (ranked by severity). However, it does not mention side effects, whether the input file is modified, access requirements, performance implications, or error conditions. It adds some behavioral context but not a complete picture.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, dense sentence with no fluff. It front-loads the action and resource, then enumerates the detection categories and ranking behavior. Every word contributes to understanding what the tool does, making it an efficiently structured description.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has a simple signature (one required parameter) and an output schema, which covers return-value details. The description adequately explains the tool's purpose and scope. However, it lacks explicit guidance on when to use the tool versus siblings and does not disclose whether the operation is read-only or has side effects. For a single-param scanner, the description is mostly complete but misses a few contextual details.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema documentation coverage is 0%, so the description must compensate. The phrase 'Scan a PCAP' directly informs the agent that the file_path parameter should be a path to a PCAP capture file. This adds meaningful semantics beyond the bare string schema. Though it does not explicitly bind file_path to the PCAP or mention format constraints, the single parameter's purpose is clearly established.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Scan a PCAP'), the resource (PCAP file), and the specific detection targets (port scans, ARP spoofing, high-entropy DNS queries, cleartext credentials). The verb is specific and the resource is concrete. It distinguishes this tool from siblings like get_capture_summary or list_tcp_conversations by focusing on security anomaly detection rather than general capture metadata or conversation listing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage: when you need to detect security anomalies in a PCAP, use this tool. It does not explicitly state when not to use it or mention alternative tools. The behavioral distinction from siblings is inferable from the description, but no direct guidance such as 'use for threat hunting' or 'not for general traffic analysis' is provided, so guidance is implied rather than stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
extract_json_rpc_exchangeB
Reassemble a TCP conversation's payload, classify JSON-RPC messages and pair requests with responses by id.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| stream_id | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It does explain the core transformation and outputs, but it omits important details such as whether the operation is read-only, what the output format is, and how failures like invalid stream ids are handled.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single information-dense sentence with no filler. Each clause adds a distinct behavior, and the main action is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Without annotations, output schema, or parameter documentation, the description leaves critical operating context unclear: how to obtain stream_id, what the reassembled output looks like, and what edge cases apply. It communicates the core function but not enough for confident invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Both parameters have no schema descriptions and 0% coverage. The description never mentions file_path or stream_id, nor does it clarify how the stream_id identifies a specific TCP conversation. The agent must rely entirely on parameter names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific operation: reassemble a TCP conversation payload, classify JSON-RPC messages, and pair requests with responses by id. This clearly distinguishes the tool from generic siblings like analyze_tcp_conversation or get_capture_summary.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit guidance is given about when to use this tool versus alternatives such as analyze_tcp_conversation. The intended context is only implied by the phrase 'a TCP conversation's payload,' leaving the agent to infer the right selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_capture_summaryB
Overview of a PCAP file: duration, packet count, protocols seen, top talkers.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral burden. It does disclose the kind of output an agent can expect, which is useful, but it does not state side effects, error behavior, file type constraints, or whether the operation is purely read-only.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, front-loaded sentence with a colon-separated list of contents. Every word earns its place and there is no redundant phrasing.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter summary tool with no output schema, the description lists the key return components sufficiently. It lacks explicit path-format detail and usage context, but the core calling information is present.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. Referencing a PCAP file gives some meaning to file_path, but it does not explicitly describe the expected path format or association between the parameter and the file to analyze.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description identifies a clear resource (PCAP file) and a specific deliverable (duration, packet count, protocols, top talkers). It does not explicitly contrast itself with sibling tools, but the summary focus is distinct from TCP conversation, security anomaly, and JSON-RPC tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use or when-not-to-use guidance is provided. There is no mention of alternatives or conditions that would route the agent to siblings like list_tcp_conversations or detect_security_anomalies.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_tcp_conversationsA
Enumerate TCP conversations (4-tuple) in a PCAP with packet/byte counts and timing.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full transparency burden. 'Enumerate ... in a PCAP' implies a read-only listing operation and the metrics phrase explains what will be computed, but the description does not disclose ordering, side effects, file-handling constraints, or scaling limitations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence containing the verb, object, input context, and emitted data with no filler or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter listing tool with an output schema available, the description is largely complete: it specifies the input, the granularity of the listing, and the metrics returned. It only lacks explicit guidance about relationship to sibling tools and operational caveats.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate for the file_path parameter. It does so by placing the operation 'in a PCAP', clarifying that file_path should point to a capture file. For a single self-named parameter, this is adequate, though path formats or constraints are not detailed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Enumerate'), a precise resource ('TCP conversations (4-tuple) in a PCAP'), and clarifies the output (packet/byte counts and timing). This clearly separates it from siblings like analyze_tcp_conversation, which implies a deeper per-conversation analysis.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage context is implied: this tool is for producing an overview of all TCP conversations in a capture. However, it does not explicitly state when to prefer this over analyze_tcp_conversation or otherwise name alternatives and exclusion conditions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool targets a distinct layer or task: overall summary, conversation enumeration, per-conversation transport analysis, security scanning, and JSON-RPC payload extraction. Though analyze_tcp_conversation and extract_json_rpc_exchange both work on a conversation, one is transport-focused and the other application-focused, so no reasonable misselection exists.
All tool names follow a clear verb_noun snake_case pattern: get/list/analyze/detect/extract plus a specific object. The singular 'tcp_conversation' after 'analyze_' and the plural in 'list_tcp_conversations' is grammatically consistent, not a style break.
Five tools is a well-scoped set for a PCAP analysis server; each tool provides a distinct capability without redundancy. This is within the ideal range and leaves room for focused use.
The surface covers the core NOC/PCAP workflow: summarize, enumerate conversations, drill into a conversation's health, detect anomalies, and extract application-layer exchanges. A minor gap is the lack of generic packet/filter drill-down or pcap file management, but agents can work around these.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Provide detailed Pokémon data and information through a standardized MCP interface. Enable LLMs an…
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables LLMs to analyze network packet captures (PCAP files) from local or remote sources through a modular architecture. Supports DNS traffic analysis with structured JSON responses for network security and troubleshooting tasks.951MIT
- AlicenseCqualityDmaintenanceEnables LLMs to perform automated network forensics, threat hunting, and traffic analysis using Wireshark/TShark.344MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze network traffic using Wireshark/tshark, providing packet statistics, protocol analysis, and anomaly detection through natural language interaction.67MIT
- FlicenseCqualityCmaintenanceEnables LLMs to capture, analyze, and summarize network traffic using Wireshark CLI tools, supporting live capture, pcap analysis, and LLM-oriented summaries.76
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/anthonylouschwank/noc-pcap-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server