
Api
io.github.rog0x由 GitHub 帳號 rog0x 發布v1.0.2更新於 Oct 24, 2026
HTTP client, JWT decode, header analysis for AI agents
概覽
一個本機 MCP 伺服器,為 AI 助理提供 HTTP/API 測試工具:送出請求、檢查端點健康、解碼 JWT、解析 URL 並評估安全回應標頭。
- 可以做什麼
- 以任意方法送出 HTTP 請求,可自訂標頭、內容、驗證與逾時,回傳狀態碼、回應標頭、內容與耗時。平行檢查多個 API 端點的狀態、回應時間、SSL 憑證有效性與到期時間,並提供健康摘要。解碼 JWT 權杖但不做簽章驗證,回傳簽發時間、到期時間以及是否已過期。將 URL 拆解為各組成部分,或由各部分組出 URL。分析回應標頭中的安全、快取、CORS 與 Cookie 屬性,並給出字母評級。
- 適用情境
- 適合在除錯或測試 API 時使用:讓助理實際送出請求、探測端點健康與憑證、檢視權杖內容,或審查網站的安全回應標頭,而不必離開對話。
- 執行需求
- 以本機程序方式透過 stdio 執行,來自 npm 套件 @rog0x/mcp-api-tools;README 說明先安裝並建置,再於用戶端設定中以 node 註冊建置後的進入點檔案。即時請求與取得回應標頭需要網路存取。未宣告帳號、API 金鑰或環境變數。
安裝
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
Configuration
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Examples
Make a POST request:
Check API health:
Decode a JWT:
Parse a URL:
Analyze security headers:
License
MIT
來源:README.md,提交 f7aa509
工具
0版本歷史
1- v1.0.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分