web-scraping-agent-with-n8n-and-mcp-server
Web Scraping Agent with N8N and MCP Server
Documentation
Web-Scraping-Agent-with-N8N-and-MCP-Server
Web Scraping Agent with N8N and MCP Server
π€ AI Scraping Agent in n8n with MCP Server
This project demonstrates how to create a powerful, AI-powered web scraping agent in n8n using MCP (Multi-Component Protocol) and Firecrawl. The agent can receive a chat message, fetch relevant data from the internet via scraping, and respond intelligently using OpenAI or Claude models.
π Project Overview
This is the most beginner-friendly and hands-on tutorial for building an autonomous Scraping Agent with tools and memory capabilities using:
- π§ OpenAI Chat Model
- π§° MCP Tools
- ποΈ Simple Memory
- π Firecrawl for web scraping
π§ Agent Workflow (Chat-triggered)
The core agent is triggered when a chat message is received. It includes:
- Chat Model: Uses OpenAI (via OpenRouter)
- Memory: Context is maintained using Simple Memory
- Tool: Connects to MCP Client which communicates with the scraping server
π§ Agent Setup

π₯οΈ MCP Server Workflow (Scraping Handler)
This is the actual scraping backend that receives the agentβs request, performs the scrape using Firecrawl, and sends structured results back.
π MCP Server Setup

π§© Components Used
| Component | Purpose |
|---|---|
| `Agent (Tools Agent)` | Orchestrates AI, Memory, and Scraping |
| `OpenAI Chat Model` | Understands and responds to user queries |
| `Simple Memory` | Stores previous messages / memory context |
| `MCP Client` | Forwards tasks to the MCP server |
| `MCP Server Trigger` | Starts the scraping backend |
| `Scrape` Tool | Uses Firecrawl to extract webpage data |
π What You'll Learn
- How to create and coordinate multiple AI agents in n8n
- Connecting OpenAI models with real-time tools
- Setting up an MCP Server inside n8n
- Ethical scraping using Firecrawl
- Using the agent-as-a-tool pattern for modular AI
βοΈ Technologies Used
- n8n
- OpenRouter
- Supabase (for optional DB storage)
- QuickChart.io (for optional visualization)
- Firecrawl for scraping
- [Claude / GPT-4] (for LLM reasoning)
- MCP Architecture
Frequently asked questions
What is web-scraping-agent-with-n8n-and-mcp-server?
web-scraping-agent-with-n8n-and-mcp-server is Web Scraping Agent with N8N and MCP Server
How do I install web-scraping-agent-with-n8n-and-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is web-scraping-agent-with-n8n-and-mcp-server open source?
Yes β it is hosted on GitHub at https://github.com/NarviAdil/Web-Scraping-Agent-with-N8N-and-MCP-Server.
Related MCP tools
Playwright Model Context Protocol Server - Tool to automate Browsers and APIs in Claude Desktop, Cline, Cursor IDE and More π
MCP server for fetch web page content using Playwright headless browser. TypeScript-based implementation. Trusted by 800+ developers.
Browse the web, directly from Cursor etc. Built for the Model Context Protocol to enhance AI capabilities. Python-based implementation.
A Playwright-based Node.js tool that bypasses search engine anti-scraping mechanisms to execute Google searches. Built for the Model Context Protocol to...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP