crawler-mcp
Web-crawler MCP server that fetches web pages with static parsing or headless browser fallback, enabling Claude to fetch, extract links, crawl sites, and select content via CSS selectors.
README
crawler-mcp
A web-crawler MCP server, built in the same style as weather-mcp
(TypeScript + @modelcontextprotocol/sdk + Express + Zod).
It fetches pages with a fast axios + cheerio path and automatically falls back to a Playwright headless browser when a page needs JavaScript to render. Designed to be used as a Claude connector (local stdio or remote HTTP).
Tools
| Tool | What it does |
|---|---|
fetch_page |
Fetch one URL and return its content as Markdown, text, or raw HTML. |
extract_links |
List all hyperlinks on a page (absolute URLs, optional same-domain filter). |
crawl_site |
Recursively crawl from a start URL up to a max depth/page count. |
extract_by_selector |
Pull specific data via a CSS selector (text or an attribute). |
Each tool accepts a render option: auto (default — static first, browser if
needed), static (never use a browser), or browser (always render with
Playwright).
Setup
cd crawler-mcp
npm install
# Optional — only needed for JavaScript-heavy / SPA sites:
npx playwright install chromium
cp .env.example .env # then edit if you want
Run
# Local (stdio) — for Claude Desktop:
npm start
# Remote (HTTP) — for a custom/remote connector:
npm run start:http # serves http://localhost:3001/mcp
Use it as a Claude connector
Claude Desktop (local, stdio)
Add to your claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"crawler": {
"command": "npx",
"args": ["tsx", "D:\\MCP\\crawler-mcp\\server.ts"]
}
}
}
Restart Claude Desktop. The four crawler tools appear under the connectors menu.
Remote HTTP connector (claude.ai / Desktop "Add custom connector")
- Start the server in HTTP mode and expose it over HTTPS (e.g. behind a reverse
proxy or a tunnel such as
cloudflared/ngrok):npm run start:http - In Claude → Settings → Connectors → Add custom connector, enter the URL:
https://your-host/mcp
Remote connectors on claude.ai generally require a public HTTPS URL.
http://localhost:3001/mcpworks for local testing tools but not for the hosted claude.ai web app.
Configuration (.env)
| Variable | Default | Purpose |
|---|---|---|
MCP_TRANSPORT |
stdio |
stdio or http. |
MCP_HTTP_PORT |
3001 |
Port for HTTP mode. |
CRAWLER_USER_AGENT |
crawler-mcp/1.0 … |
User-Agent for all requests. |
CRAWLER_TIMEOUT_MS |
15000 |
Per-request timeout. |
CRAWLER_MAX_CHARS |
20000 |
Default cap on returned page content. |
Notes
- Fetched pages are cached in memory for 5 minutes to avoid refetching during a crawl.
crawl_siteis bounded (max_depth ≤ 3,max_pages ≤ 50) and adds a politeness delay between requests.- Playwright is an optional dependency — if it isn't installed,
render: autostill works for static sites andrender: browserreturns a clear error. - This server does not currently parse
robots.txt; crawl responsibibly and only sites you are authorized to crawl.
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
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.