powhttp-mcp
See it in action
Using /generate_scraper to build a BMW car listing monitor:
https://github.com/user-attachments/assets/be098e9d-d700-491c-ae7f-5afb12732728
Features
- HTTP Traffic Analysis - Search, inspect, and analyze captured HTTP requests/responses
- Anti-Bot Detection - Compare browser vs program traffic to identify detection vectors
- Fingerprinting - Generate TLS (JA3/JA4) and HTTP/2 fingerprints
- API Mapping - Cluster and catalog API endpoints from captured traffic
- GraphQL Analysis - Cluster operations, inspect schemas, and extract errors from GraphQL APIs
- Schema Inference - Infer merged schemas from multiple response bodies with field statistics
- Flow Tracing - Trace related requests (redirects, dependent calls)
- Schema Validation - Validate response bodies against Go structs, Zod, or JSON Schema
- Scraper Generation - Generate PoC Go scrapers from captured traffic
Schema validation in action - correcting data structures for edge cases:
https://github.com/user-attachments/assets/1156c537-70ab-4179-ad4a-c148988ac503
Installation
Install via go install:
go install github.com/usestring/powhttp-mcp/cmd/powhttp-mcp@latest
Or install a specific version:
go install github.com/usestring/powhttp-mcp/cmd/[email protected]
Download and install Go from the official website: https://go.dev/doc/install
If you get command not found: powhttp-mcp after installation, you need to add Go's bin directory to your PATH.
Find your Go bin directory:
go env GOPATH
This returns your Go workspace directory, typically ~/go (macOS/Linux) or C:\Users\yourname\go (Windows). The binaries are installed in the bin subdirectory.
macOS / Linux
For bash (~/.bashrc or ~/.bash_profile):
export PATH="$PATH:$(go env GOPATH)/bin"
For zsh (~/.zshrc):
export PATH="$PATH:$(go env GOPATH)/bin"
For fish (~/.config/fish/config.fish):
fish_add_path (go env GOPATH)/bin
Then reload your shell:
source ~/.zshrc # or ~/.bashrc, etc.
Windows
PowerShell (current session):
$env:PATH += ";$(go env GOPATH)\bin"
Permanently via PowerShell:
[Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";$(go env GOPATH)\bin", "User")
Or via System Settings:
- Press
Win + R, typesysdm.cpl, press Enter - Go to Advanced → Environment Variables
- Under "User variables", select Path and click Edit
- Click New and add
%USERPROFILE%\go\bin - Click OK to save, then restart your terminal
Enabling the Data API
Before using powhttp-mcp, you need to enable the Data API in powhttp:
- Open Powhttp Settings > Data API
- Make sure the Data API is running
- (Recommended) Enable Auto start on app launch for convenience
- Note the port number — you'll need this for
POWHTTP_BASE_URLin your MCP configuration
Usage
Connecting to Cursor
Add to your .cursor/mcp.json:
{
"mcpServers": {
"powhttp": {
"command": "powhttp-mcp",
"env": {
"POWHTTP_BASE_URL": "http://localhost:7777",
"POWHTTP_PROXY_URL": "http://localhost:8888"
}
}
}
}
Connecting to Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"powhttp": {
"command": "powhttp-mcp",
"env": {
"POWHTTP_BASE_URL": "http://localhost:7777",
"POWHTTP_PROXY_URL": "http://localhost:8888"
}
}
}
}
Connecting to Claude Code
Add using the CLI:
claude mcp add powhttp -e POWHTTP_BASE_URL=http://localhost:7777 -e POWHTTP_PROXY_URL=http://localhost:8888 -- powhttp-mcp
The generated scraper running successfully:
https://github.com/user-attachments/assets/52b30cbf-7c66-40b1-a3fe-9c12d37ece11
MCP Prompts
powhttp-mcp provides 4 prompts for guided workflows:
MCP Tools
powhttp-mcp provides 17 tools for HTTP traffic analysis:
See internal/mcp/README.md for detailed tool documentation.
Environment Variables
Development
Prerequisites
- Go 1.24.5 or later
- Running powhttp instance
Building
go build ./cmd/powhttp-mcp
Testing
go test ./...
Feature Requests & Bug Reports
Have a feature suggestion or found a bug? We'd love to hear from you!
- Feature Requests: Open an issue with the
enhancementlabel - Bug Reports: Please include steps to reproduce, your environment details, and relevant logs
Contributing
We use squash merges for all pull requests. When creating a PR, ensure the PR title follows Conventional Commits format, as it will become the commit message:
Triggers release:
feat:- minor version bumpfix:- patch version bumpperf:- patch version bumprevert:- patch version bumpfeat!:orBREAKING CHANGE:- major version bump
No release:
docs:,chore:,refactor:,test:,style:,build:,ci:
Versioning is automated via release-please.
License
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
Acknowledgments
About String — String ( better website coming soon :) ) extracts structured data from any website at scale. We handle all the code and maintenance.
This project was built during an internal hackathon focused on developer experience tooling. Special thanks to:
- Kashif Ghafoor — For his contributions during the hackathon
- Florian — Creator of powhttp for implementing the API from a suggestion and being responsive to feedback
Related Projects
- powhttp - HTTP traffic capture and analysis
- Model Context Protocol - Protocol specification