powhttp-mcp 标志

powhttp-mcp

组织
usestring

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

发布者usestring
代码仓库powhttp-mcp
语言Go
复刻数
7
星标数
81
可用工具
0
传输类型stdio
分类
许可协议AGPL-3.0
链接
  • 将工具接入 AI 工作流

    powhttp-mcp 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 81 个 Star 和 7 个 Fork。

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

将 powhttp-mcp MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 powhttp-mcp 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 powhttp-mcp 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 powhttp-mcp MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "powhttp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 powhttp-mcp MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 powhttp-mcp MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 powhttp-mcp 帮我完成这项任务吗?
powhttp-mcp
当然。我已阅读。
以下是我使用 powhttp-mcp 得到的结果。

常见问题

powhttp-mcp MCP 服务器有什么用途?

powhttp-mcp 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 powhttp-mcp MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 powhttp-mcp,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 powhttp-mcp MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 powhttp-mcp 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 powhttp-mcp MCP 连接到 TypingMind?

powhttp-mcp 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

powhttp-mcp MCP 在 TypingMind 中提供哪些工具?

powhttp-mcp 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 powhttp-mcp MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 powhttp-mcp 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