
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that analyzes HTTP Archive (HAR) files, with a distinguishing value-provenance feature that reconstructs where a token, cookie, id, or payload field was produced and where it was later consumed.
hartrace: an MCP server for analyzing HAR HTTP traffic captures is cataloged as an MCP server attributed to rafsanbasunia. An MCP server that analyzes HTTP Archive (HAR) files, with a distinguishing value-provenance feature that reconstructs where a token, cookie, id, or payload field was produced and where it was later consumed. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for hartrace: an MCP server for analyzing HAR HTTP traffic captures are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
An empty set_by means the value was supplied by the client rather than produced by any captured response, such as a pre-existing OAuth token; values shorter than four characters are refused as too noisy.
No. Every tool returns a structured error value on failure rather than raising, so the agent always receives an actionable message.
README.md · 76266bf89022 · Fetched 2026-11-13 14:00:37 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
An MCP server for analyzing HTTP traffic captures (HAR files) — built so an AI agent can answer questions about a capture without reading the raw JSON into its context window.
Its distinguishing feature is value provenance tracing: given any token, cookie, id, or payload field, hartrace reconstructs where the value was produced (which response set it) and where it was consumed (which later requests sent it), as a compact timeline. Every other tool — search, inspection, diffing — is built to return small, structured results with hard size caps, so analysis stays cheap regardless of how large the capture is.
load_har("session.har")
trace_value("session", "<csrf token>")
→ set_by: response #4 body, JSON path data.csrf
→ used_in: request #9 header X-CSRF, request #9 body field token
HAR files are large, deeply nested, and repetitive. The two common ways an AI ends up analyzing them are both bad: writing throwaway extraction scripts every session, or pasting raw HAR JSON into the context window (slow, expensive, and it overflows on anything real). A 100-entry capture can be several megabytes; a single gzipped response can be hundreds of kilobytes.
hartrace moves the extraction and correlation to the server. Tools return only what was asked for, capped. The questions that normally require reading many entries by hand — where did this auth token come from? which request produced this cookie? where is this id reused? — are answered in one call.
trace_value follows any value across the capture (responses → requests), reporting JSON paths for body fields. Works on tokens, cookies, ids, headers, and payload fields alike, not just cookies.cookie_map and token_map summarize how cookies and high-entropy secrets flow through a session.(method, url, ordinal) so repeated calls to the same endpoint align.http(s) URL (with SSRF protection and a size cap).Requires Python 3.10+.
# recommended — isolated install
pipx install hartrace
# zero-install with uv
uvx hartrace
# plain pip
pip install hartrace
# from source
git clone https://github.com/rafsanbasunia/hartrace
cd hartrace
pip install -e .
The only runtime dependency is fastmcp.
Add the server to claude_desktop_config.json:
{
"mcpServers": {
"hartrace": {
"command": "uvx",
"args": ["hartrace"]
}
}
}
Or, running from source:
{
"mcpServers": {
"hartrace": {
"command": "python",
"args": ["/absolute/path/to/hartrace/har_mcp.py"]
}
}
}
Restart Claude Desktop, then talk to it naturally:
"Load
~/captures/login.harand tell me where the CSRF token comes from." "Which requests reuse the session cookie?" "Diffbefore.harandafter.har— what's new?"
hartrace is a standard stdio MCP server, so it works in any MCP-capable client — only the config file and wrapper key differ.
Cursor (.cursor/mcp.json) and Windsurf use the same "mcpServers" block shown above.
VS Code (.vscode/mcp.json) uses a "servers" key with an explicit type:
{
"servers": {
"hartrace": { "type": "stdio", "command": "uvx", "args": ["hartrace"] }
}
}
In every case the command/args are identical to the Claude Desktop example.
hartrace exposes 19 tools. Refer to a loaded capture by the name returned from load_har.
| Tool | Purpose |
|---|---|
list_har_files(dir) | List .har files in a directory to choose from. |
load_har(path) | Load a capture from a local path. Returns the assigned name. |
load_har_url(url) | Load a capture from an http(s) URL (SSRF-guarded, size-capped). |
list_hars() | List currently loaded captures. |
unload_har(name) | Drop a capture to free memory. |
| Tool | Purpose |
|---|---|
list_requests(name, filter, …) | Overview rows: index, method, URL, status, response size. |
get_request(name, index) | One request, decoded; secrets redacted. |
get_response(name, index, max_chars) | One response body, decoded (base64/gzip), JSON unwrapped, capped. |
get_headers(name, index) | Request and response headers for one entry. |
get_query_params(name, index) | Parsed query string of one request. |
| Tool | Purpose |
|---|---|
search_regex(name, pattern, scope) | Regex over url | req_headers | resp_headers | req_body | resp_body | all. |
find_header(name, header_name) | Every entry carrying a header, with raw values. |
find_urls(name, pattern) | Requests whose URL matches a pattern. |
list_endpoints(name, group_by) | Unique endpoints with call counts. |
| Tool | Purpose |
|---|---|
trace_value(name, value) | Where a value was set vs. used — the full timeline. |
trace_header(name, header_name) | Resolve a header's value(s) and trace their origin. |
cookie_map(name) | Every cookie's set/used lifecycle and attributes. |
token_map(name, all_tokens) | High-entropy secrets and how they propagate. |
| Tool | Purpose |
|---|---|
diff_hars(a, b) | Requests unique to each capture; matched by (method, url, ordinal). |
Every tool's full description — including argument semantics and a worked example — is available to the model through the MCP protocol.
On first trace, hartrace builds a correlation index over the capture (cached for subsequent calls). For a queried value it separates hits into two sides:
set_by — responses that produced the value: a Set-Cookie header, or a response body (with the JSON path when the value sits inside parseable JSON).used_in — later requests that sent the value: in a request header, a cookie, or a request body field (again with JSON path where applicable).An empty set_by means the value was supplied by the client rather than produced by any captured response — for example a pre-existing OAuth token. origin is the earliest producer; timeline is the ordered list of entry indices touched.
Values shorter than four characters are refused, because short strings match everywhere and the result would be noise rather than signal.
limit/offset, and limits are clamped server-side (a request for a million rows returns the cap, not a million rows). Response bodies are capped by max_chars. These bounds are what make token usage predictable.<REDACTED len=N>, using a configurable header list plus a generic Shannon-entropy heuristic — not a vendor-specific token shape. Provenance tools correlate on the real value but display only a redacted preview. (find_header intentionally returns raw values, since its purpose is to extract a value to trace.)load_har_url refuses non-http(s) schemes and any host resolving to a private, loopback, link-local, reserved, or multicast address (including cloud metadata endpoints), and enforces the size cap on download.{error: "..."} on failure rather than raising, so the agent always receives an actionable message.The server contains no vendor-specific logic. Helpers such as nested-JSON unwrapping are generic and apply to any deeply nested response.
pip install -e ".[dev]"
pytest
The suite covers parsing and decoding, redaction and entropy detection, provenance tracing (cookie and non-cookie values, JSON-path resolution), the search toolkit, URL loading and SSRF guards, and the tools driven through the actual FastMCP call path.
Layout:
har_mcp.py MCP server: tool definitions and the stdio entry point
har_parser.py Parsing, decoding, redaction, and the in-memory store
provenance.py Correlation index and the trace / cookie / token tools
search.py Regex, header, URL, and endpoint search
config.json Redaction settings (sensitive headers, entropy thresholds)
tests/ pytest suite
config.json adjusts redaction without code changes:
{
"sensitive_headers": ["authorization", "cookie", "set-cookie", "x-csrf-token", "x-api-key"],
"redact_sensitive_headers": false,
"entropy_min_len": 24,
"entropy_bits_min": 3.5
}
| Key | Default | Effect |
|---|---|---|
sensitive_headers | common auth headers | Header names whose values are redacted when redact_sensitive_headers is true. Has no effect when the flag is false. |
redact_sensitive_headers | false | When false (default), header values are returned as-is — you see the real tokens in inspection output. Set to true to mask values for any header in sensitive_headers with <REDACTED len=N>, which is useful when sharing output or working in a less trusted environment. |
entropy_min_len / entropy_bits_min | 24 / 3.5 | High-entropy opaque strings are redacted regardless of this flag. The entropy check is always on. |
Note: find_header always returns raw values by design — it exists specifically to extract a value so you can pass it to trace_value.
MIT. See LICENSE.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for hartrace: an MCP server for analyzing HAR HTTP traffic captures from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/hartrace)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.