Skip to main content
Glama

Port Scanner API

MCP Server x402 License: MIT

扫描任意主机上的 TCP 端口 -- 检查开放/关闭状态和响应时间。默认扫描 16 个常用端口。通过 x402 按次付费(Base L2 上的 USDC)-- 无需 API 密钥、无需注册、无速率限制。

属于 klymax402 市场 -- 面向 AI 智能体的 100 个 x402 微支付 API,一个钱包,Base 上的 USDC。

快速开始 -- MCP

将以下内容添加到你的 MCP 客户端配置中(Claude Desktop、Cursor、ElizaOS 等):

{
  "mcpServers": {
    "port-scanner": {
      "url": "https://port-scanner.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: Network Scanner MCP

快速开始 -- HTTP (x402)

curl -X POST "https://port-scanner.api.klymax402.com/api/scan" \
  -H "Content-Type: application/json" \
  -d '{"host":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试 的循环。

工具

工具

方法

路径

价格

描述

network_scan_ports

POST

/api/scan

$0.008

扫描主机上的常用端口,检查哪些端口处于开放状态

network_scan_ports

当需要检查主机上哪些 TCP 端口开放时,使用此工具。以 JSON 格式返回端口状态和响应时间。

参数

名称

类型

必填

描述

host

string

是

要扫描的主机名或 IP 地址

ports

array

否

要扫描的端口号数组(默认值:[21,22,25,53,80,110,143,443,993,995,3306,3389,5432,6379,8080,8443])

示例响应:

{"host":"example.com","ports":[{"port":80,"status":"open","responseTime":45},{"port":443,"status":"open","responseTime":52},{"port":22,"status":"closed","responseTime":null}],"openCount":2,"totalScanned":16,"scanDuration":1200}

适用场景:服务器侦察、验证防火墙规则、检查服务可用性以及基础设施审计。

不适用于:DNS 解析(使用 network_lookup_dns)、SSL 证书检查(使用 security_check_ssl)、HTTP 头分析(使用 network_analyze_headers)。

示例智能体提示

  • “检查主机上哪些 TCP 端口处于开放状态”

支付

  • 协议:x402 -- 基于 HTTP 的按次付费,无需注册,无需 API 密钥

  • 网络:Base L2(eip155:8453)

  • 资产:USDC

  • 支付协调方:Coinbase CDP(主要)、PayAI(备用)

  • 也可通过 ATXP(OAuth 包装的 x402,RFC 9728 受保护资源元数据)访问

属于 klymax402

面向 AI 智能体的 100 个 x402 微支付 API -- 一个钱包,Base 上的 USDC,零注册。

许可证

MIT

Related MCP Connectors

Related MCP Servers