UseScraper MCP 服务器

UseScraper MCP 服务器

基于 TypeScript 的 MCP 服务器,通过 UseScraper API 提供网页抓取功能。

快速入门

  1. 克隆仓库: git clone https://github.com/MCP-Mirror/tanevanwifferen_usescraper-mcp-server.git cd tanevanwifferen_usescraper-mcp-server

  2. 安装依赖: npm install

  3. 构建服务器: npm run build

  4. 配置 Claude Desktop:

    • MacOS: 编辑 ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: 编辑 %APPDATA%/Claude/claude_desktop_config.json 添加以下内容: { "mcpServers": { "usescraper-server": { "command": "node", "args": ["/path/to/usescraper-server/build/index.js"], "env": { "USESCRAPER_API_KEY": "your-api-key-here" } } } }
  5. 使用 scrape 工具: { "name": "scrape", "arguments": { "url": "https://example.com", "format": "markdown" } }

  6. 开发调试(可选):运行 npm run watchnpm run inspector