Token导航 LogoToken导航TokenDH.com
Axon MCP logo
浏览器工具未说明官方级别未说明来源级核验

Axon MCP

MCP Server

一个位于混乱网页和干净LLM上下文窗口之间的高通滤波器,将HTML转换为语义Markdown,显著减少令牌使用并消除选择器幻觉。

工具数

4

提示词数

0

GitHub Stars

3

资源数

0
TypeScriptClaude浏览器自动化Claude DesktopClaude

安装说明

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

作者 / 组织

krishankb-de

提供方

krishankb-de

最后核验

2026/5/17 20:20

快速接入

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

详细介绍

语义DOM过滤器MCP服务器

A. 高通滤波器 它位于混乱的网页和干净的LLM上下文窗口之间。将~100KB的HTML转换为~2KB的带整数ID的语义Markdown,消除了选择器幻觉,大大减少了令牌的使用。

建筑

User Prompt → LLM Agent → Semantic MCP Server
                               ↓
                    ┌──────────────────────┐
                    │  Playwright (Chromium)│
                    │         ↓            │
                    │  Accessibility Tree   │
                    │         ↓            │
                    │  Semantic Processor   │
                    │  ├─ Visibility Filter │
                    │  ├─ Struct. Flatten   │
                    │  └─ Intent Pruning    │
                    │         ↓            │
                    │  Markdown Synthesizer │
                    └──────────────────────┘
                               ↓
              Clean Semantic Map → LLM Agent
                               ↓
              Action (click id=7) → Semantic Diff

工具

get_semantic_view

导航到URL并获取经过筛选的语义图。

参数类型说明
urlstring要导航到的URL
task_intentstring你想做什么(引导过滤)

意图引导过滤:

  • "read content" / "find pricing" → 修剪导航、页脚
  • "fill form" / "login" → 专注于输入、按钮
  • "find X" / "navigate" → 保持导航,修剪长文本

perform_action

执行一个操作,只返回更改的内容(语义差异)。

参数类型说明
actionenumclick, type, select, hover, scroll, wait, press_key, go_back, go_forward, navigate
id号码?目标元素的语义ID
value弦?要键入的文本、要选择的选项、滚动方向、要按的键
url弦?的URL navigate 行动

get_current_state

无需导航即可重新提取语义图。可用于在多个操作后刷新。

参数类型说明
task_intent弦?可选择更改意图过滤器

get_screenshot

捕获当前视口的PNG屏幕截图。

参数类型说明
full_page布尔值?捕获完整的可滚动页面

输出格式

# Example Page
**URL:** https://example.com
**Task:** find the pricing table
**Stats:** 23 semantic nodes (filtered from 847 raw nodes)

## Page Structure
- **main**: "Main Content" (312 nodes)
- **navigation**: "Primary Nav" (45 nodes)

## Semantic Map

[Heading(1): "Pricing Plans", id=1]
[Text: "Choose the plan that works for you"]
[Button: "Monthly", id=3, selected]
[Button: "Annual", id=4]
[Heading(2): "Starter", id=5]
[Text: "$9/month"]
[Button: "Get Started", id=7]
[Heading(2): "Pro", id=8]
[Text: "$29/month"]
[Button: "Get Started", id=10]

语义差异(动作后)

而不是重新发送整个页面:

**Action:** click on id=3
**Result:** Changes detected

## Changes
Modified:
  [Button, id=3]: state.pressed: "unset" → "true"
Added: [Text: "Billed monthly"]
Removed: [Text: "Billed annually"]

设置

npm install
npm run build

使用Claude Desktop

添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "semantic-dom": {
      "command": "node",
      "args": ["path/to/browser_mcp/dist/index.js"]
    }
  }
}

使用VS代码(复制品)

添加到您的 .vscode/mcp.json:

{
  "servers": {
    "semantic-dom": {
      "type": "stdio",
      "command": "node",
      "args": ["${workspaceFolder}/dist/index.js"]
    }
  }
}

为什么会赢

度量原始HTML此MCP
有效负载~100KB~2KB
代币成本~25K代币~500代币
选择器精度幻觉CSS整数ID
行动后更新完全重新发送仅限差异
意图意识按任务修剪

目录标签

目录标签

TypeScriptClaude浏览器自动化语义处理本地部署HTML过滤LLM优化网页自动化令牌节省

支持客户端

Claude DesktopClaude

接入字段

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

未说明

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

session

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

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

0

权限和风险

未说明session部署方式未说明

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

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP