Google-Scholar-MCP-Server
🔍 通过一个简单的 MCP 接口,使 AI 助手能够搜索和访问 Google Scholar 论文。
README
Google Scholar MCP 服务器
🔍 使 AI 助手能够通过简单的 MCP 接口搜索和访问 Google Scholar 论文。
Google Scholar MCP 服务器通过模型上下文协议 (MCP) 在 AI 助手和 Google Scholar 之间提供桥梁。它允许 AI 模型以编程方式搜索学术论文并访问其内容。
✨ 核心功能
- 🔎 论文搜索:使用自定义搜索字符串或高级搜索参数查询 Google Scholar 论文 ✅
- 🚀 高效检索:快速访问论文元数据 ✅
- 👤 作者信息:检索有关作者的详细信息 ✅
- 📊 研究支持:促进学术研究和分析 ✅
🚀 快速开始
手动安装
通过 Smithery 安装
要通过 Smithery 为 Claude Desktop 自动安装 google-scholar Server:
claude
npx -y @smithery/cli@latest install @JackKuo666/google-scholar-mcp-server --client claude --config "{}"
Cursor
将以下内容粘贴到 Settings → Cursor Settings → MCP → Add new server:
- Mac/Linux
npx -y @smithery/cli@latest run @JackKuo666/google-scholar-mcp-server --client cursor --config "{}"
Windsurf
npx -y @smithery/cli@latest install @JackKuo666/google-scholar-mcp-server --client windsurf --config "{}"
CLine
npx -y @smithery/cli@latest install @JackKuo666/google-scholar-mcp-server --client cline --config "{}"
-
克隆存储库:
git clone https://github.com/JackKuo666/google-scholar-MCP-Server.git cd google-scholar-MCP-Server -
安装所需的依赖项:
pip install -r requirements.txt
对于开发:
# 克隆并设置开发环境
git clone https://github.com/JackKuo666/Google-Scholar-MCP-Server.git
cd Google-Scholar-MCP-Server
# 创建并激活虚拟环境
python -m venv venv
source venv/bin/activate # 在 Windows 上使用 `venv\Scripts\activate`
# 安装依赖项
pip install -r requirements.txt
📊 用法
启动 MCP 服务器:
python google_scholar_server.py
服务器运行后,您可以在 AI 助手或应用程序中使用提供的 MCP 工具。 以下是一些如何使用这些工具的示例:
示例 1:使用关键字搜索论文
result = await mcp.use_tool("search_google_scholar_key_words", {
"query": "artificial intelligence ethics",
"num_results": 5
})
print(result)
示例 2:执行高级搜索
result = await mcp.use_tool("search_google_scholar_advanced", {
"query": "machine learning",
"author": "Hinton",
"year_range": [2020, 2023],
"num_results": 3
})
print(result)
示例 3:获取作者信息
result = await mcp.use_tool("get_author_info", {
"author_name": "Geoffrey Hinton"
})
print(result)
这些示例演示了如何使用 Google Scholar MCP 服务器提供的三个主要工具。 根据您的具体用例调整参数。
与 Claude Desktop 一起使用
将此配置添加到您的 claude_desktop_config.json:
(Mac OS)
{
"mcpServers": {
"google-scholar": {
"command": "python",
"args": ["-m", "google_scholar_mcp_server"]
}
}
}
(Windows 版本):
{
"mcpServers": {
"google-scholar": {
"command": "C:\\Users\\YOUR\\PATH\\miniconda3\\envs\\mcp_server\\python.exe",
"args": [
"D:\\code\\YOUR\\PATH\\Google-Scholar-MCP-Server\\google_scholar_server.py"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}
与 Cline 一起使用
{
"mcpServers": {
"google-scholar": {
"command": "bash",
"args": [
"-c",
"source /home/YOUR/PATH/.venv/bin/activate && python /home/YOUR/PATH/google_scholar_mcp_server.py"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}
🛠 MCP 工具
Google Scholar MCP 服务器提供以下工具:
search_google_scholar_key_words
使用关键字在 Google Scholar 上搜索文章。
参数:
query(str):搜索查询字符串num_results(int, optional):要返回的结果数(默认值:5)
返回: 包含文章信息的字典列表
search_google_scholar_advanced
在 Google Scholar 上执行文章的高级搜索。
参数:
query(str):常规搜索查询author(str, optional):作者姓名year_range(tuple, optional):包含 (start_year, end_year) 的元组num_results(int, optional):要返回的结果数(默认值:5)
返回: 包含文章信息的字典列表
get_author_info
从 Google Scholar 获取有关作者的详细信息。
参数:
author_name(str):要搜索的作者姓名
返回: 包含作者信息的字典
📁 项目结构
google_scholar_server.py:使用 FastMCP 的主要 MCP 服务器实现google_scholar_web_search.py:包含用于搜索 Google Scholar 的 Web 抓取逻辑
🔧 依赖项
- Python 3.10+
- mcp[cli]>=1.4.1
- scholarly>=1.7.0
- asyncio>=3.4.3
您可以使用以下命令安装所需的依赖项:
pip install -r requirements.txt
🤝 贡献
欢迎贡献! 请随时提交 Pull Request。
📄 许可证
本项目根据 MIT 许可证获得许可。
⚠️ 免责声明
此工具仅用于研究目的。 请遵守 Google Scholar 的服务条款并负责任地使用此工具。
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。