Cursor IDE Integration
Enable AI-powered web scraping in Cursor IDE with CrawlForge MCP. The setup wizard auto-configures Cursor, or add the server to ~/.cursor/mcp.json yourself.
Prerequisites
npm install -g crawlforge-mcp-servernpx crawlforge-setup to configure your API key automatically.AOption A: Auto-configure with the wizard
The setup wizard detects Cursor and writes ~/.cursor/mcp.json for you
Run the wizard—if Cursor is installed it adds the CrawlForge server automatically:
npx crawlforge-setupRestart Cursor afterwards to load the server.
BOption B: Edit ~/.cursor/mcp.json
Add the server to Cursor's MCP config file yourself
Create or edit ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"crawlforge": {
"type": "stdio",
"command": "crawlforge-mcp"
}
}
}crawlforge-mcp requires the global install from Step 1. With no global install, use "command": "npx" and "args": ["-y", "crawlforge-mcp-server"] instead.
~/.cursor/mcp.json applies to every project, while a project-level .cursor/mcp.json scopes the server to that repo.Setup Wizard
Run the setup wizard to configure your API key:
npx crawlforge-setupManual Setup
Or set the environment variable manually:
export CRAWLFORGE_API_KEY="cf_live_your_api_key_here"Add this to your shell profile (~/.bashrc, ~/.zshrc, etc.)
- Restart Cursor IDE — Close and reopen Cursor to load the MCP configuration
- Open AI Chat — Press
Cmd/Ctrl + Lto open the AI chat - Test a Command — Try one of the example prompts below
Example Prompts
"Search for the latest AI news"
"Extract all links from example.com"
"Crawl the documentation site and summarize it"
"Extract product prices from this e-commerce site"
Available Tools
After setup, Cursor will have access to all 23 CrawlForge MCP tools:
| Tool | Description | Credits |
|---|---|---|
| fetch_url | Fetch HTML from URLs | 1 credits |
| extract_text | Extract clean text | 1 credits |
| extract_links | Extract all links | 1 credits |
| extract_metadata | Get page metadata | 1 credits |
| scrape_structured | CSS selector extraction | 2 credits |
| batch_scrape | Parallel batch scraping | 1/URL |
| deep_research | AI-powered research | 10 credits |
| search_web | Web search integration | 5 credits |
See the full API reference for all 23 tools and their parameters.
Troubleshooting
MCP Server Not Loading?
- Check
~/.cursor/mcp.jsonis valid JSON - Ensure Node.js 18+ is installed:
node --version - Verify the CLI is installed:
crawlforge --version - Restart Cursor IDE completely
Authentication Errors?
- Run
npx crawlforge-setupto reconfigure - Check API key starts with
cf_ - Verify environment variable is set in your shell
- Generate a new API key from the dashboard
Tools Not Appearing in Chat?
- Check Cursor's MCP plugin is enabled in settings
- Try using the global settings instead of .cursorrules
- Clear Cursor's cache and restart
- Check Cursor's console for error messages