by apify
Provides a fast, stdio‑based server that enables AI agents to perform web searches and fetch page content via the RAG Web Browser Actor.
Enables AI agents and large language models to interact with the web in real time. The server runs locally, communicates over standard input/output, and forwards search or fetch requests to Apify's RAG Web Browser Actor, returning cleaned content as Markdown (or other formats).
git clone https://github.com/apify/mcp-server-rag-web-browser.git
cd mcp-server-rag-web-browser
npm install
npm run build
claude_desktop_config.json:
"mcpServers": {
"rag-web-browser": {
"command": "npx",
"args": ["-y", "@apify/mcp-server-rag-web-browser"],
"env": { "APIFY_TOKEN": "your-apify-api-token" }
}
}
search tool – query Google, scrape top N results, and return cleaned content.Q: Which environments are supported? A: macOS, Windows, and any platform with Node.js v18+.
Q: Do I need an Apify account?
A: Yes, an Apify API token (APIFY_TOKEN) is required to run the RAG Web Browser Actor.
Q: Can I change the scraping method?
A: Yes, set scrapingTool to browser-playwright or raw-http when calling the search tool.
Q: How many results can I request?
A: Use the maxResults parameter; the default is 1.
Q: How do I debug the server? A: Use the Model Context Protocol Inspector:
export APIFY_TOKEN=your-token
npx @modelcontextprotocol/inspector npx -y @apify/mcp-server-rag-web-browser
Implementation of an MCP server for the RAG Web Browser Actor. This Actor serves as a web browser for large language models (LLMs) and RAG pipelines, similar to a web search in ChatGPT.
This MCP server is deprecated in favor of mcp.apify.com
For the same functionality and much more, please use one of these alternatives:
The easiest way to get the same web browsing capabilities is to use mcp.apify.com with default settings.
Benefits:
Quick Setup:
You can also call the RAG Web Browser Actor directly via its HTTP/SSE interface.
Benefits:
Docs: Actor Documentation
This server is specifically designed to provide fast responses to AI agents and LLMs, allowing them to interact with the web and extract information from web pages. It runs locally and communicates with the RAG Web Browser Actor in Standby mode, sending search queries and receiving extracted web content in response.
search
description: Query Google Search OR fetch a direct URL and return cleaned page contents.
arguments:
query (string, required): Search keywords or a full URL. Advanced Google operators supported.maxResults (number, optional, default: 1): Max organic results to fetch (ignored when query is a URL).scrapingTool (string, optional, default: raw-http): One of browser-playwright | raw-http.
raw-http: Fast (no JS execution) – good for static pages.browser-playwright: Handles JS-heavy sites – slower, more robust.outputFormats (array of strings, optional, default: [markdown]): One or more of text, markdown, html.requestTimeoutSecs (number, optional, default: 40, min 1 max 300): Total server-side AND client wait budget. A local abort is enforced.Before (Deprecated local server):
{
"mcpServers": {
"rag-web-browser": {
"command": "npx",
"args": ["@apify/mcp-server-rag-web-browser"],
"env": {
"APIFY_TOKEN": "your-apify-api-token"
}
}
}
}
After (Recommended Apify server):
{
"mcpServers": {
"apify": {
"command": "npx",
"args": ["@apify/actors-mcp-server"],
"env": {
"APIFY_TOKEN": "your-apify-api-token"
}
}
}
}
Or use the hosted endpoint: https://mcp.apify.com (when your client supports HTTP transport / remote MCP).
APIFY_TOKEN)Clone & install:
git clone https://github.com/apify/mcp-server-rag-web-browser.git
cd mcp-server-rag-web-browser
npm install
npm install
npm run build
Since MCP servers operate over standard input/output (stdio), debugging can be challenging. For the best debugging experience, use the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
export APIFY_TOKEN=your-apify-api-token
npx @modelcontextprotocol/inspector node dist/index.js
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
This repository is maintained for archival purposes only. Please use the recommended alternatives above for active development.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
by danny-avila
Provides a self‑hosted ChatGPT‑style interface supporting numerous AI models, agents, code interpreter, image generation, multimodal interactions, and secure multi‑user authentication.
by block
Automates engineering tasks on local machines, executing code, building projects, debugging, orchestrating workflows, and interacting with external APIs using any LLM.
by RooCodeInc
Provides an autonomous AI coding partner inside the editor that can understand natural language, manipulate files, run commands, browse the web, and be customized via modes and instructions.
by pydantic
A Python framework that enables seamless integration of Pydantic validation with large language models, providing type‑safe agent construction, dependency injection, and structured output handling.
by mcp-use
A Python SDK that simplifies interaction with MCP servers and enables developers to create custom agents with tool‑calling capabilities.
by lastmile-ai
Build effective agents using Model Context Protocol and simple, composable workflow patterns.
by Klavis-AI
Provides production‑ready MCP servers and a hosted service for integrating AI applications with over 50 third‑party services via standardized APIs, OAuth, and easy Docker or hosted deployment.
by nanbingxyz
A cross‑platform desktop AI assistant that connects to major LLM providers, supports a local knowledge base, and enables tool integration via MCP servers.
{
"mcpServers": {
"rag-web-browser": {
"command": "npx",
"args": [
"-y",
"@apify/mcp-server-rag-web-browser"
],
"env": {
"APIFY_TOKEN": "<YOUR_API_TOKEN>"
}
}
}
}claude mcp add rag-web-browser npx -y @apify/mcp-server-rag-web-browser