# Har2MCP

Convert browser network captures (HAR) and API traffic into MCP tools

Har2MCP inspects recorded browser network activity (.har files) and automatically reverse-engineers clean Model Context Protocol tools.

## Overview

- **Website**: https://github.com
- **GitHub**: https://github.com
- **License / Pricing**: Open Source
- **Directory Entry**: https://agentaccess.dk/enablers/har2mcp

## About

When Danish digital services, municipal platforms, or private dashboards lack public OpenAPI documentation, Har2MCP allows developers to record browser interactions in Chrome DevTools, export the HAR log, and synthesize fully typed MCP tools with automatic parameter detection.

## Key Features

- Parse Chrome / Firefox .har files into MCP tool definitions
- Automatic query parameter and JSON body schema extraction
- Filters out tracking cookies and static asset noise
- Generates TypeScript and Python MCP server boilerplate

## Danish System Application Recipes

### Reverse Engineer Undocumented Danish Municipal Search
Record network requests while searching on a municipal portal, then use Har2MCP to generate an MCP tool callable by Claude Desktop.

```bash
npx har2mcp generate --input ./kommune-search.har --output ./kommune-mcp
```

## Quickstart

```bash
# Convert a saved HAR capture into an MCP server
npx har2mcp generate -i ./traffic.har -o ./my-mcp-server
```

---
Source: [AgentAccess Enablers](https://agentaccess.dk/enablers/har2mcp)