LA

leogitguy/alex-paper-search-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

35 stars 6 forks 质量 71 趋势 12MIT

通过你的LLM使用MCP从OpenAlex搜索和检索数百万篇科学论文

概览

一个模型上下文协议(MCP)服务器,提供对OpenAlex学术数据库的全面访问。通过高级筛选功能搜索和检索学术论文、作者、机构等。 - 🔍 :跨数亿学术著作搜索 - 🎯 :按日期筛选、开放获取状态、引用、国家、语言等 - 📊 获取包括摘要、引用、主题及完整书目数据在内的详细信息 - 🚀 :优化快速响应并配置合适的 - 🐳 :通过 Docker 和 Docker Compose 轻松部署 - 🔧 支持 MCP 兼容客户端 要将此MCP服务器与Claude Desktop一起使用,请将以下配置添加到您的Claude Desktop配置文件中: : ~/Library/Application Support/Claude/claude_desktop_config.json : %APPDATA%\Claude\claude_desktop_config.json 确保:1. 将 /path/to/your/openalex-mcp-server 替换为你克隆仓库的实际路径 2.替换 your.email@example。

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,提供对OpenAlex学术数据库的全面访问。通过高级筛选功能搜索和检索学术论文、作者、机构等。

特色

  • 🔍 综合检索:检索数亿学术著作
  • 🎯 高级筛选:按日期、开放获取状态、引用、国家、语言等进行筛选
  • 📊 丰富的元数据:获取包括摘要、引用、主题及完整书目数据在内的详细信息
  • 🚀 高性能:通过正确的API配置优化以实现快速响应
  • 🐳 Docker Ready:使用 Docker 和 Docker Compose 即可轻松部署
  • 🔧 MCP 兼容:可与任何兼容 MCP 的客户端兼容

快速启动

安装

Docker 设置

Claude桌面集成

要将此MCP服务器与Claude Desktop一起使用,请将以下配置添加到您的Claude Desktop配置文件中:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

务必:

  1. 将/path/to/your/openalex-mcp-server替换为通往你克隆仓库的实际路径

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

OpenAlex Paper Search MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to the OpenAlex academic database. Search and retrieve academic papers, authors, institutions, and more with advanced filtering capabilities.

Features

  • 🔍 Comprehensive Search: Search across hundreds of millions of academic works
  • 🎯 Advanced Filtering: Filter by date, open access status, citations, country, language, and more
  • 📊 Rich Metadata: Get detailed information including abstracts, citations, topics, and full bibliographic data
  • 🚀 High Performance: Optimized for fast responses with proper API configuration
  • 🐳 Docker Ready: Easy deployment with Docker and Docker Compose
  • 🔧 MCP Compatible: Works with any MCP-compatible client

Quick Start

Installation

# Clone the repository
git clone https://github.com/LeoGitGuy/alex-paper-search-mcp.git
cd openalex-mcp-server

# Install dependencies
pip install -e .

# Set your email for better API performance (optional but recommended)
export OPENALEX_EMAIL="[email protected]"

# Run the server
python -m openalex_mcp.server

Docker Setup

# Copy environment template
cp .env.example .env

# Edit .env to set your email
echo "[email protected]" > .env

# Run with Docker Compose
docker-compose up -d

Claude Desktop Integration

To use this MCP server with Claude Desktop, add this configuration to your Claude Desktop config file:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "openalex_paper_search": {
      "command": "python",
      "args": [
        "-m",
        "openalex_mcp.server"
      ],
      "cwd": "/path/to/your/openalex-mcp-server",
      "env": {
        "OPENALEX_EMAIL": "[email protected]"
      }
    }
  }
}

Make sure to:

  1. Replace /path/to/your/openalex-mcp-server with the actual path to your cloned repository
  2. Replace [email protected] with your actual email address for better API performance
  3. Restart Claude Desktop after updating the configuration

Configuration

Environment Variables

Variable Required Description
OPENALEX_EMAIL Recommended Your email for OpenAlex polite pool access (faster response times)
OPENALEX_API_KEY Optional API key for authenticated requests (experimental feature)

Why Set an Email?

Setting OPENALEX_EMAIL gives you access to OpenAlex’s “polite pool”, which includes faster response times and higher rate limits

Available Tools

Core Search Functions

search_openalex

Main search function with full filtering capabilities:

# Basic search
search_openalex("machine learning", max_results=20)

# Advanced filtering
search_openalex(
    "neural networks", 
    max_results=15,
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "openalex_paper_search": { "command": "python", "args": [ "-m", "openalex_mcp.server" ], "cwd": "/path/to/your/openalex-mcp-server", "env": { "OPENALEX_EMAIL": "[email protected]" } } } }