contactContact Us
English
English
中文

MCP User Guide

Connect an MCP-compatible AI client to read and work with Packet Capture Pro data after you approve the connection.

01What Is MCP?

MCP (Model Context Protocol) is a standard protocol that connects AI clients to local applications.

When the Packet Capture Pro MCP service is enabled, MCP-compatible AI clients can read and work with data in Packet Capture Pro after you approve the connection. With MCP, you can use natural-language instructions to ask an AI client to:

  • View and filter live capture data.
  • View and filter capture history.
  • Create, edit, enable, or delete rewrite rules.
  • Run standard and advanced replays.
  • Create and run debugging sessions.
  • Import and analyze HAR files.
The AI client selects and calls the appropriate MCP tools provided by Packet Capture Pro based on your request.

02Requirements

Before using MCP with Packet Capture Pro, make sure that:

  1. Packet Capture Pro has been updated to a version that supports MCP (version 3.0.0 or later).
  2. Your AI client supports a local MCP server that uses stdio transport.
  3. The MCP service is enabled in Packet Capture Pro.
  4. The Packet Capture Pro MCP server has been added to your AI client.
  5. You approved the AI client when it connected to Packet Capture Pro for the first time.
Packet Capture Pro must remain open while MCP is in use. If you quit Packet Capture Pro or turn off the MCP service, the AI client will no longer be able to read or work with Packet Capture Pro data.

03Opening the MCP Service

Packet Capture Pro MCP service settings
Open MCP in the sidebar and go to the MCP Service page.

04MCP Service Switch

4.1 Turning On the MCP Service

When you turn on MCP Service, Packet Capture Pro begins accepting MCP connection requests from AI clients.

Turning on the service does not immediately send data to an AI client. You must also configure the AI client and approve it the first time it connects. After a connection is established, the AI client can discover and call the MCP tools provided by Packet Capture Pro.

4.2 Turning Off the MCP Service

When you turn off the MCP service:

  • All connected AI clients are disconnected.
  • AI clients can no longer read data from Packet Capture Pro.
  • AI clients can no longer call the MCP tools provided by Packet Capture Pro.
  • MCP calls that are waiting for a result may be terminated or return a connection error.
The MCP service switch is the master control for exposing Packet Capture Pro capabilities to AI clients.

05Connection Status

The MCP service page shows the current connection status. The Connected Clients section lists the AI clients that are currently connected.

StatusDescription
Not connectedThe MCP service is on, but no AI client is currently connected.
ConnectingAn AI client is establishing a connection to Packet Capture Pro.
ConnectedThe AI client is connected and can call the tools provided by Packet Capture Pro.

06First-Time Connection Approval

When a new AI client requests access to Packet Capture Pro for the first time, you must choose whether to allow the connection. After you approve the connection, the client can call all MCP tools provided by Packet Capture Pro.

The AI client may have its own tool-confirmation, security-approval, or automatic-execution settings. These settings are controlled by the AI client and are not managed by Packet Capture Pro.

First-time connection approval
On first connection, you must decide whether to allow the connection.
Only allow AI clients you trust to connect to Packet Capture Pro.

07Sensitive Data Protection

Sensitive Data Protection reduces the risk of authentication information in captured traffic being sent directly to an AI client.

When Sensitive Data Protection is enabled, Packet Capture Pro identifies and masks the following sensitive information before returning data to an AI client. Detection is based on field names, data location, and content patterns:

Data typeDefault handling
AuthorizationKeeps the field name and masks the field value.
Cookie / Set-CookieKeeps cookie names and masks their values.
TokenMasks values in commonly used headers when a token is detected.

Sensitive Data Protection affects only the data returned to AI clients through MCP. It does not modify the original capture data stored in Packet Capture Pro. When Sensitive Data Protection is disabled, Packet Capture Pro no longer masks these sensitive fields automatically before returning data to an AI client.

08Configuring an AI Client

After you select an AI client, Packet Capture Pro displays the relevant setup instructions and the path to the MCP server executable.

Follow the on-screen instructions to add the Packet Capture Pro MCP server to your AI client.

