Hướng dẫn thiết lập MCP
Windsurf
Thêm thu thập web và tìm kiếm vào Windsurf với AnyCrawl MCP
Tìm kiếm web và Scrape MCP trong Windsurf
Thêm khả năng thu thập web và tìm kiếm vào Windsurf với AnyCrawl MCP.
Thiết lập nhanh
1. Lấy API key
Đăng ký tại anycrawl.dev và sao chép API key từ bảng điều khiển.
2. Thêm vào Windsurf
Thêm vào ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"anycrawl": {
"command": "npx",
"args": ["-y", "anycrawl-mcp"],
"env": {
"ANYCRAWL_API_KEY": "your-api-key"
}
}
}
}Thay your-api-key bằng API key AnyCrawl thực tế của bạn.
3. Khởi động lại Windsurf
Xong! Windsurf có thể tìm kiếm và thu thập web.
Demo nhanh
Thử trong Windsurf:
Tìm kiếm web:
Search for the latest Tailwind CSS featuresScrape một trang:
Scrape anycrawl.dev and explain what it doesLấy tài liệu:
Find and scrape the Supabase authentication documentationCrawl một website:
Crawl the docs section of nextjs.org and summarize the key conceptsAgent AI của Windsurf sẽ tự động dùng công cụ AnyCrawl.
Xử lý sự cố
Server không phản hồi
- Kiểm tra API key có hợp lệ không
- Đảm bảo đã cài Node.js 18+
- Khởi động lại Windsurf sau khi đổi cấu hình
Lỗi quyền
Đảm bảo npx có quyền thực thi. Có thể cần cài gói toàn cục:
npm install -g anycrawl-mcpSau đó cập nhật cấu hình để dùng gói toàn cục:
{
"mcpServers": {
"anycrawl": {
"command": "anycrawl-mcp",
"env": {
"ANYCRAWL_API_KEY": "your-api-key"
}
}
}
}Bước tiếp theo
- Tìm hiểu thêm tùy chọn scrape
- Khám phá khả năng crawl
- Xem tính năng tìm kiếm
- Xem tài liệu MCP Server đầy đủ