Token导航 LogoToken导航TokenDH.com
Web Stack Scan logo
运维云端未说明官方级别未说明来源级核验

Web Stack Scan

MCP Server

用于从HTTP头和HTML签名中识别网站技术栈的MCP服务器工具,支持框架检测、分析脚本识别和轻量级静态分析。

工具数

3

提示词数

0

GitHub Stars

1

资源数

0
TypeScript云端部署Docker

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

BUZDOLAPCI

提供方

BUZDOLAPCI

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

网络堆栈扫描

MCP服务器,用于从标题和HTML签名中提取网站技术栈的指纹。

特性

  • 指纹网站 -分析任何URL以检测使用的技术
  • 检测框架 -从HTML和头部识别前端/后端框架
  • 检测分析 -查找分析和跟踪脚本
  • 没有无头浏览器 -轻量级静态HTML分析
  • 可扩展签名 -易于添加新的检测模式

安装

npm install
npm run build

用法

作为MCP服务器(stdio)

# Start with stdio transport for MCP clients
npm run start:stdio
# or
node dist/cli.js --stdio

作为HTTP服务器

# Start HTTP server (default port 3000)
npm run start:http
# or
node dist/cli.js --http --port 8080

CLI选项

web-stack-scan [OPTIONS]

OPTIONS:
  --stdio, -s     Use stdio transport (default)
  --http, -h      Use HTTP transport
  --port, -p      Port for HTTP server (default: 3000)
  --host          Host for HTTP server (default: 127.0.0.1)
  --version, -v   Print version
  --help          Print this help message

MCP工具

指纹

完整指纹:获取URL,分析标头和HTML,返回检测到的技术。

参数:

  • url (字符串,必填)-指纹识别的URL
  • timeout (数字,可选)-超时(毫秒)(默认值:10000)

例子:

{
  "method": "tools/call",
  "params": {
    "name": "fingerprint",
    "arguments": {
      "url": "https://example.com"
    }
  }
}

答复:

{
  "ok": true,
  "data": {
    "url": "https://example.com",
    "technologies": [
      {
        "name": "React",
        "version": "18.2.0",
        "confidence": "high",
        "category": "frontend-framework"
      },
      {
        "name": "nginx",
        "confidence": "high",
        "category": "server"
      }
    ],
    "analytics": [
      {
        "name": "Google Analytics",
        "type": "analytics"
      }
    ],
    "headers": {
      "server": "nginx",
      "content-type": "text/html"
    }
  },
  "meta": {
    "source": "https://example.com",
    "retrieved_at": "2024-01-15T10:30:00.000Z",
    "pagination": { "next_cursor": null },
    "warnings": []
  }
}

检测框架

从HTML内容和可选标头中检测前端/后端框架。

参数:

  • html (string,必填)-要分析的HTML内容
  • headers (对象,可选)-要分析的HTTP标头

例子:

{
  "method": "tools/call",
  "params": {
    "name": "detect_frameworks",
    "arguments": {
      "html": "

",
      "headers": {
        "X-Powered-By": "Express"
      }
    }
  }
}

检测分析

从HTML内容中检测分析和跟踪脚本。

参数:

  • html (string,必填)-要分析的HTML内容

例子:

{
  "method": "tools/call",
  "params": {
    "name": "detect_analytics",
    "arguments": {
      "html": "gtag('config', 'UA-12345-1');"
    }
  }
}

REST API(HTTP模式)

在HTTP模式下运行时,以下REST端点可用:

POST/api/指纹

curl -X POST http://localhost:3000/api/fingerprint \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

POST/api/框架

curl -X POST http://localhost:3000/api/frameworks \
  -H "Content-Type: application/json" \
  -d '{"html": "...", "headers": {"X-Powered-By": "Express"}}'

POST/api/分析

curl -X POST http://localhost:3000/api/analytics \
  -H "Content-Type: application/json" \
  -d '{"html": "..."}'

GET/健康

curl http://localhost:3000/health
# Returns: {"status": "ok", "service": "web-stack-scan"}

检测技术

从标题

标题技术
X-Powered ByExpress、PHP、ASP。NET、Next.js
服务器nginx、Apache、Cloudflare、微软IIS
X-Drupal-CacheDrupal
X-GeneratorWordPress、Ghost、Drupal、Joomla
X-Shopify-StageShopify

来自HTML/脚本

类别技术
前端框架React、Vue.js、Angular、Svelte
元框架Next.js、Nuxt、Gatsby、Remix
jQuery
CSS框架Bootstrap、Tailwind CSS
CMSWordPress,Wix
电子商务Shopify

分析和跟踪

类型服务
分析谷歌分析、Hotjar、分段、混合面板、堆、振幅
跟踪谷歌标签管理器
营销Facebook Pixel、Intercom、HubSpot、Drift、LinkedIn Insight、Twitter Pixel、Pinterest Tag、TikTok Pixel

扩展签名

签名定义见 src/config.ts。要添加新签名,请执行以下操作:

添加框架签名

// In frameworkSignatures array
{
  name: 'MyFramework',
  patterns: [
    /my-framework/i,
    /myframework\.js/,
  ],
  category: 'frontend-framework',
  versionPattern: /myframework@(\d+\.\d+\.\d+)/,
}

添加标题签名

// In headerSignatures array
{
  header: 'x-my-header',
  patterns: [
    { pattern: /mytech/i, technology: 'MyTech', category: 'backend-framework' },
  ],
}

添加分析签名

// In analyticsSignatures array
{
  name: 'My Analytics',
  type: 'analytics',
  patterns: [
    /myanalytics\.com/,
    /myanalytics\.track/,
  ],
}

发展

# Install dependencies
npm install

# Run in development mode
npm run dev

# Run tests
npm test

# Run tests in watch mode
npm run test:watch

# Type checking
npm run typecheck

# Build
npm run build

环境变量

变量描述默认值
端口HTTP服务器端口3000
主机HTTP服务器主机127.0.0.1
FETCH_TIMEOUTURL获取超时(毫秒)10000

响应格式

所有工具都返回一个标准的响应信封:

{
  ok: boolean;           // Success status
  data: T;               // Response data
  meta: {
    source?: string;     // Data source (URL for fingerprint)
    retrieved_at: string; // ISO-8601 timestamp
    pagination: {
      next_cursor: string | null;
    };
    warnings: string[];   // Any warnings or errors
  };
}

许可证

麻省理工学院

目录标签

目录标签

TypeScript云端部署Docker技术栈检测本地部署网站分析框架识别轻量级工具MCP服务器

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP