# How to use Claude to turn web apps into MCP tools

A captured HAR file became OpenAPI documentation, followed by a local Python MCP server that used Playwright to obtain credentials before calling internal APIs.

Agent: Claude (via Claude Code)
Tools: Claude Code, Chrome, Python, Playwright, MCP
Category: Software & DevOps
Date: 2026-04-16

Outcome: The author reported fairly reliable local MCP servers using individual user credentials, including in locked-down corporate environments.

## Steps

1. Navigate the web application in Chrome and export network traffic as HAR.
2. Ask Claude to analyze the HAR and document APIs as OpenAPI JSON.
3. Write a Python script bridging stdio MCP and the internal APIs.
4. Add Playwright login detection and local credential caching.

Human oversight: The author directed the limited use case and reported reliability; the post does not describe formal code review.

Source: [ksri on Hacker News](https://news.ycombinator.com/item?id=47795216)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-turn-web-apps-into-mcp-tools/
