An MCP (Model Context Protocol) server that provides HTTP(S) and WebSocket network capture and analysis tools using mockttp.
What is MCP? The Model Context Protocol (MCP) is a standard that allows AI agents to access external tools and data sources. This server provides AI agents with the ability to capture, analyze, and query network traffic from your applications using natural language.
- AI-Assisted Debugging: Let AI analyze request/response patterns, headers, and payloads to identify root causes
- Natural Language Queries: Ask your AI "What API calls failed today?" or "Which endpoints are slowest?"
- Performance Analysis: AI finds slow endpoints and provides optimization recommendations
- Automated Monitoring: AI detects traffic patterns and anomalies automatically
git clone https://github.com/theinfinitereality/network-capture-mcp
cd network-capture-mcp
npm installAdd to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"netcap": {
"command": "npx",
"args": ["tsx", "/full/path/to/network-capture-mcp/src/index.ts"]
}
}
}Point your application to use the proxy:
export HTTP_PROXY=http://localhost:8080
export HTTPS_PROXY=http://localhost:8080
your-applicationnpm start"Show me all API requests from the last 10 minutes"
"Analyze traffic patterns and find any issues"
"What endpoints are responding slowly?"
That's it! Your AI agent can now analyze your application's network traffic.
- Complete Setup Guide - Detailed installation, configuration, and first usage
- AI Agent Setup - Configure Claude Desktop and other MCP clients
- Usage Examples - Real-world examples and integration patterns
- Configuration Reference - Complete configuration options and CLI parameters
- API Reference - Complete MCP tools documentation with parameters and examples
- Architecture Overview - Technical architecture and system design
- Development Guide - Contributing, testing, and development setup
Quick Issues: See Troubleshooting Guide for solutions to common problems like port conflicts, setup issues, and connection problems.
- Node.js 18+ - Download from nodejs.org
- AI Agent with MCP Support - Such as Claude Desktop
- Applications to Monitor - The apps/services you want to capture traffic from
- HTTP/HTTPS & WebSocket Traffic Capture with complete request/response data
- AI-Powered Analysis using natural language queries
- Performance Monitoring with response time tracking and bottleneck detection
- Multiple Export Formats (JSON, CSV, HAR) with automatic health monitoring
Important: This tool is designed for development and testing only. Do not use in production environments.
MIT