Api

io.github.rog0x由 GitHub 帳號 rog0x 發布v1.0.2更新於 Oct 24, 2026

HTTP client, JWT decode, header analysis for AI agents

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

一個本機 MCP 伺服器,為 AI 助理提供 HTTP/API 測試工具:送出請求、檢查端點健康、解碼 JWT、解析 URL 並評估安全回應標頭。

可以做什麼
以任意方法送出 HTTP 請求,可自訂標頭、內容、驗證與逾時,回傳狀態碼、回應標頭、內容與耗時。平行檢查多個 API 端點的狀態、回應時間、SSL 憑證有效性與到期時間,並提供健康摘要。解碼 JWT 權杖但不做簽章驗證,回傳簽發時間、到期時間以及是否已過期。將 URL 拆解為各組成部分,或由各部分組出 URL。分析回應標頭中的安全、快取、CORS 與 Cookie 屬性,並給出字母評級。
適用情境
適合在除錯或測試 API 時使用:讓助理實際送出請求、探測端點健康與憑證、檢視權杖內容,或審查網站的安全回應標頭,而不必離開對話。
執行需求
以本機程序方式透過 stdio 執行,來自 npm 套件 @rog0x/mcp-api-tools;README 說明先安裝並建置,再於用戶端設定中以 node 註冊建置後的進入點檔案。即時請求與取得回應標頭需要網路存取。未宣告帳號、API 金鑰或環境變數。
安裝前請注意
HTTP 請求工具可向任意 URL 送出任意方法,包括 POST、PUT、PATCH 與 DELETE,可能修改或刪除遠端資料,核准前請核對請求。傳入的驗證標頭與 JWT 權杖會送到目標端點並暴露給助理。JWT 解碼不驗證簽章,結果僅供參考。即時標頭與健康檢查會連線第三方網站。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Api,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@rog0x/mcp-api-tools

HTTP/API testing tools for AI agents, built on the Model Context Protocol.

Tools

http_request

Make any HTTP request (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS) with full control over headers, body, authentication, and timeouts. Returns status code, response headers, body, and timing information.

api_health

Check the health of multiple API endpoints in parallel. Returns HTTP status, response time, SSL certificate validity and expiry, and optional response body validation. Includes a summary with counts of healthy, unhealthy, and errored endpoints.

jwt_decode

Decode a JWT token without cryptographic verification. Returns the decoded header and payload, issued-at time, expiry time, and whether the token is currently expired.

url_parse

Parse a URL into its component parts (protocol, host, port, path, query parameters, hash) or build a URL from individual parts.

header_analyzer

Analyze HTTP response headers for security posture (HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), caching directives, CORS configuration, and cookie attributes. Provides a letter grade for security. Can fetch headers from a live URL or analyze a provided headers object.

Installation

bash
npm installnpm run build

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "api-tools": {      "command": "node",      "args": ["D:/products/mcp-servers/mcp-api-tools/dist/index.js"]    }  }}

Claude Code

bash
claude mcp add api-tools node D:/products/mcp-servers/mcp-api-tools/dist/index.js

Examples

Make a POST request:

Use http_request to POST to https://httpbin.org/post with JSON body {"key": "value"}

Check API health:

Use api_health to check these endpoints: https://api.github.com, https://httpbin.org/get

Decode a JWT:

Use jwt_decode to decode this token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Parse a URL:

Use url_parse to break down https://example.com:8080/api/v1?key=value&debug=true#section

Analyze security headers:

Use header_analyzer to check security headers for https://github.com

License

MIT

來源:README.md,提交 f7aa509

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分