Charles

v1.0.0Developer Toolsstable

Integrates Charles Proxy with MCP clients to provide real-time and historical network traffic capture and structured analysis. It features a summary-first approach that filters noise and desensitizes data for efficient, low-token agent debugging and

ai-agentcharles-proxycodexdeveloper-toolsmcp
Share:
237
Stars
0
Downloads
0
Weekly
0/5

What is Charles?

Charles is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to integrates charles proxy with mcp clients to provide real-time and historical network traffic capture and structured analysis. it features a summary-first approach that filters noise and desensitizes ...

Integrates Charles Proxy with MCP clients to provide real-time and historical network traffic capture and structured analysis. It features a summary-first approach that filters noise and desensitizes data for efficient, low-token agent debugging and

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Integrates Charles Proxy with MCP clients to provide real-ti

Use Cases

Capture network traffic with Charles Proxy
Debug HTTP requests with AI
Analyze API interactions
heizaheiza

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx charles-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Charles

Charles MCP Server integrates Charles Proxy — the popular HTTP/HTTPS debugging proxy — with AI assistants through the Model Context Protocol, enabling agents to capture, query, and analyse real-time and historical network traffic programmatically. It implements a summary-first philosophy: agents start with grouped capture analysis to identify interesting requests, then drill into specific entries on demand, keeping token usage low while providing deep debugging power. Security-conscious usage is supported through automatic data desensitisation and configurable body size limits.

Prerequisites

  • Charles Proxy installed and running (https://www.charlesproxy.com/) — a licensed or trial copy
  • Charles Proxy web interface enabled (default: http://localhost:8888/charles/proxies)
  • Python 3.9 or later installed
  • uv package manager for running the server via uvx
  • An MCP-compatible AI client such as Claude Desktop, Cursor, or VS Code
1

Ensure Charles Proxy is running with the web interface enabled

Start Charles Proxy and confirm the web interface is accessible at http://localhost:8888. The default credentials are username 'admin' and password '123456'. You can change these in Charles Proxy's Preferences under Proxy > Web Interface.

2

Install uv if not already present

The Charles MCP server is distributed as a Python package and is best run via uvx, which is bundled with uv.

pip install uv
# or on macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
3

Add the server to your Claude Desktop configuration

Open your claude_desktop_config.json file and add the charles-mcp server entry. Set CHARLES_USER and CHARLES_PASS to match your Charles Proxy web interface credentials. Set CHARLES_MANAGE_LIFECYCLE to true if you want the MCP server to start and stop Charles Proxy automatically.

{
  "mcpServers": {
    "charles": {
      "command": "uvx",
      "args": ["charles-mcp"],
      "env": {
        "CHARLES_USER": "admin",
        "CHARLES_PASS": "123456",
        "CHARLES_PROXY_HOST": "127.0.0.1",
        "CHARLES_PROXY_PORT": "8888",
        "CHARLES_MANAGE_LIFECYCLE": "false",
        "CHARLES_REQUEST_TIMEOUT": "10"
      }
    }
  }
}
4

Restart your MCP client

Save the configuration and fully restart Claude Desktop (or your chosen MCP client). The Charles MCP server will appear as connected in the MCP server list.

5

Start a live capture session

In your AI assistant, ask it to start a live capture. The server exposes start_live_capture, read_live_capture, peek_live_capture, stop_live_capture, and query_live_capture_entries tools for real-time traffic analysis.

6

Analyse traffic using the summary-first workflow

Use group_capture_analysis to get a high-level summary of traffic grouped by host or path, then drill into specific entries using get_traffic_entry_detail with the entry_id. This approach minimises token usage compared to fetching all traffic at once.

Charles Examples

Client configuration

Complete Claude Desktop configuration for Charles MCP Server with all available environment variables shown. Adjust CHARLES_USER and CHARLES_PASS to match your Charles Proxy setup.

{
  "mcpServers": {
    "charles": {
      "command": "uvx",
      "args": ["charles-mcp"],
      "env": {
        "CHARLES_USER": "admin",
        "CHARLES_PASS": "123456",
        "CHARLES_PROXY_HOST": "127.0.0.1",
        "CHARLES_PROXY_PORT": "8888",
        "CHARLES_REQUEST_TIMEOUT": "10",
        "CHARLES_MANAGE_LIFECYCLE": "false"
      }
    }
  }
}

Prompts to try

Example prompts for debugging network traffic with Charles MCP Server.

- "Start a live capture and tell me which hosts are receiving the most requests"
- "Show me a summary of all POST requests captured in the last recording session"
- "Find any requests to api.example.com that returned a 4xx or 5xx status code"
- "Analyse the login flow: start a live capture, then stop it after I log in and show me the authentication endpoints"
- "Compare the request headers between two entries to find why one request succeeds and the other fails"
- "Identify any requests that are sending sensitive data like tokens or passwords in query parameters"

Troubleshooting Charles

Connection refused error when the MCP server tries to reach Charles Proxy

Verify Charles Proxy is running and the web interface is enabled. Check CHARLES_PROXY_HOST and CHARLES_PROXY_PORT match your Charles settings. The default port is 8888. Navigate to http://127.0.0.1:8888/charles/proxies in your browser to confirm the web interface is accessible.

Authentication failure (401) when connecting to Charles web interface

Update CHARLES_USER and CHARLES_PASS in your MCP config to match the credentials set in Charles Proxy Preferences > Proxy > Web Interface. The default credentials (admin / 123456) may have been changed during Charles installation.

Response bodies are truncated or empty in traffic analysis

The server defaults to max_body_chars=2048 and include_full_body=false for token efficiency. When you need the complete body, ask the AI to call get_traffic_entry_detail with include_full_body=true on a specific entry_id rather than requesting full bodies for all traffic at once.

Frequently Asked Questions about Charles

What is Charles?

Charles is a Model Context Protocol (MCP) server that integrates charles proxy with mcp clients to provide real-time and historical network traffic capture and structured analysis. it features a summary-first approach that filters noise and desensitizes data for efficient, low-token agent debugging and It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Charles?

Follow the installation instructions on the Charles GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Charles?

Charles works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Charles free to use?

Yes, Charles is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "charles-mcp-server": { "command": "npx", "args": ["-y", "charles-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Charles?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides