Token导航 LogoToken导航

MCP Server · 搜索检索

Re Act MCP

ReActMCP Web Search 是一个集成到AI助手框架中的MCP服务器,提供基本和高级网络搜索功能,返回实时、Markdown格式的搜索结果。

stdio官方级别未说明来源级核验工具 0
搜索PythonClaude实时数据Claude Desktop

快速开始

作者 / 组织
mshojaei77
提供方
mshojaei77
运行时
Python

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

143

仓库热度

收录来源

3 个

MCP World

选型结论

Re Act MCP 属于搜索检索类 MCP Server,公开资料标注 0 个工具,通过stdio 本地进程接入,适配 Claude Desktop、Claude,有可以直接复制的安装命令;接入前先确认权限范围。

分类

搜索检索

传输方式

stdio

认证方式

无需认证

部署方式

支持远程部署

安装与配置

安装命令

python -m venv venv

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

ReActMCP网络搜索

ReActMCP Web Search是一个MCP(模型上下文协议)服务器,它将Web搜索功能集成到您的人工智能助手框架中。它利用Exa API执行基本和高级Web搜索,返回实时、标记格式的结果,包括标题、URL、发布日期和内容摘要。

该存储库是更广泛的ReActMCP项目的一部分,该项目连接了各种MCP工具和服务器,为您的AI助手提供了广泛的功能。

______________________________________________________________________

目录

- 环境变量 - MCP配置 - 系统提示

- 运行Web搜索服务器 - 测试工具

______________________________________________________________________

特性

  • 基本网络搜索:使用Exa API执行简单搜索。
  • 高级网络搜索:使用其他过滤选项,如域限制、文本包含要求和日期过滤器。
  • Markdown输出:在Markdown中格式化搜索结果,以便轻松合并标题、URL和摘要。
  • MCP集成:轻松将此工具添加到您的MCP服务器生态系统中,以获得多工具AI帮助。

______________________________________________________________________

需求

  • Python 3.8+
  • python dotenv
  • exa_py (查看客户端API)
  • MCP框架可能需要的其他依赖关系

______________________________________________________________________

安装

  1. 克隆存储库
   git clone https://github.com/mshojaei77/ReActMCP.git
   cd ReActMCP
  1. 创建虚拟环境(可选但推荐)
   python -m venv venv
   source venv/bin/activate  # On Windows use: venv\Scripts\activate
  1. 再进行
   pip install -r requirements.txt

______________________________________________________________________

配置

环境变量

创建一个 .env 项目根目录中的文件,至少包含以下变量:

EXA_API_KEY=your_exa_api_key_here
OPENAI_API_KEY=...

此密钥是Exa API执行web搜索所必需的。

MCP配置

MCP配置文件 mcp_config.json 定义MCP服务器可用的设置和工具。提供了一个示例配置:

{
  "websearch": {
    "script": "web_search.py",
    "encoding_error_handler": "ignore",
    "description": "Web search capability using Exa API that provides real-time internet search results. Supports both basic and advanced search with filtering options including domain restrictions, text inclusion requirements, and date filtering. Returns formatted results with titles, URLs, publication dates, and content summaries.",
    "required_env_vars": ["EXA_API_KEY"],
    "active": true
  },
  "settings": {
    "model": "gpt-4o",
    "system_prompt_path": "system_prompt.txt"
  }
}

您可以通过修改默认结果数量或添加新的MCP工具等参数来个性化或扩展此配置。

系统提示

这 system_prompt.txt 该文件配置了AI助手的行为和语调。它引导人们做出友好、吸引人、信息丰富的回应,并包含表情符号。提供了一个示例提示:

You are a helpful, knowledgeable AI assistant with web search capabilities. Your goal is to provide accurate, comprehensive, and up-to-date information to users.
Use lots of emojis and make your responses fun and engaging.

## Available Search Tools

- `search_web`: Basic web search that returns results based on a query
- `advanced_search_web`: Advanced search with filtering options for domains, required text, and date ranges

