Steel MCP Server

Steel MCP Server

镜像的

Steel MCP 服务器

Steel MCP 服务器让 Claude 等大型语言模型能够浏览和操作网页。您可以让 Claude 帮助您:

  • 搜索食谱并保存配料清单
  • 跟踪包裹配送状态
  • 比较产品价格
  • 填写在线表单

前提条件

安装和配置

1. 克隆并构建项目

git clone https://github.com/steel-dev/steel-mcp-server.git
cd steel-mcp-server
npm install
npm run build

2. 配置 Claude Desktop

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json

Steel Cloud 模式

{
  "mcpServers": {
    "steel-puppeteer": {
      "command": "node",
      "args": ["path/to/steel-voyager/dist/index.js"],
      "env": {
        "STEEL_LOCAL": "false",
        "STEEL_API_KEY": "YOUR_STEEL_API_KEY_HERE",
        "GLOBAL_WAIT_SECONDS": "1"
      }
    }
  }
}

本地/自托管模式

{
  "mcpServers": {
    "steel-puppeteer": {
      "command": "node",
      "args": ["path/to/steel-voyager/dist/index.js"],
      "env": {
        "STEEL_LOCAL": "true",
        "STEEL_BASE_URL": "http://localhost:3000",
        "GLOBAL_WAIT_SECONDS": "1"
      }
    }
  }
}

3. 启动 Claude Desktop

Claude 将自动启动 MCP 服务器并连接到 Steel。

主要工具

工具描述参数
navigate导航到 URLurl:目标网址
search执行 Google 搜索query:搜索关键词
click点击带标签的元素label:元素标签号
type在输入框中输入文本label:输入框标签号
text:要输入的文本
replaceText:(可选)是否替换现有文本
scroll_down向下滚动页面pixels:(可选)滚动像素数
scroll_up向上滚动页面pixels:(可选)滚动像素数
go_back返回上一页
wait等待加载seconds:等待秒数(0-10)
save_unmarked_screenshot保存不带标记的截图resourceName:(可选)截图名称

交互元素

页面上的每个交互元素(按钮、链接、输入框)都会显示带有唯一编号的标签。使用这些编号来指定要点击或输入文本的元素。

资源

保存的截图可通过资源 URI 访问:

screenshot://RESOURCE_NAME

更多信息

详细文档请参阅 MCP 设置文档