Gives Claude three tools for working with web content through Google's Gemini API. You can summarize pages, compare content across multiple URLs, or extract specific information using natural language prompts. It handles up to 20 URLs per request, converts HTML to clean text, and automatically redirects GitHub blob URLs to raw content. The server blocks private IPs to prevent SSRF attacks and lets you configure timeouts and content limits. You'll need a Gemini API key to run it, and it uses the gemini-2.5-flash model by default. Reach for this when you want Claude to process web content but want the heavy lifting done by Gemini's summarization capabilities rather than feeding raw HTML into context.
A Model Context Protocol (MCP) server that provides web content fetching, summarization, comparison, and extraction capabilities.
summarize_web, compare_web, and extract_web for versatile web content processing./blob/ URLs to their raw content equivalent.Install the server globally from npm:
npm install -g web-fetch-mcp
To use this server with an AI agent that supports the Model Context Protocol, add the following configuration to your agent's settings. Once configured, your agent can call the tools provided by this service.
Important: You must provide a valid Gemini API key for the server to work.
If you installed the package globally:
{
"mcpServers": {
"web-fetch-mcp": {
"type": "stdio",
"command": "web-fetch-mcp",
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
}
}
}
}
Note: If you encounter network access issues (e.g., unable to connect to Gemini), you can configure the environment variables HTTPS_PROXY and HTTP_PROXY. By default, the gemini-2.5-flash model is used, consistent with Gemini-CLI.
If you are running from a local clone:
{
"mcpServers": {
"web-fetch-mcp": {
"type": "stdio",
"command": "node",
"args": ["/path/to/web-fetch-mcp/dist/index.js"],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
}
}
}
}
The service provides the following tools:
summarize_web: Summarizes content from one or more URLs.compare_web: Compares content across multiple URLs.extract_web: Extracts specific information from web content using natural language prompts.To use a tool, your agent should make a callTool request specifying the tool name and a prompt:
{
"tool": "summarize_web",
"arguments": {
"prompt": "Summarize the main points from https://example.com/article"
}
}
If you wish to contribute to the development of this server:
git clone https://github.com/your-username/web-fetch-mcp.git
cd web-fetch-mcp
npm install
npm run dev
npm run build
GEMINI_API_KEY*secretYour Gemini API key for the service
HTTP_PROXYYour proxy for the gemini api service
HTTPS_PROXYYour proxy for the gemini api service
com.mcparmory/google-search
io.github.pipeworx-io/brave-search
marcopesani/mcp-server-serper
brave/brave-search-mcp-server
com.mcparmory/google-search-console
acamolese/google-search-console-mcp