MCP HAR Server

by naotaka3

Not rated
GitHub

About

Parses HAR (HTTP Archive) files and displays requests in a simplified format for AI assistants.

Details

Author
naotaka3
Categories
Developer Tools

Setup

Install MCP HAR Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/naotaka3/mcp-har-server

Follow the installation instructions in the repository README, then restart your MCP client.

A Model Context Protocol (MCP) server that parses HAR (HTTP Archive) files and displays requests in a simplified format. This tool is designed to be used with AI assistants through the MCP protocol.

- Parse HAR files and extract request/response information
- Display requests with hash identifiers for easy reference
- Toggle query parameter visibility
- Filter requests by status code, method, URL pattern, or exclude specific domains
- View detailed headers and body information for specific requests
- List unique domains from HAR files to help with filtering

Displays HAR file requests in a simplified format with hash identifiers. Includes filtering options to narrow down results.

Provides detailed information about specific HAR file entries including headers and request/response bodies. Uses hash identifiers to reference specific requests.

Lists all unique domains found in a HAR file to help reduce output volume and provide filtering options.

To use this server with Claude Desktop, add the following configuration to yourclaude_desktop_config.json:

The configuration fileclaude_desktop_config.jsonis located at: After changing the configuration, please restart Claude Desktop.

- macOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "mcp-har-server": { "command": "npx", "args": ["-y", "@naotaka/mcp-har-server@latest"] } } }
{ "mcpServers": { "mcp-har-server": { "command": "node", "args": ["/path/to/mcp-har-server/build/index.js"] } } }

The HAR viewer tool can be accessed through the MCP protocol. Here's an example of how to use it:

// Example usage through MCP protocol const result = await mcpClient.callTool('har_viewer', { filePath: '/path/to/your/file.har', showQueryParams: true, // Set to false to hide query parameters filter: { statusCode: 200, // Optional: Filter by status code method: 'GET', // Optional: Filter by HTTP method urlPattern: 'api', // Optional: Filter by URL pattern excludeDomains: ['cdn.example.com', 'analytics.example.com'], // Optional: Exclude specific domains }, });
[abc123] 200 GET https://example.com/api/users?page=1&limit=10 [def456] 404 POST https://api.example.org/data/process?format=json&version=2.1 [ghi789] 500 PUT https://service.example.net/update?id=12345&token=abc123
[abc123] 200 GET https://example.com/api/users [def456] 404 POST https://api.example.org/data/process [ghi789] 500 PUT https://service.example.net/update

The HAR Detail tool allows you to view detailed information about specific requests in a HAR file. You can view headers and optionally body content:

// Example usage through MCP protocol const result = await mcpClient.callTool('har_detail', { filePath: '/path/to/your/file.har', hashes: 'abc123', // Single hash or comma-separated list like 'abc123,def456,ghi789' showBody: true, // Set to false to hide request/response bodies });
ENTRY [abc123] === REQUEST === GET https://example.com/api/users?page=1&limit=10 --- Headers --- Accept: application/json User-Agent: Mozilla/5.0 === RESPONSE === 200 OK --- Headers --- Content-Type: application/json Cache-Control: no-cache --- Body --- { "users": [ { "id": 1, "name": "John Doe" }, { "id": 2, "name": "Jane Smith" } ], "page": 1, "total": 42 }

The Domain List tool helps you see all unique domains in a HAR file, which is useful for filtering:

// Example usage through MCP protocol const result = await mcpClient.callTool('domain_list', { filePath: '/path/to/your/file.har', });
example.com api.example.org service.example.net cdn.example.com analytics.example.com
# Build the project npm run build # Run tests npm test

This tool uses the Model Context Protocol (MCP), which allows AI assistants to interact with external tools and services. Learn more about MCP athttps://github.com/modelcontextprotocol/typescript-sdk.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Create crafted UI components inspired by the best 21st.dev design engineers.

Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server

An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .

MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent

ALAPI MCP Tools,Call hundreds of API interfaces via MCP

AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform

MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.

APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.

One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.

Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.