Claude Code
Add web scraping and search to Claude Code with AnyCrawl MCP
Add web scraping and search capabilities to Claude Code with AnyCrawl MCP.
Quick Setup
1. Get Your API Key
Sign up at anycrawl.dev and copy your API key from the dashboard.
2. Add AnyCrawl MCP Server
Run the following command in your terminal:
claude mcp add anycrawl -e ANYCRAWL_API_KEY=your-api-key -- npx -y anycrawl-mcpReplace your-api-key with your actual AnyCrawl API key.
Done! You can now search and scrape the web from Claude Code.
Quick Demo
Try these in Claude Code:
Search the web:
Search for the latest Next.js 15 featuresScrape a page:
Scrape anycrawl.dev and tell me what it doesGet documentation:
Find and scrape the Stripe API docs for payment intentsCrawl a website:
Crawl the blog section of example.com and summarize the articlesClaude will automatically use AnyCrawl's search, scrape, and crawl tools to get the information.
Available Tools
Once configured, Claude Code will have access to:
- anycrawl_scrape - Scrape a single URL and extract content
- anycrawl_crawl - Crawl multiple pages from a website
- anycrawl_search - Search the web and optionally scrape results
- anycrawl_crawl_status - Check crawl job status
- anycrawl_crawl_results - Get results from a crawl job
- anycrawl_cancel_crawl - Cancel a running crawl job
Verify Installation
To verify the MCP server is configured correctly:
claude mcp listYou should see anycrawl in the list of configured MCP servers.
Troubleshooting
Server not responding
- Check that your API key is valid
- Ensure you have Node.js 18+ installed
- Try removing and re-adding the server:
claude mcp remove anycrawl
claude mcp add anycrawl -e ANYCRAWL_API_KEY=your-api-key -- npx -y anycrawl-mcpPermission errors
Make sure npx has permission to execute. You may need to run:
npm install -g anycrawl-mcpThen configure with the global package:
claude mcp add anycrawl -e ANYCRAWL_API_KEY=your-api-key -- anycrawl-mcpNext Steps
- Learn more about scraping options
- Explore crawling capabilities
- Check out search features
- See the full MCP Server documentation