Configure AI client page
Select an AI client and follow the on-screen instructions to configure the MCP server.

09MCP Tool Reference

After the connection is established, the AI client can discover and call the following Packet Capture Pro tools.

CategoryToolDescription
Live capturepcp_capture_live_get_statusGet the current live-capture status.
Live capturepcp_capture_live_set_enabledStart or stop live capture.
Live capturepcp_capture_live_filterFilter live-capture records by specified criteria.
Live capturepcp_capture_live_get_by_idGet live-capture details by ID.
Live capturepcp_capture_live_generate_curlGenerate a cURL command from a record.
Live capturepcp_capture_live_generate_harGenerate a HAR file from a record.
Live capturepcp_capture_live_deleteDelete a live-capture record by ID.
Live capturepcp_capture_live_clearClear all live-capture records.
Live capturepcp_capture_live_wait_for_matchWait for a new capture record that matches specified criteria.
Capture historypcp_capture_history_filterFilter capture-history records by specified criteria.
Capture historypcp_capture_history_get_by_idGet a capture-history record by ID.
Capture historypcp_capture_history_generate_curlGenerate a cURL command from a capture-history record.
Capture historypcp_capture_history_generate_harGenerate a HAR file from a capture-history record.
Capture historypcp_capture_history_deleteDelete a specified capture-history record.
Capture historypcp_capture_history_clearClear all capture-history records.
Rewritepcp_rewrite_listGet the list of rewrite rules.
Rewritepcp_rewrite_get_by_idGet a rewrite rule by ID.
Rewritepcp_rewrite_createCreate a rewrite rule from scratch or from captured data.
Rewritepcp_rewrite_updateUpdate a specified rewrite rule.
Rewritepcp_rewrite_set_enabledEnable or disable a specified rewrite rule.
Rewritepcp_rewrite_deleteDelete a specified rewrite rule.
Replaypcp_replay_executeReplay a request using its original content.
Replaypcp_replay_get_resultGet the replay result.
Advanced replaypcp_advanced_replay_executeConfigure advanced replay options and run the replay for live or historical capture data.
Advanced replaypcp_advanced_replay_get_resultGet the advanced replay result.
Debugpcp_debug_createCreate a debugging session from scratch or from captured data.
Debugpcp_debug_updateUpdate a debugging session.
Debugpcp_debug_executeRun a debugging session.
Debugpcp_debug_get_resultGet debugging results and execution details.
Debugpcp_debug_deleteDelete a specified debugging session.
Importpcp_import_fileImport a HAR file.
Importpcp_import_get_resultGet the import result.
Importpcp_import_get_by_idGet import details by ID.

10Tool Execution Rules

Packet Capture Pro follows a “tool availability defines access” model.

  • Any tool listed in the tool reference can be called by an approved, connected AI client.
  • Individual tools cannot be enabled or disabled separately.
  • Packet Capture Pro does not display a separate confirmation prompt for every tool call.
  • Before executing a tool, Packet Capture Pro validates required parameters, target objects, file-access scope, and concurrency limits.
  • If parameters are invalid, the target does not exist, or execution fails, Packet Capture Pro returns a clear error to the AI client.
  • The AI client may still require your approval through its own tool-approval workflow.
  • Results of actions such as deleting or clearing data, replaying requests, and applying rewrites are not automatically rolled back if a rule is later disabled or the MCP connection is closed.

11Important Notes

  1. MCP tools can perform real actions, including capturing traffic, rewriting and replaying requests, deleting data, debugging, and importing files.
  2. Only allow AI clients you trust to connect to Packet Capture Pro.
  3. Data that has been deleted or cleared may not be recoverable through MCP.
  4. A replay request cannot be canceled after it has been sent.
  5. Requests already processed by a rewrite rule are not restored when that rule is disabled or deleted.
  6. Turning off the MCP service disconnects all connected AI clients.
  7. The AI client may require confirmation before calling a tool.
  8. MCP setup, tool-confirmation behavior, and timeout limits vary by AI client.
  9. Multi-step tasks also depend on the model, context window, and execution limits.