MCP server · Audited from source
Charles MCP server
by heizaheiza/charles-mcpMIT licenceAudited 5 Oct 2026 · source 565bf4d0035a
Is it safe? With care — CAUTION, grade B (80/100). It exposes 34 tools: 24 read, 9 write and 1 destructive. The audit recorded 19 findings (0 critical, 0 high, 5 medium, 14 low). Maintainer's description: Charles Proxy MCP server for AI agents with live capture, structured traffic analysis, and agent-friendly tool contracts
Cite
Cite this page
ModelsAtlas. “Charles MCP server (heizaheiza/charles-mcp)”. Retrieved 5 Oct 2026. https://modelsatlas.com/mcp/heizaheiza/charles
Trust audit
Audit 0.4.1 · full source read 5 Oct 2026
19 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared3 observations
- NetworkDeclared5 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | WARN 16 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 2 findings |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
heizaheizaUser accountAccount type recorded when we read the repository. - PackagePublished on PyPI
charles-mcp, no version recorded - LicenceMITFrom the repository, as read at the audited commit.
- Last push3 months agoActivity of the repository when we read it.
- Source commit read565bf4d0035aThe audit covers exactly this commit, read on 5 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory34 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (19)
Sorted by severity
MEDIUMObfuscation / stealthobf.zero_width · charles_mcp/config.py:1
"""Configuration management for the Charles MCP server."""
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.zero_width · charles_mcp/schemas/traffic.py:1
"""Schemas for normalized HTTP traffic entries."""
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.zero_width · charles_mcp/schemas/traffic_query.py:1
"""Schemas for traffic analysis queries."""
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.zero_width · charles_mcp/services/history_capture.py:1
"""History-oriented recording access for Charles MCP."""
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
reset_environment
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInsecure cryptocrypto.weak_hash · charles_mcp/reverse/ingest/common.py:41
return hashlib.sha1(payload.encode("utf-8")).hexdigest()- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · charles_mcp/reverse/ingest/common.py:54
return hashlib.sha1(f"{capture_id}|{sequence_no}|{side}".encode()).hexdigest()- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · charles_mcp/reverse/ingest/native_session.py:315
return hashlib.sha1(payload.encode("utf-8")).hexdigest()- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · charles_mcp/reverse/ingest/xml_session.py:305
return hashlib.sha1(payload.encode("utf-8")).hexdigest()- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/test_docs_contract.py:48
assert "../../AGENTS.md" in contract
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/test_config.py:73
assert config.proxy_url == "http://127.0.0.1:8888"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/vnext/test_replay_service.py:85
monkeypatch.setenv("HTTP_PROXY", "http://127.0.0.1:1")- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/vnext/test_replay_service.py:86
monkeypatch.setenv("HTTPS_PROXY", "http://127.0.0.1:1")- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.decode_call · charles_mcp/analyzers/body.py:176
payload = base64.b64decode(text, validate=False)
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.decode_call · charles_mcp/reverse/ingest/xml_session.py:242
raw_bytes = base64.b64decode(text, validate=False)
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.zero_width · tests/test_config.py:1
"""Unit tests for configuration helpers."""
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · requirements.txt
mcp, httpx, pydantic, jmespath, defusedxml, brotli, zstandard, protobuf
- Why
- 9 requirement(s) not pinned with ==
- Fix
- pin exact versions
LOWSupply chainprompt.pipe_to_shell · README.en.md:115
- macOS/Linux: run: curl -LsSf https://astral.sh/uv/install.sh | sh
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainprompt.pipe_to_shell · README.md:115
- macOS/Linux: run: curl -LsSf https://astral.sh/uv/install.sh | sh
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
34 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
reset_environment | destructive | Reset the Charles environment and restore the saved configuration. |
reverse_analyze_live_api_flow | write | Run a task-oriented live API reverse-analysis workflow on new traffic. |
reverse_analyze_live_login_flow | write | Run a task-oriented live login/auth reverse-analysis workflow on new traffic. |
reverse_analyze_live_signature_flow | write | Run a task-oriented live signature reverse-analysis workflow on new traffic. |
reverse_import_session | write | Import an official Charles XML/native session into the canonical reverse-analysis store. |
reverse_start_live_analysis | write | Start a near-real-time live analysis session without using undocumented JSON export. |
reverse_stop_live_analysis | write | Stop a reverse live-analysis session and optionally restore Charles recording. |
start_live_capture | write | Start or adopt a live capture session for incremental polling. |
stop_live_capture | write | Stop an active live capture and optionally persist the filtered snapshot. |
throttling | write | Set a network throttling preset in Charles. |
analyze_recorded_traffic | read | Analyze a saved recording snapshot with compact summaries. |
charles_status | read | Check Charles connectivity and active live-capture state. |
filter_func | read | Deprecated compatibility alias. Prefer canonical live/history/reverse tools. |
get_capture_analysis_stats | read | Return coarse traffic class counts for a live capture or saved recording. |
get_recording_snapshot | read | Load a saved recording snapshot. This tool never reads the live Charles session. |
get_traffic_entry_detail | read | Load one traffic entry detail view for drill-down inspection. |
group_capture_analysis | read | Group analyzed traffic so the agent can inspect hot spots with lower token cost. |
list_recordings | read | List saved recording files using an explicit history-oriented tool name. |
list_sessions | read | Deprecated compatibility alias. Prefer canonical live/history/reverse tools. |
peek_live_capture | read | Preview incremental traffic without advancing the cursor. |
proxy_by_time | read | Deprecated compatibility alias. Prefer canonical live/history/reverse tools. |
query_live_capture_entries | read | Analyze the active live capture with structured summary-first filtering. |
query_recorded_traffic | read | Query the latest saved recording. This tool never reads the live Charles session. |
read_live_capture | read | Read incremental traffic and advance the cursor. |
reverse_charles_recording_status | read | Inspect Charles recording state and optional reverse live-session state. |
reverse_decode_entry_body | read | Decode a stored request/response body, including protobuf when a descriptor is provided. |
reverse_discover_signature_candidates | read | Compare multiple requests and rank fields that look signature-related. |
reverse_get_entry_detail | read | Get the canonical detail view for one imported entry. |
reverse_list_captures | read | List imported captures from the local SQLite store. |
reverse_list_findings | read | List persisted findings from replay or signature-candidate analysis. |
reverse_peek_live_entries | read | Snapshot the current Charles session and inspect only new entries without advancing the live cursor. |
reverse_query_entries | read | Query imported entries using route-level filters. |
reverse_read_live_entries | read | Snapshot the current Charles session and advance the live cursor to consume new entries. |
reverse_replay_entry | read | Replay one imported entry with optional mutations and store the experiment result. |
Install
audited commit 565bf4d
Read the findings first. The most severe is Obfuscation / stealth (medium) at charles_mcp/config.py.
One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit 565bf4d only.
claude mcp add charles-mcp --env CHARLES_PASS=${CHARLES_PASS} -- uvx charles-mcp{
"mcpServers": {
"charles-mcp": {
"command": "uvx",
"args": [
"charles-mcp"
],
"env": {
"CHARLES_PASS": "${CHARLES_PASS}"
}
}
}
}The command does not pin a version; the audit covers commit 565bf4d0035a. Transport: stdio. Reads this environment variable: CHARLES_PASS. Give it the narrowest token it needs.
Audit history
- !CAUTION B 80 / 100
First audit ·
565bf4d0035a
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/heizaheiza/charles/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Charles MCP server
What is the Charles MCP server?
What tools does Charles expose?
Is Charles safe to connect to an agent?
What credentials does Charles need?
How does Charles run?
How current is this page?
Sources
- heizaheiza/charles-mcp on GitHub — the source we read, its licence, stars and activityObserved · 5 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 565bf4d0035aObserved · 5 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Charles MCP server?
- What tools does Charles expose?
- Is Charles safe to connect to an agent?