Fetch MCP Server
MCP Server to fetch information from the internet based on URL
MaartenSmeets
README
Fetch MCP Server
A Model Context Protocol server that provides web content fetching capabilities using browser automation, OCR, and multiple extraction methods. This server enables LLMs to retrieve and process content from web pages, even those that require JavaScript rendering or use techniques that prevent simple scraping.
Available Tools
fetch
- Fetches a URL from the internet using browser automation and multi-method extraction (including OCR).url
(string, required): URL to fetchraw
(boolean, optional): Get the actual HTML content if the requested page, without simplification (default: false)
The server uses multiple methods to extract content:
- Browser automation with undetected-chromedriver
- OCR using pytesseract with layout detection
- HTML extraction using requests/BeautifulSoup
- Document parsing (PDF, DOCX, PPTX)
- Original markdown conversion method
The server uses a sophisticated scoring system to select the best result, considering:
-
Base content score (up to 50 points)
- Points awarded based on content length (1 point per 100 characters, max 50)
- Penalizes extremely short content (<100 characters)
-
Structure bonus (up to 20 points)
- Awards points for well-structured content with paragraphs
- More paragraphs indicate better content organization
-
Quality penalties
- Detects and penalizes error messages
- Reduces score for content containing error indicators
- Validates content structure and readability
The scoring system ensures the most reliable and high-quality content is selected, regardless of the extraction method used. Debug logging is available to track scoring decisions.
Prompts
- fetch
- Fetch a URL and extract its contents as markdown using browser automation
- Arguments:
url
(string, required): URL to fetch
Installation
Using Docker
To install and run mcp-server-fetch
using Docker, follow these steps:
-
Build the Docker image:
docker build -t mcp-server-fetch .
-
Run the Docker container:
docker run --rm -i mcp-server-fetch
Configuration
Configure Roo Code or Claude App
Add to your Claude settings:
{
"mcpServers": {
"fetch": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"mcp-server-fetch"
],
"disabled": false,
"alwaysAllow": []
}
}
}
Customization - User-agent
By default, depending on if the request came from the model (via a tool), or was user initiated (via a prompt), the server will use either the user-agent
ModelContextProtocol/1.0 (Autonomous; +https://github.com/modelcontextprotocol/servers)
or
ModelContextProtocol/1.0 (User-Specified; +https://github.com/modelcontextprotocol/servers)
This can be customized by adding the argument --user-agent=YourUserAgent
to the args
list in the configuration.
Browser Automation and OCR
The server now includes advanced content extraction capabilities:
- Automated handling of cookie consent banners
- Full-page screenshot capture
- OCR with layout detection using pytesseract
- Multiple extraction methods with automatic selection of best results
Contributing
We encourage contributions to help expand and improve mcp-server-fetch. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.
For examples of other MCP servers and implementation patterns, see: https://github.com/modelcontextprotocol/servers
Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-fetch even more powerful and useful.
License
mcp-server-fetch is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.