jae-jae/fetch-mcp

使用 Playwright headless 浏览器获取网页内容的 MCP 服务器。

快速开始

可以直接使用 npx 运行:

npx -y github:jae-jae/fetch-mcp

调试模式

使用 --debug 选项运行,可以显示浏览器窗口进行调试:

npx -y github:jae-jae/fetch-mcp --debug

功能

配置 MCP

在 Claude Desktop 中配置此 MCP 服务器:

在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json

在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json

{
 "mcpServers": {
  "fetch": {
   "command": "npx",
   "args": ["-y", "github:jae-jae/fetch-mcp"]
  }
 }
}

开发

安装依赖

npm install

安装 Playwright 浏览器

安装 Playwright 所需的浏览器:

npm run install-browser

构建服务器

npm run build

调试

使用 MCP Inspector 进行调试:

npm run inspector

也可以启用可见浏览器模式进行调试:

node build/index.js --debug

关于

使用 Playwright headless 浏览器获取网页内容的 MCP 服务器。