## Guidelines for Responding to Questions

1. For current information or facts that might have changed since your training data, use the appropriate search tool to find the most recent and relevant information.

2. Use `search_web` for general queries and `advanced_search_web` with appropriate filters for more specific needs.

3. Formulate precise search queries to maximize result relevance.

4. For recent information, use the `max_age_days` parameter in advanced search to limit results to recent publications.

5. When targeting specific sources, use the `include_domains` parameter to focus your search.

6. Cite sources by including URLs from search results.

7. For insufficient or contradictory results, acknowledge limitations and explain findings.

8. Break down complex topics into organized sections.

9. Provide balanced perspectives on controversial topics.

10. Be transparent about uncertainty rather than making up information.

11. Maintain a helpful, informative, and conversational tone.

## Response Quality Standards

Your responses should be well-structured, factually accurate, and tailored to the user's level of understanding on the topic. Use the web search capabilities as your primary tools for accessing current information before responding to time-sensitive or factual queries.

请随意调整系统提示,以符合您所需的助手行为。

______________________________________________________________________

用法

运行Web搜索服务器

MCP服务器在 servers 目录。要运行服务器,只需执行它:

python servers/web_search.py

此命令将启动MCP服务器,该服务器将监听请求并公开以下工具:

  • 搜索web:执行基本的网络搜索。
  • advanced_search_web:使用过滤选项执行高级网络搜索。

测试工具

在...之内 web_search.py,测试功能 test_search() 提供(目前已注释掉)以演示搜索功能的基本用法。您可以通过取消注释测试执行块并使用Python的asyncio运行器来运行此测试:

if __name__ == "__main__":
    import asyncio
    # Uncomment the following line to perform a test search
    # asyncio.run(test_search())
    mcp.run()

这将打印示例查询的搜索结果,并帮助您验证该工具是否按预期运行。

______________________________________________________________________

Claude桌面配置:

通过在配置中添加以下内容,配置Claude Desktop以使用此服务器:

{
  "mcpServers": {
    "websearch": {
         "command": "python",
         "args": ["path/to/servers/exa_web_search.py"]
       }
  }
}

故障排除

  • 缺少EXA_API_KEY: 确保 .env 文件已使用有效的Exa API密钥正确设置。
  • 依赖性问题: 验证是否安装了所有必要的Python包(检查您的 requirements.txt 文件)。如有需要,请重新安装软件包。
  • API错误: 如果您在网络搜索过程中遇到错误,请检查您的网络连接并验证Exa API状态。

______________________________________________________________________

许可证

该项目根据MIT许可证获得许可。请参阅 许可证 文件以获取详细信息。

______________________________________________________________________

贡献

欢迎投稿!如果您有建议、错误修复或改进,请打开问题或提交拉取请求。

快乐编码,享受使用ReActMCP Web Search构建个性化、多工具AI助手的乐趣! 🚀😊

明星历史

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

网络搜索Python本地部署AI助手实时数据Markdown格式化

支持客户端

Claude DesktopClaude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

查资料带出处

把网页、论文和文档的检索结果连同链接一起带回对话。

站内知识检索

在自己的文档库里做语义搜索,比关键词更贴题。

事实核对

交叉多个来源确认一条信息,减少模型凭记忆作答。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude Desktop、Claude,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在搜索检索场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Re Act MCP

MCP World · 本页

0stdio有3 个2026-05-17
Baidu Netdisk

MCP World

未标注未说明未标注1 个2026-05-17
Sequentialthinking

MCP.so

1SSE有2 个2026-05-17
Brave Search 433812ff

MCP World

2未说明未标注1 个2026-05-17
mindsdb (430e18)

MCP World

0未说明有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Re Act MCP 怎么安装?

公开资料给出的安装命令是 python -m venv venv,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Re Act MCP 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Re Act MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Re Act MCP 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Re Act MCP 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP