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 分