Get the FREE Ultimate OpenClaw Setup Guide →

har

A MCP server for parsing and analyzing HAR (HTTP Archive) files

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio tjamet-har-mcp docker run -i --rm ghcr.io/tjamet/har-mcp

How to use

This HAR MCP server loads and analyzes HAR (HTTP Archive) files. It exposes a set of MCP tools to load a HAR file from disk or a URL, enumerate the requests contained in the HAR, query request IDs by URL and HTTP method, and retrieve complete request details with sensitive authentication headers automatically redacted. The available tools include: load_har to ingest a HAR file, list_urls_methods to see all accessed URLs with their methods and associated request IDs, get_request_ids to fetch the IDs for a given URL and method, and get_request_details to fetch the full request information for a specific request ID (with redacted headers such as Authorization, X-API-Key, and cookies). This makes it easy for AI assistants to inspect network activity captured in HAR files in a privacy-preserving way and integrate those insights into workflows that rely on detailed request data.

How to install

Prerequisites:

  • Docker installed and running, or an environment capable of running the HAR MCP server container
  • Access to the internet to pull the HAR MCP Docker image

Installation steps (Docker):

  1. Ensure Docker is running on your machine.
  2. Run the HAR MCP server container using the command below:
docker run -i --rm ghcr.io/tjamet/har-mcp

If you prefer to use the tool as part of an MCP workflow, you can reference it in your MCP configuration as shown in the example below. This allows you to start the server within your MCP orchestration without directly invoking Docker each time.

{
  "mcp": {
    "servers": {
      "har": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "ghcr.io/tjamet/har-mcp"
        ]
      }
    }
  }
}

Additional notes

Tips and notes:

  • The server supports loading HAR files from both local file paths and HTTP URLs via the load_har tool.
  • When retrieving request details with get_request_details, sensitive headers (e.g., Authorization, X-API-Key, X-Auth-Token, Cookie, Set-Cookie, Proxy-Authorization) are automatically redacted to protect credentials.
  • HAR parsing uses the google/martian HAR parser; time fields are rounded to integers and content may be returned as plain text or base64-encoded depending on the HAR content.
  • If you encounter parsing issues with unusual HAR files, ensure the HAR adheres to the standard schema and try reloading the HAR using load_har with a URL or local path.
  • The server runs as a standard MCP server over stdio; integrate it into your MCP workflow by listing it in your MCP orchestration with the appropriate command configuration.

Related MCP Servers

Sponsor this space

Reach thousands of developers