
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 分