yet-another-web-scraper-mcp
An MCP server that enables LLMs to drive a Chromium browser for web scraping, collecting structured data, and exporting to CSV.
README
Yet another web scraper MCP
A minimal MCP server that lets an LLM drive a real Chromium browser to scrape websites, collect structured rows, and export them to CSV.
Setup
uv sync
uv run playwright install chromium
Running
uv run main.py
This starts the MCP server over stdio. Point your MCP client (e.g. Claude
Desktop / Claude Code) at uv run --directory <this folder> main.py.
Installing via npm (recommended for end users)
No need to clone this repo. The npm package still runs the Python implementation under the hood via uv (which it will tell you how to install if it's missing), but gives a familiar one-line install/run command that works the same on Windows, macOS, and Linux:
npx -y yet-another-web-scraper-mcp
Add it to your MCP client config, e.g. Claude Desktop's
claude_desktop_config.json:
{
"mcpServers": {
"web-scraper": {
"command": "npx",
"args": ["-y", "yet-another-web-scraper-mcp"]
}
}
}
On first run, npm install triggers a postinstall step that runs
uv sync and downloads the Chromium browser for Playwright. This can
take a minute the very first time.
Requires uv and Python 3.13+ to be resolvable on the machine; npm alone cannot provide the Python runtime.
Adding it to CLI coding agents
Claude Code
claude mcp add web-scraper -- npx -y yet-another-web-scraper-mcp
Codex CLI: add to ~/.codex/config.toml:
[mcp_servers.web-scraper]
command = "npx"
args = ["-y", "yet-another-web-scraper-mcp"]
Gemini CLI: add to ~/.gemini/settings.json (or a project's
.gemini/settings.json):
{
"mcpServers": {
"web-scraper": {
"command": "npx",
"args": ["-y", "yet-another-web-scraper-mcp"]
}
}
}
Cursor: add to .cursor/mcp.json (project-level) or
~/.cursor/mcp.json (global):
{
"mcpServers": {
"web-scraper": {
"command": "npx",
"args": ["-y", "yet-another-web-scraper-mcp"]
}
}
}
Windsurf: same mcpServers JSON shape as Cursor above, in
Windsurf's MCP config panel or ~/.codeium/windsurf/mcp_config.json.
Any other MCP-compatible client that takes a raw command/args pair
(stdio transport) can point at the same npx -y yet-another-web-scraper-mcp command;
the JSON snippets above are all equivalent to that one line.
Tools
open_browser(headless=True)/close_browser(): start/stop the browser.navigate(url): go to a URL, returns cleaned page content.click(selector): click a CSS-selected element (e.g. a "next page" button), returns the resulting cleaned content.get_page_content(max_length): re-read the current page's HTML, with<script>and<svg>tags stripped out since they're noise for an LLM.get_page_links(): list{text, href}for links on the page.add_record(record): append one scraped row (dict of column -> value).get_records(): review everything collected so far.export_csv(filename): write the collected rows to a CSV via pandas.
Typical flow: open_browser -> navigate -> get_page_content /
get_page_links -> click to page through results -> add_record per item
-> export_csv when done -> close_browser.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.