Semantic Scholar MCP Server

by JackKuo666
Verified

Integrations

  • Provides tools for searching papers, retrieving detailed paper and author information, and fetching citations and references from the Semantic Scholar academic database.

🎓 Semantic Scholar MCP 服务器

该项目实现了一个模型上下文协议 (MCP) 服务器,用于与 Semantic Scholar API 交互。它提供了用于搜索论文、检索论文和作者详细信息以及获取引文和参考文献的工具。

✨ 特点

  • 🔍 在 Semantic Scholar 上搜索论文
  • 📄 检索特定论文的详细信息
  • 👤 获取作者详细信息
  • 🔗 获取论文的引用和参考文献

📋 先决条件

  • 🐍 Python 3.10+
  • 📚 semanticscholar Python 包
  • 🔧 mcp Python 包(模型上下文协议)

🚀 安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 semanticscholar Server:

克劳德

npx -y @smithery/cli@latest install @JackKuo666/semanticscholar-mcp-server --client claude --config "{}"

光标

将以下内容粘贴到设置 → 光标设置 → MCP → 添加新服务器:

  • Mac/Linux
npx -y @smithery/cli@latest run @JackKuo666/semanticscholar-mcp-server --client cursor --config "{}"

风帆冲浪

npx -y @smithery/cli@latest install @JackKuo666/semanticscholar-mcp-server --client windsurf --config "{}"

克莱恩

npx -y @smithery/cli@latest install @JackKuo666/semanticscholar-mcp-server --client cline --config "{}"
  1. 克隆此存储库:
    git clone https://github.com/JackKuo666/semanticscholar-MCP-Server.git cd semanticscholar-mcp-server
  2. 安装所需的软件包:
    pip install semanticscholar mcp

🖥️ 使用方法

  1. 启动 Semantic Scholar MCP 服务器:
    python semantic_scholar_server.py
  2. 服务器将启动并监听 MCP 请求。
  3. 使用 MCP 客户端与服务器交互并访问以下工具:
    • 🔍 search_semantic_scholar :使用查询字符串搜索论文
    • 📄 get_semantic_scholar_paper_details :获取特定论文的详细信息
    • 👤 get_semantic_scholar_author_details :获取特定作者的详细信息
    • 🔗 get_semantic_scholar_citations_and_references :获取论文的引用和参考文献

与 Claude Desktop 一起使用

将此配置添加到您的claude_desktop_config.json

(Mac 操作系统)

{ "mcpServers": { "semanticscholar": { "command": "python", "args": ["-m", "semanticscholar_mcp_server"] } } }

(Windows 版本):

{ "mcpServers": { "semanticscholar": { "command": "C:\\Users\\YOUR\\PATH\\miniconda3\\envs\\mcp_server\\python.exe", "args": [ "D:\\code\\YOUR\\PATH\\semanticscholar-MCP-Server\\semanticscholar_server.py" ], "env": {}, "disabled": false, "autoApprove": [] } } }

与 Cline 一起使用

{ "mcpServers": { "semanticscholar": { "command": "bash", "args": [ "-c", "source /home/YOUR/PATH/.venv/bin/activate && python /home/YOUR/PATH/semanticscholar_mcp_server.py" ], "env": {}, "disabled": false, "autoApprove": [] } } }

📁 文件结构

  • 📜 semantic_scholar_search.py :包含与 Semantic Scholar API 交互的函数
  • 🖥️ semantic_scholar_server.py :实现 MCP 服务器并定义可用工具

🤝 贡献

欢迎贡献代码!欢迎提交 Pull 请求。

📄 许可证

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

-
security - not tested
F
license - not found
-
quality - not tested

提供访问语义学者 API 的工具,以搜索论文、检索论文和作者详细信息以及通过模型上下文协议获取引文和参考文献。

  1. ✨ Features
    1. 📋 Prerequisites
      1. 🚀 Installation
        1. Installing via Smithery
        2. CLine
      2. 🖥️ Usage
        1. Usage with Claude Desktop
          1. 📁 File Structure
            1. 🤝 Contributing
              1. 📄 License
                ID: nkmaywc6jv