Logo de powhttp-mcp

powhttp-mcp

Organisation
usestring

MCP server enabling agents to debug HTTP requests better (using powhttp)

Éditeurusestring
Dépôtpowhttp-mcp
LangueGo
Forks
7
Étoiles
81
Outils disponibles
0
Type de transportstdio
Catégories
LicenceAGPL-3.0
Liens
  • Connectez des outils à vos workflows IA

    powhttp-mcp propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    81 étoiles et 7 forks sur le dépôt associé.

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:

bash
go install github.com/usestring/powhttp-mcp/cmd/powhttp-mcp@latest

Or install a specific version:

bash
go install github.com/usestring/powhttp-mcp/cmd/powhttp-mcp@v1.0.0

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:

bash
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):

bash
export PATH="$PATH:$(go env GOPATH)/bin"

For zsh (~/.zshrc):

bash
export PATH="$PATH:$(go env GOPATH)/bin"

For fish (~/.config/fish/config.fish):

fish
fish_add_path (go env GOPATH)/bin

Then reload your shell:

bash
source ~/.zshrc  # or ~/.bashrc, etc.

Windows

PowerShell (current session):

powershell
$env:PATH += ";$(go env GOPATH)\bin"

Permanently via PowerShell:

powershell
[Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";$(go env GOPATH)\bin", "User")

Or via System Settings:

  1. Press Win + R, type sysdm.cpl, press Enter
  2. Go to Advanced → Environment Variables
  3. Under "User variables", select Path and click Edit
  4. Click New and add %USERPROFILE%\go\bin
  5. 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:

  1. Open Powhttp Settings > Data API
  2. Make sure the Data API is running
  3. (Recommended) Enable Auto start on app launch for convenience
  4. Note the port number — you'll need this for POWHTTP_BASE_URL in your MCP configuration

Usage

Connecting to Cursor

Add to your .cursor/mcp.json:

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):

json
{
  "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:

bash
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:

PromptDescription
base_promptSTART HERE: Essential guide for efficient tool usage and token optimization
compare_browser_programCompare browser vs program traffic to find anti-bot detection differences
build_api_mapBuild an API endpoint catalog from captured traffic
generate_scraperGenerate PoC Go scrapers from captured traffic

MCP Tools

powhttp-mcp provides 17 tools for HTTP traffic analysis:

ToolDescription
powhttp_sessions_listList all sessions with entry counts
powhttp_session_activeGet the currently active session
powhttp_search_entriesSearch entries with filters and free text
powhttp_get_entryGet full details of a specific entry
powhttp_get_tlsGet TLS handshake events for a connection
powhttp_get_http2_streamGet HTTP/2 frame details for a stream
powhttp_fingerprintGenerate HTTP, TLS, and HTTP/2 fingerprints
powhttp_diff_entriesCompare two entries to find detection differences
powhttp_extract_endpointsCluster entries into endpoint groups
powhttp_describe_endpointGenerate detailed endpoint description
powhttp_trace_flowTrace related requests around a seed entry
powhttp_validate_schemaValidate entry bodies against a schema
powhttp_query_bodyExtract specific fields from bodies using JQ expressions
powhttp_infer_schemaInfer merged schema from multiple entry bodies with field statistics
powhttp_graphql_operationsCluster GraphQL traffic by operation name and type
powhttp_graphql_inspectParse and inspect individual GraphQL operations
powhttp_graphql_errorsExtract and categorize GraphQL errors from responses

See internal/mcp/README.md for detailed tool documentation.


Environment Variables

VariableDescriptionDefault
POWHTTP_BASE_URLWhere to find the powhttp API serverhttp://localhost:7777
POWHTTP_PROXY_URLProxy URL used by prompts when generating scrapers and debugginghttp://127.0.0.1:8890
LOG_LEVELHow verbose the logs are: debug, info, warn, errorinfo
LOG_FILEFile to write logs to (empty = print to console)"" (console)
VariableDescriptionDefault
HTTP_CLIENT_TIMEOUT_MSHow long to wait for API responses (milliseconds)10000 (10s)
FETCH_WORKERSHow many entries to fetch in parallel16
ENTRY_CACHE_MAX_ITEMSHow many entries to keep in memory cache512
REFRESH_INTERVAL_MSHow often to check for new entries (milliseconds)2000 (2s)
REFRESH_TIMEOUT_MSMax time for index refresh operation (milliseconds)15000 (15s)
FRESHNESS_THRESHOLD_MSConsider data stale after this many milliseconds500 (0.5s)
VariableDescriptionDefault
TOOL_MAX_BYTES_DEFAULTMax response body size tools return (bytes)2000000 (2MB)
RESOURCE_MAX_BODY_BYTESMax body size for MCP resources (bytes)65536 (64KB)
TLS_MAX_EVENTS_DEFAULTMax TLS handshake events to return200
H2_MAX_EVENTS_DEFAULTMax HTTP/2 frames to return200
BOOTSTRAP_TAIL_LIMITMax entries to load when starting up20000
VariableDescriptionDefault
COMPACT_MAX_ARRAY_ITEMSIn compact mode, trim arrays to this many items3
COMPACT_MAX_STRING_LENTruncate strings longer than this (chars)500
COMPACT_MAX_DEPTHMax nesting depth for compaction (0 = unlimited)0
DEFAULT_SEARCH_LIMITDefault max results for search_entries10
DEFAULT_QUERY_LIMITDefault max entries for query_body20
DEFAULT_CLUSTER_LIMITDefault max clusters for extract_endpoints15
DEFAULT_EXAMPLES_PER_ITEMDefault examples shown per cluster3
VariableDescriptionDefault
LOG_MAX_SIZE_MBRotate log when it reaches this size (MB)10
LOG_MAX_BACKUPSKeep this many old log files5
LOG_MAX_AGE_DAYSDelete log files older than this (days)28
LOG_COMPRESSCompress old log files (true/false)true

Development

Prerequisites

  • Go 1.24.5 or later
  • Running powhttp instance

Building

bash
go build ./cmd/powhttp-mcp

Testing

bash
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 enhancement label
  • 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 bump
  • fix: - patch version bump
  • perf: - patch version bump
  • revert: - patch version bump
  • feat!: or BREAKING 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

Utilisez le serveur MCP powhttp-mcp avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois powhttp-mcp connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez powhttp-mcp en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP powhttp-mcp.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "powhttp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de powhttp-mcp, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de powhttp-mcp.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser powhttp-mcp pour m’aider dans cette tâche ?
powhttp-mcp
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec powhttp-mcp.

Foire aux questions

À quoi sert le serveur MCP powhttp-mcp ?

powhttp-mcp est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP powhttp-mcp avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser powhttp-mcp avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP powhttp-mcp avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois powhttp-mcp connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP powhttp-mcp à TypingMind ?

powhttp-mcp fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP powhttp-mcp propose-t-il dans TypingMind ?

powhttp-mcp propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP powhttp-mcp ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si powhttp-mcp nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