Discover how the MCP Server enables AI web browsing, searching, and content scraping for enhanced LLM applications
The Model Context Protocol (MCP) Server, specifically designed for the RAG Web Browser Actor, serves as a bridge between advanced artificial intelligence applications (AI Apps) and external data sources. By implementing this protocol, AI Apps like Claude Desktop can seamlessly interact with web resources to perform tasks such as performing web searches and scraping relevant content. This integration enhances the functionalities of AI Apps by providing them with real-time access to vast web-based information.
The RAG Web Browser Actor MCP Server offers a suite of core features that are integral to Model Context Protocol:
Web Search Functionality: Users can utilize this server to perform structured web searches and scrape content from the top N URLs. The tool supports multiple query capabilities, allowing users to input both search terms and single URLs.
Content Scraping & Markdown Return: By leveraging scraping technologies, this MCP server fetches page contents and returns them in a clean, formatted Markdown format. This process ensures that AI applications receive structured data in a readable form.
MCP Client Compatibility: The protocol is designed to be compatible with multiple MCP clients such as Claude Desktop, Continue, Cursor, etc., ensuring broad accessibility for various use cases within the AI domain.
Security & Controlled Interactions: Integration through MCP ensures secure and controlled interactions between AI applications and external data sources, maintaining the integrity of both the application and its environment.
Prompt-Driven Operations: Users can define prompts to trigger specific operations like web searches or URL fetches, making it highly customizable for a wide variety of use cases.
The RAG Web Browser Actor MCP Server operates on a structured architecture that adheres closely to the Model Context Protocol standards. Its primary components include:
Tools: Specific functionalities such as search
are defined with clear arguments and return types.
Prompts: These define how queries are posed to the server, enabling flexible interactions.
**Search Tool:**
Arguments:
- Query (string, required): The search term or URL.
- Max Results (number, optional): Maximum number of results to scrape (default: 1).
**Search Prompt:**
Arguments:
- Query (string, required): The search term or URL.
- Max Results (number, optional): Maximum number of results to scrape (default: 1).
To set up the RAG Web Browser Actor MCP Server on your local machine, follow these steps:
Ensure you have:
APIFY_API_TOKEN
environment variable).Locate Configuration File
~/Library/Application\ Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Modify Configuration JSON
"mcpServers": {
"mcp-server-rag-web-browser": {
"command": "npx",
"args": [
"/path/to/mcp-server-rag-web-browser/build/index.js"
],
"env": {
"APIFY-API-TOKEN": "your-apify-api-token"
}
}
}
Restart Claude Desktop
Verify Connection
To facilitate local development, run the following commands:
"mcpServers": {
"mcp-server-rag-web-browser": {
"command": "/path/to/mcp-server-rag-web-browser/build/index.js",
},
"env": {
"APIFY-API-TOKEN": "your-apify-api-token"
}
}
Real-time Data Retrieval: An AI-based news aggregation tool can use this MCP server to stay updated with the latest trends and articles across multiple websites by setting up scheduled searches.
Research Paper Analysis: A research assistant bot can leverage this protocol to automatically fetch recent academic papers on a specific topic, scrape their content, and analyze them using natural language processing techniques.
MCP is designed for extensive compatibility with various AI clients:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
The RAG Web Browser Actor MCP Server demonstrates remarkable performance with minimal latency and no downtime. Here’s its compatibility status:
For a more thorough testing environment, use the MCP Inspector to debug and monitor server performance. Here’s how to initiate it:
Build the Package
npm run build
Launch MCP Inspector
npx @modelcontextprotocol/inspector node ~/apify/mcp-server-rag-web-browser/build/index.js APIFY_API_TOKEN=your-apify-api-token
Upon launching, the Inspector will display a URL through which you can monitor and debug the server interaction.
To test the MCP server locally using an example client:
node build/example_client.js
This script starts the server, retrieves available tools, and triggers the search
tool with specified arguments.
"mcpServers": {
"mcp-server-rag-web-browser": {
"command": "npx",
"args": [
"/path/to/mcp-server-rag-web-browser/build/index.js"
],
"env": {
"APIFY-API-TOKEN": "your-apify-api-token"
}
}
}
Contributions are warmly welcomed! To contribute, please fork this repository, make your changes, and submit a pull request. Ensure all new features or bug fixes adhere to existing coding standards.
For more information on the Model Context Protocol (MCP) and its ecosystem, visit the official Model Context Protocol GitHub page, where you can explore documentation, tutorials, and additional resources dedicated to building integrated AI applications.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods