Perform web searches and extract cleaned content via integration with Apify's RAG Web Browser Actor.
Created byApr 22, 2025
Model Context Protocol (MCP) Server for the RAG Web Browser Actor
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 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.
The RAG Web Browser Actor allows an AI assistant to:
Perform web search, scrape the top N URLs from the results, and return their cleaned content as Markdown
Fetch a single URL and return its content as Markdown
Components
Tools
search: Query Google Search, scrape the top N URLs from the results, and returns their cleaned content as Markdown. Arguments:
What is the Model Context Protocol?
The Model Context Protocol (MCP) is a framework that enables AI applications, such as Claude Desktop, to connect seamlessly with external tools and data sources.
For more details, visit the Model Context Protocol website or read the blog post What is MCP and why does it matter?.
How does the MCP Server integrate with AI Agents?
The MCP Server empowers AI Agents to perform web searches and browsing using the RAG Web Browser Actor.
For a comprehensive understanding of AI Agents, check out our blog post: What are AI Agents? and explore Apify's Agents.
Interested in building and monetizing your own AI agent on Apify? Check out our step-by-step guide for creating, publishing, and monetizing AI agents on the Apify platform.
Related MCP servers and clients by Apify
This server operates over standard input/output (stdio), providing a straightforward connection to AI Agents. Apify offers several other MCP-related tools:
Server Options
** This MCP Server** A local stdio-based server for direct integration with Claude Desktop
** RAG Web Browser Actor via SSE** Access the RAG Web Browser directly via Server-Sent Events without running a local server
To test the server locally, you can use example_client_stdio.ts:
The script will start the MCP server, fetch available tools, and then call the search tool with a query.
Direct API Call
To test calling the RAG Web Browser Actor directly:
Debugging
Since MCP servers operate over standard input/output (stdio), debugging can be challenging.
For the best debugging experience, use the MCP Inspector.
Build the mcp-server-rag-web-browser package:
You can launch the MCP Inspector via `npm` with this command:
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Model Context Protocol (MCP) Server for the RAG Web Browser Actor
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 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.
The RAG Web Browser Actor allows an AI assistant to:
Perform web search, scrape the top N URLs from the results, and return their cleaned content as Markdown
Fetch a single URL and return its content as Markdown
Components
Tools
search: Query Google Search, scrape the top N URLs from the results, and returns their cleaned content as Markdown. Arguments:
What is the Model Context Protocol?
The Model Context Protocol (MCP) is a framework that enables AI applications, such as Claude Desktop, to connect seamlessly with external tools and data sources.
For more details, visit the Model Context Protocol website or read the blog post What is MCP and why does it matter?.
How does the MCP Server integrate with AI Agents?
The MCP Server empowers AI Agents to perform web searches and browsing using the RAG Web Browser Actor.
For a comprehensive understanding of AI Agents, check out our blog post: What are AI Agents? and explore Apify's Agents.
Interested in building and monetizing your own AI agent on Apify? Check out our step-by-step guide for creating, publishing, and monetizing AI agents on the Apify platform.
Related MCP servers and clients by Apify
This server operates over standard input/output (stdio), providing a straightforward connection to AI Agents. Apify offers several other MCP-related tools:
Server Options
** This MCP Server** A local stdio-based server for direct integration with Claude Desktop
** RAG Web Browser Actor via SSE** Access the RAG Web Browser directly via Server-Sent Events without running a local server