MiniMax Search 是一个 MCP(模型上下文协议)服务器,提供网络搜索和浏览功能。
该项目使用了 标准的 MCP Server 协议,符合 MCP 规范:
list_tools()call_tool()stdio_server() 通信# 直接从 Git 仓库运行
uvx --from git+ssh://git@github.com:MiniMax-AI/minimax_search.git minimax-search
# 从本地目录运行
uvx --from /xxx/minimax_search minimax-search
在您的 MCP 客户端配置文件(例如 mcp.json)中添加:
{
"mcpServers": {
"minimax_search": {
"command": "uvx",
"args": [
"--from",
"git+ssh://git@github.com:MiniMax-AI/minimax_search.git",
"minimax-search"
],
"env": {
"MINIMAX_API_KEY": "your_minimax_api_key",
"SERPER_API_KEY": "your_serper_api_key",
"JINA_API_KEY": "your_jina_api_key"
}
}
}
}
同时搜索多个查询,返回简要结果(标题、URL、摘要)。
参数:
queries(字符串数组,必需):查询列表,支持 Google 高级搜索语法支持的搜索引擎:
高级搜索语法:
site:example.com - 限制特定站点intitle:关键词 - 标题包含关键词inurl:关键词 - URL 包含关键词"精确匹配" - 精确短语匹配示例:
{
"queries": ["Python asyncio 教程", "Python 线程 vs asyncio"]
}
访问多个网页,使用 MiniMax LLM 理解内容并回答问题。
参数:
urls(字符串数组,必需):目标网页 URL 列表query(字符串,必需):需要回答的问题示例:
{
"urls": [
"https://docs.python.org/3/library/asyncio.html",
"https://realpython.com/async-io-python/"
],
"query": "总结 asyncio 的主要特性和使用场景"
}
基本搜索功能:
SERPER_API_KEY:Google 搜索
网页浏览功能:
JINA_API_KEY:网页内容阅读
浏览功能(LLM 理解):
MINIMAX_API_KEY:MiniMax API 密钥
一旦 MCP 服务器启动,代理可以使用以下工具:
并行搜索多个查询:
用户:同时搜索“Python asyncio”和“Python 线程”的差异
代理:[调用 search 工具]
→ search(queries=["Python asyncio", "Python 线程"])
→ 返回两个查询的结果(并行执行)
批量浏览多个网页:
用户:访问这些链接并总结 asyncio 的主要特性
- https://docs.python.org/3/library/asyncio.html
- https://realpython.com/async-io-python/
代理:[调用 browse 工具]
→ browse(
urls=["https://docs.python.org/...", "https://realpython.com/..."],
query="总结 asyncio 的主要特性"
)
→ 返回综合摘要和答案
minimax_search/
├── server.py # MCP Server 入口点(2 个工具)
├── minimax_search_browse.py # 核心搜索和浏览实现
├── pyproject.toml # 项目配置
└── README.md
并行搜索:
批量浏览:
MIT
本项目基于 MiniMax-M2 模型 项目