{"id":29089737,"url":"https://github.com/tjamet/har-mcp","last_synced_at":"2025-06-28T04:04:48.552Z","repository":{"id":296540731,"uuid":"993732518","full_name":"tjamet/har-mcp","owner":"tjamet","description":"A MCP server for parsing and analyzing HAR (HTTP Archive) files","archived":false,"fork":false,"pushed_at":"2025-05-31T13:03:31.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-01T00:26:33.879Z","etag":null,"topics":["ai","claude","claude-ai","cursor","har","http-ar","http-archive-format","mcp-server","vscode"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tjamet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-31T12:01:32.000Z","updated_at":"2025-05-31T13:07:52.000Z","dependencies_parsed_at":"2025-06-01T00:26:44.196Z","dependency_job_id":"16878393-8849-4f56-9f5c-c4fa2c07be68","html_url":"https://github.com/tjamet/har-mcp","commit_stats":null,"previous_names":["tjamet/har-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tjamet/har-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fhar-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fhar-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fhar-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fhar-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjamet","download_url":"https://codeload.github.com/tjamet/har-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fhar-mcp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262371682,"owners_count":23300595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","claude","claude-ai","cursor","har","http-ar","http-archive-format","mcp-server","vscode"],"created_at":"2025-06-28T04:04:36.118Z","updated_at":"2025-06-28T04:04:48.534Z","avatar_url":"https://github.com/tjamet.png","language":"Go","funding_links":[],"categories":["🤖 AI/ML"],"sub_categories":[],"readme":"# HAR MCP Server\n\nA [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server for parsing and analyzing HAR (HTTP Archive) files. This server allows AI assistants to inspect network traffic captured in HAR format, with built-in support for redacting sensitive authentication headers.\n\n## Features\n\n- **Load HAR files** from local filesystem or HTTP URLs\n- **List all URLs and HTTP methods** accessed in the HAR file\n- **Query request IDs** for specific URL and method combinations\n- **Retrieve full request details** with automatic redaction of authentication headers\n- **Flexible HAR parsing** that handles real-world HAR files with:\n  - Float/decimal values for time fields (automatically rounded to integers)\n  - Plain text or base64-encoded response content\n  - Additional fields not present in the basic HAR spec\n- Support for standard HAR format as produced by browser developer tools\n\n## Installation\n\nYou can install this MCP server using your standard [MCP](https://modelcontextprotocol.io/introduction) configuration.\n\nAdd the following JSON block to your mcp configuration.\n\n## Using docker\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"har\": {\n        \"command\": \"docker\",\n        \"args\": [\n          \"run\",\n          \"-i\",\n          \"--rm\",\n          \"ghcr.io/tjamet/har-mcp\"\n        ]\n      }\n    }\n  }\n}\n```\n\n## Using go run\n\nAlternatively you can run thr server directly with `go run`.\n\n```json\n{\n  \"mcpServers\": {\n    \"github\": {\n      \"command\": \"go\",\n      \"args\": [\n        \"run\",\n        \"github.com/tjamet/har-mcp/cmd/har-mcp@main\"\n      ]\n    }\n  }\n}\n```\n\n### Build from source\n\nIf you don't have Docker, you can use `go build` to build the binary in the\n`cmd/har-mcp` directory, and use the `github-mcp-server` command.\nTo specify the output location of the build, use the `-o` flag. You should configure your server to use the built executable as its `command`. For example:\n\n```JSON\n{\n  \"mcp\": {\n    \"servers\": {\n      \"github\": {\n        \"command\": \"/path/to/har-mcp-server\"\n      }\n    }\n  }\n}\n```\n\n\n## Usage\n\nThe HAR MCP server runs as a stdio-based MCP server, communicating via JSON-RPC over standard input/output.\n\n### Running the Server\n\n```bash\n./har-mcp\n```\n\n### Available Tools\n\n#### 1. `load_har`\nLoad a HAR file from a file path or HTTP URL.\n\n**Parameters:**\n- `source` (string, required): File path or HTTP URL to the HAR file\n\n**Example:**\n```json\n{\n  \"source\": \"/path/to/capture.har\"\n}\n```\n\n#### 2. `list_urls_methods`\nList all accessed URLs and their HTTP methods from the loaded HAR file.\n\n**Parameters:** None\n\n**Returns:** Array of URL/method combinations with their associated request IDs.\n\n#### 3. `get_request_ids`\nGet all request IDs for a specific URL and HTTP method.\n\n**Parameters:**\n- `url` (string, required): The URL to filter by\n- `method` (string, required): The HTTP method to filter by (GET, POST, etc.)\n\n**Example:**\n```json\n{\n  \"url\": \"https://api.example.com/users\",\n  \"method\": \"GET\"\n}\n```\n\n#### 4. `get_request_details`\nGet full request details by request ID. Authentication headers will be automatically redacted.\n\n**Parameters:**\n- `request_id` (string, required): The request ID to retrieve details for\n\n**Example:**\n```json\n{\n  \"request_id\": \"request_0\"\n}\n```\n\n**Redacted Headers:**\n- Authorization\n- X-API-Key\n- X-Auth-Token\n- Cookie\n- Set-Cookie\n- Proxy-Authorization\n\n## Integration with Claude Desktop\n\nAdd the following to your Claude Desktop configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"har-mcp\": {\n      \"command\": \"/path/to/har-mcp\"\n    }\n  }\n}\n```\n\n## Development\n\n### Running Tests\n\n```bash\ngo test ./...\n```\n\n### Project Structure\n\n```\n.\n├── cmd/\n│   └── har-mcp/       # Main application\n│       └── main.go\n├── pkg/\n│   └── har/           # HAR parsing library\n│       ├── parser.go\n│       └── parser_test.go\n├── go.mod\n├── go.sum\n└── README.md\n```\n\n## Dependencies\n\n- [github.com/google/martian/har](https://github.com/google/martian) - HAR file parsing\n- [github.com/mark3labs/mcp-go](https://github.com/mark3labs/mcp-go) - MCP server implementation\n- [github.com/stretchr/testify](https://github.com/stretchr/testify) - Testing assertions\n\n## License\n\n[Add your license here] ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjamet%2Fhar-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjamet%2Fhar-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjamet%2Fhar-mcp/lists"}