AG

assafelovic/gptr-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

379 stars 69 forks 质量 68 趋势 0MIT

MCP服务器,使LLM应用能够通过MCP协议进行深入研究

概览

虽然LLM应用可以通过MCP访问网页搜索工具,但标准搜索工具返回的原始结果需要手动筛选,且常包含无关源并浪费上下文窗口空间。 GPT Researcher 自主探索并验证大量来源,仅关注相关、可信且最新的信息。虽然比标准搜索稍慢(等待~30秒),但它能提供: - ✨ 更高质量的信息 - 📊 优化上下文使用- 🔎 全面结果 - 🧠 更好地推理LLMs https://github.com/user-attachments/assets/ef97eea5-a409-42b9-8f6d-b82ab16c52a8 2. 在~/Library/Application Support/Claude/claude_desktop_config.json: 有关详细的安装说明,请参见下方完整的Claude桌面集成部分。 - research_resource:通过研究获取与特定任务相关的网络资源。

概述(AI 翻译)

为什么是GPT研究员MCP?

虽然LLM应用可以通过MCP访问网页搜索工具,GPT研究者MCP则提供深入的研究结果。 标准搜索工具返回的原始结果需要手动筛选,通常包含无关来源并浪费上下文窗口空间。

GPT Researcher 自主探索并验证大量来源,仅关注相关、可信且最新的信息。虽然比标准搜索稍慢(等待~30秒),但它能提供:

  • ✨ 更高质量的信息
  • 📊 优化上下文使用
  • 🔎 综合成绩
  • 🧠 更好地理解大型语言模型(LLM)的推理

💻 Claude桌面演示

https://github.com/user-attachments/assets/ef97eea5-a409-42b9-8f6d-b82ab16c52a8

🚀 Claude桌面快速入门

想马上用它配合Claude Desktop吗? 这是最快的路径:

  1. 安装依赖:

  2. 在~/Library/Application Support/Claude/claude_desktop_config.json设置你的Claude桌面配置:

  3. 重启Claude Desktop并开始研究!🎉

有关详细的安装说明,请参见下方完整的Claude桌面集成部分。

资源

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Why GPT Researcher MCP?

While LLM apps can access web search tools with MCP, GPT Researcher MCP delivers deep research results. Standard search tools return raw results requiring manual filtering, often containing irrelevant sources and wasting context window space.

GPT Researcher autonomously explores and validates numerous sources, focusing only on relevant, trusted and up-to-date information. Though slightly slower than standard search (~30 seconds wait), it delivers:

  • ✨ Higher quality information
  • 📊 Optimized context usage
  • 🔎 Comprehensive results
  • 🧠 Better reasoning for LLMs

💻 Claude Desktop Demo

https://github.com/user-attachments/assets/ef97eea5-a409-42b9-8f6d-b82ab16c52a8

🚀 Quick Start with Claude Desktop

Want to use this with Claude Desktop right away? Here’s the fastest path:

  1. Install dependencies:

    git clone https://github.com/assafelovic/gptr-mcp.git
    pip install -r requirements.txt
    
  2. Set up your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json:

    {
      "mcpServers": {
        "gptr-mcp": {
          "command": "python",
          "args": ["/absolute/path/to/gpt-researcher/gptr-mcp/server.py"],
          "env": {
            "OPENAI_API_KEY": "your-openai-key-here",
            "TAVILY_API_KEY": "your-tavily-key-here"
          }
        }
      }
    }
    
  3. Restart Claude Desktop and start researching! 🎉

For detailed setup instructions, see the full Claude Desktop Integration section below.

Resources

  • research_resource: Get web resources related to a given task via research.

Primary Tools

  • deep_research: Performs deep web research on a topic, finding the most reliable and relevant information
  • quick_search: Performs a fast web search optimized for speed over quality, returning search results with snippets. Supports any GPTR supported web retriever such as Tavily, Bing, Google, etc… Learn more here
  • write_report: Generate a report based on research results
  • get_research_sources: Get the sources used in the research
  • get_research_context: Get the full context of the research

Prompts

在 GitHub 查看完整 README

安装

docker run -d \
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "gptr-mcp": { "command": "python", "args": ["/absolute/path/to/gpt-researcher/gptr-mcp/server.py"], "env": { "OPENAI_API_KEY": "your-openai-key-here", "TAVILY_API_KEY": "your-tavily-key-here" } } } }