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.
Quickstart Execution
Terminal
Get started with Har2MCP in your project.
# Convert a saved HAR capture into an MCP server
npx har2mcp generate -i ./traffic.har -o ./my-mcp-serverAbout Har2MCP
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.
DK
Danish Product & Data Recipes
How developers and agents use Har2MCP to connect with Danish digital infrastructure.
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.
npx har2mcp generate --input ./kommune-search.har --output ./kommune-mcpKey Capabilities
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