开放搜索MCP是一个全面的模型上下文协议(MCP)服务器,为Claude桌面应用提供33种专业的研究和搜索工具。专为需要在学术、技术和通用领域具备强大搜索能力的研究人员、开发人员和知识工作者而设计。
git clone https://github.com/flyanima/open-search-mcp.git
cd open-search-mcp
npm install
npm run security:check
npm run build
# 复制模板并配置API密钥
cp .env.template .env
# 使用实际的API密钥编辑.env文件(切勿提交此文件)
nano .env
复制 claude_desktop_config.template.json
并使用你的路径进行更新:
{
"mcpServers": {
"open-search-mcp": {
"command": "node",
"args": ["path/to/open-search-mcp/dist/index.js"],
"env": {
"NODE_ENV": "production",
"FILTER_TO_README_33": "true",
"GITHUB_TOKEN": "your_github_token_optional",
"ALPHA_VANTAGE_API_KEY": "your_alpha_vantage_key_optional"
}
}
}
}
33种工具将在你的Claude桌面界面中可用。
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Alpha Vantage集成:
注意:金融工具需要API密钥,且可能有使用限制
"Search for recent machine learning papers on arXiv"
"Find PubMed articles about COVID-19 treatments"
"Look up cryptography research in IACR"
"Find React components on GitHub"
"Search Stack Overflow for Python debugging tips"
"Look for GitLab projects using Docker"
"Perform intelligent research on quantum computing"
"Analyze the current state of renewable energy technology"
"Visualize my thinking process for this complex problem"
"Crawl and analyze this website's content"
"Extract information from this PDF document"
"Batch analyze these URLs for common themes"
重要提示:切勿在配置中硬编码API密钥。为了安全起见,请使用环境变量。
# 设置环境变量
export ALPHA_VANTAGE_API_KEY="your_key_here"
export GITHUB_TOKEN="your_token_here"
# 然后在Claude桌面配置中使用,而不暴露密钥
{
"mcpServers": {
"open-search-mcp": {
"command": "node",
"args": ["path/to/dist/expanded-server.js"]
}
}
}
# 创建.env文件(git会自动忽略)
echo "ALPHA_VANTAGE_API_KEY=your_key_here" >> .env
echo "GITHUB_TOKEN=your_token_here" >> .env
{
"mcpServers": {
"open-search-mcp": {
"command": "node",
"args": ["path/to/dist/expanded-server.js"],
"env": {
"ALPHA_VANTAGE_API_KEY": "your_key_here",
"GITHUB_TOKEN": "your_token_here"
}
}
}
}
# 验证你的API密钥配置
npm run security:scan
# 克隆仓库
git clone https://github.com/flyanima/open-search-mcp.git
cd open-search-mcp
# 安装依赖(包括安全工具)
npm install
# 设置预提交钩子以确保安全
npm run prepare
# 运行安全检查
npm run security:check
# 构建项目
npm run build
# 运行测试
npm test
# 提交前 - 自动安全检查
git add .
git commit -m "Your changes" # 预提交钩子将自动运行
# 手动安全检查
npm run security:lint # 专注于安全的代码检查
npm run security:scan # 全面的安全扫描
npm run security:maintenance # 依赖更新和维护
src/
├── index.ts # 主要MCP服务器入口点
├── tools/ # 各个工具的实现
├── utils/ # 实用函数和辅助工具
├── config/ # 配置管理
├── engines/ # 搜索引擎适配器
├── research/ # 研究和分析工具
└── types/ # TypeScript类型定义
dist/
├── expanded-server.js # 编译后的33工具服务器
└── index.js # 主要编译后的服务器
# 运行包括安全测试在内的所有测试
npm test
# 测试单个工具
npm run test:tools
# 测试特定工具类别
npm run test:academic
npm run test:developer
npm run test:research
# 全面安全扫描
npm run security:scan
# 专注于安全的代码检查
npm run security:lint
# 依赖漏洞检查
npm run security:audit
# 完整的安全验证
npm run security:check
# 以调试模式启动服务器
node dist/expanded-server.js
# 使用MCP客户端进行测试
npx @modelcontextprotocol/inspector dist/expanded-server.js
# 开发中的安全验证
NODE_ENV=development npm run security:scan
我们欢迎贡献!以下是你可以提供帮助的方式:
git checkout -b feature/amazing-feature
)npm run security:check
)npm test
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)本项目采用MIT许可证 - 有关详细信息,请参阅 LICENSE 文件。
docs/
目录中的详细指南npm run security:scan
进行健康检查npm run security:maintenance
进行更新🔍 开放搜索MCP - 通过全面的搜索功能赋能研究
为研究和开发社区用心打造 ❤️