Cover image
Try Now
2024-12-11

镜像://github.com/apify/mcp-server-rag-web-browser

3 years

Works with Finder

0

Github Watches

1

Github Forks

0

Github Stars

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.

🔄 What is model context protocol?

The Model Context Protocol (MCP) enables AI applications (and AI agents), such as Claude Desktop, to connect to external tools and data sources. MCP is an open protocol that enables secure, controlled interactions between AI applications, AI Agents, and local or remote resources.

🎯 What does this MCP server do?

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:
      • query (string, required): Search term or URL
      • max_results (number, optional): Maximum number of search results to scrape (default: 1)

Prompts

  • search: Search phrase or a URL at Google and return crawled web pages as text or Markdown
    • Arguments:
      • query (string, required): Search term or URL
      • max_results (number, optional): Maximum number of search results to scrape (default: 1)

Resources

The server does not provide any resources and prompts.

🛠️ Configuration

Prerequisites

  • MacOS or Windows
  • The latest version of Claude Desktop must be installed (or another MCP client)
  • Node.js (v18 or higher)
  • Apify API Token (APIFY_API_TOKEN)

Install

Claude Desktop

Configure Claude Desktop to recognize the MCP server.

  1. Open your Claude Desktop configuration and edit the following file:

    • On macOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
    • On Windows: %APPDATA%/Claude/claude_desktop_config.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"
        }
      }
    }
    
  2. Restart Claude Desktop

    • Fully quit Claude Desktop (ensure it’s not just minimized or closed).
    • Restart Claude Desktop.
    • Look for the 🔌 icon to confirm that the Exa server is connected.
  3. Examples

    You can ask Claude to perform web searches, such as:

    What is an MCP server and how can it be used?
    What is an LLM, and what are the recent news updates?
    Find and analyze recent research papers about LLMs.
    

👷🏼 Development

Local Development

If you're working on an unpublished server, you can access the local server via the following command:

"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"
    }
}

Local client

To test the server locally, you can use example_client:

node build/example_client.js

The script will start the MCP server, fetch available tools, and then call the search tool with a query.

Debugging

Call the RAG Web Browser Actor to test it:

APIFY_API_TOKEN=your-apify-api-token node build/example_call_web_browser.js

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:

npm run build

You can launch the MCP Inspector via npm with this command:

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 that you can access in your browser to begin debugging.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Andris Teikmanis
  • Latvian GPT assistant for developing GPT applications

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://cantaspinar.com
  • Summarizes videos and answers related questions.

  • Jan Meindl
  • Builds new GPTs

  • https://hashrateventures.xyz
  • Crafts custom instructions for new GPTs

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    5 (1)
    Avatar
    user_PmOukMLE
    2025-04-15

    I've been using mcp-shell-server by akaiserg, and it's fantastic! The server runs smoothly with excellent performance. The streamlined setup and intuitive interface make management a breeze. Highly recommend for anyone needing a reliable shell server. Check it out here: https://mcp.so/server/mcp-shell-server/akaiserg