Fetcher MCP is a specialized server that uses Playwright headless browser to fetch web content, extract the main content from pages, and return it in either HTML or Markdown format. It's particularly useful for handling dynamic JavaScript-rendered websites and can intelligently filter out non-essential elements like ads and navigation.
You can run Fetcher MCP directly with npx:
npx -y fetcher-mcp
For first-time setup, install the required browser:
npx playwright install chromium
To start both Streamable HTTP and SSE endpoint services:
npx -y fetcher-mcp --log --transport=http --host=0.0.0.0 --port=3000
This provides two endpoints:
/mcp
- Streamable HTTP endpoint (modern MCP protocol)/sse
- SSE endpoint (legacy MCP protocol)To show the browser window for debugging:
npx -y fetcher-mcp --debug
Run with Docker:
docker run -p 3000:3000 ghcr.io/jae-jae/fetcher-mcp:latest
Using Docker Compose:
Create a docker-compose.yml
file:
version: "3.8"
services:
fetcher-mcp:
image: ghcr.io/jae-jae/fetcher-mcp:latest
container_name: fetcher-mcp
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
volumes:
- /tmp:/tmp
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
Then run:
docker-compose up -d
Configure Fetcher MCP in Claude Desktop by editing the configuration file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"fetcher": {
"command": "npx",
"args": ["-y", "fetcher-mcp"]
}
}
}
Use the fetch_url
tool with these parameters:
url
: The URL to fetch (required)timeout
: Page loading timeout in milliseconds (default: 30000)waitUntil
: When navigation is considered complete (options: 'load', 'domcontentloaded', 'networkidle', 'commit', default: 'load')extractContent
: Whether to extract main content (default: true)maxLength
: Maximum content length in characters (default: no limit)returnHtml
: Return HTML instead of Markdown (default: false)waitForNavigation
: Wait for additional navigation after initial load (default: false)navigationTimeout
: Time to wait for additional navigation (default: 10000)disableMedia
: Disable media resources (default: true)debug
: Enable debug mode (default: false)Use the fetch_urls
tool to retrieve content from multiple URLs in parallel:
urls
: Array of URLs to fetch (required)fetch_url
Include in your prompt:
Please wait for the page to fully load
Include in your prompt:
Please set the page loading timeout to 60 seconds
For preserving original HTML structure:
Please preserve the original HTML content
For fetching complete page content:
Please fetch the complete webpage content instead of just the main content
For HTML format instead of Markdown:
Please return the content in HTML format
To enable debug mode for manual login:
Please run in debug mode so I can manually log in to the website
When debug mode is enabled, you can:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "fetcher" '{"command":"npx","args":["-y","fetcher-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"fetcher": {
"command": "npx",
"args": [
"-y",
"fetcher-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"fetcher": {
"command": "npx",
"args": [
"-y",
"fetcher-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect