取消搜索MCP服务器
](https://www.npmjs.com/package/desearch-mcp-server)
模型上下文协议(MCP)服务器允许像Claude或Cursor这样的客户端使用Desearch AI进行实时AI X搜索和网络搜索。
工具
Desearch MCP服务器包括以下工具:
- AI搜索:使用相关链接和摘要进行实时人工智能推特和网络搜索。
- X搜索:在X上实时搜索推文。
先决条件📋
安装🛠️
NPM安装
npm install -g desearch-mcp-server使用Smithery
通过以下方式自动安装Claude Desktop的Desearch MCP服务器 史密瑟里:
npx -y @smithery/cli install @Desearch-ai/desearch --client claude或者对于Cursor IDE:
npx -y @smithery/cli install @Desearch-ai/desearch --client cursor配置⚙️
1.配置Cursor IDE以运行Desearch MCP服务器
打开光标IDE,访问命令面板 Cmd+Shift+P 或 Ctrl+Shift+P,并搜索 Open MCP Settings.点击 Add new global MCP server 打开 mcp.json 文件。
2.添加Desearch服务器配置:
{
"mcpServers": {
"desearch": {
"command": "desearch-mcp-server",
"env": {
"DESEARCH_API_KEY": "your-api-key"
}
}
}
}替换 your-api-key 使用来自的实际Desearch API密钥 console.desearch.ai/api-keys.
3.重新启动Cursor IDE
要使更改生效,请执行以下操作:
- 完全退出Cursor IDE
- 重新启动Cursor IDE
1.配置Claude Desktop以运行Desearch MCP服务器
打开Claude Desktop应用程序,从左上角菜单栏启用开发人员模式。
启用后,打开“设置”(也是从左上角菜单栏),导航到“开发人员选项”,您将在其中找到“编辑配置”按钮。点击它将打开 claude_desktop_config.json 文件,允许您进行必要的编辑。
或者(如果你想打开 claude_desktop_config.json 从终端)
对于macOS:
- 打开您的Claude桌面配置:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json对于Windows:
- 打开您的Claude Desktop配置:
code %APPDATA%\Claude\claude_desktop_config.json2.添加Desearch服务器配置:
{
"mcpServers": {
"desearch": {
"command": "desearch-mcp-server",
"env": {
"DESEARCH_API_KEY": "your-api-key"
}
}
}
}替换 your-api-key 使用来自的实际Desearch API密钥 console.desearch.ai/api-keys.
3.重新启动克劳德桌面
要使更改生效,请执行以下操作:
- 完全退出克劳德桌面
- 重新启动克劳德桌面
- 您可以通过在“设置”>“开发人员”>“搜索”中检查状态来验证服务器
故障排除🔧
常见问题
- 找不到服务器
- 检查Claude或Cursor Desktop配置语法 - 确保已安装Node.js
- API关键问题
- 确认您的 DESEARCH_API_KEY 有效 - 检查 DESEARCH_API_KEY 在Cursor或Claude Desktop配置中正确设置 - 验证API键周围是否没有空格
- 连接问题
- 完全重新启动Claude Desktop或Cursor IDE - 检查克劳德桌面日志:
# macOS
tail -n 50 -f ~/Library/Logs/Claude/mcp*.log
# Windows
type "%APPDATA%\Claude\logs\mcp*.log"