MCP server for web content fetching, summarizing, comparing, and extracting information
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
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y web-fetch-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-kylinmountain-web-fetch-mcp": {
"command": "npx",
"args": [
"-y",
"web-fetch-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceio.github.KylinMountain/web-fetch-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.