OpenAlex Paper Search MCP Server logo

OpenAlex Paper Search MCP Server

Community
LeoGitGuy

Search and retrieve millions of scientific papers from OpenAlex with MCP via your LLM

PublisherLeoGitGuy
Repositoryalex-paper-search-mcp
LanguagePython
Forks
6
Stars
35
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    OpenAlex Paper Search MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    35 stars and 6 forks from the linked repository.

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

bash
# 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="your.email@example.com"

# Run the server
python -m openalex_mcp.server

Docker Setup

bash
# Copy environment template
cp .env.example .env

# Edit .env to set your email
echo "OPENALEX_EMAIL=your.email@example.com" > .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

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

Make sure to:

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

Configuration

Environment Variables

VariableRequiredDescription
OPENALEX_EMAILRecommendedYour email for OpenAlex polite pool access (faster response times)
OPENALEX_API_KEYOptionalAPI 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:

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

# Advanced filtering
search_openalex(
    "neural networks", 
    max_results=15,
    from_publication_date="2020-01-01",
    is_oa=True,
    cited_by_count=">100",
    institution_country="us"
)

get_paper_by_id / get_paper_by_doi

Retrieve specific papers:

python
get_paper_by_id("W2741809807")
get_paper_by_doi("10.7717/peerj.4375")

Convenience Functions

search_open_access_papers

Find freely available research:

python
search_open_access_papers(
    "artificial intelligence",
    max_results=15,
    from_publication_date="2020-01-01"
)

search_recent_papers

Get the latest research:

python
search_recent_papers(
    "quantum computing",
    max_results=20,
    years_back=3,
    min_citations=10
)

search_by_institution

Find research from specific countries:

python
search_by_institution(
    "renewable energy",
    institution_country="de",  # Germany
    max_results=15
)

Filtering Options

Date Filters

  • from_publication_date: "YYYY-MM-DD" (published on or after)
  • to_publication_date: "YYYY-MM-DD" (published on or before)
  • publication_year: Integer (exact year)

Content Filters

  • is_oa: Boolean (open access only)
  • has_doi: Boolean (papers with DOI)
  • has_fulltext: Boolean (fulltext available)
  • has_abstract: Boolean (abstract available)
  • type: String ('article', 'book', 'dataset', etc.)

Quality Filters

  • cited_by_count: String (">50", "10-100", ">=5")
  • authors_count: String (">1", "1-5")
  • language: String ('en', 'zh', 'es', etc.)

Institution & Geographic Filters

  • institution_country: String ('us', 'gb', 'cn', 'de', etc.)
  • funder: String (funder name or ID)
  • journal: String (OpenAlex journal ID)

Text Search Filters

  • abstract_search: Search within abstracts
  • title_search: Search within titles
  • fulltext_search: Search within fulltext (where available)

Sorting Options

  • sort: 'cited_by_count', 'publication_date', 'relevance_score'
  • order: 'desc', 'asc'

Usage Examples

Find Highly Cited Recent Papers

python
search_openalex(
    "deep learning",
    max_results=10,
    from_publication_date="2023-01-01",
    cited_by_count=">100",
    sort="cited_by_count",
    order="desc"
)

Search Open Access Climate Research

python
search_open_access_papers(
    "climate change adaptation",
    max_results=20,
    from_publication_date="2020-01-01",
    type="article"
)

Find Papers by Abstract Content

python
search_openalex(
    "",  # Empty main query
    max_results=15,
    abstract_search="machine learning ethics",
    is_oa=True
)

Get Recent COVID Research from Multiple Countries

python
# US research
us_papers = search_by_institution("COVID-19", "us", 10, from_publication_date="2023-01-01")

# British research  
gb_papers = search_by_institution("COVID-19", "gb", 10, from_publication_date="2023-01-01")

Troubleshooting

Debug Mode

bash
# Enable debug logging
export LOG_LEVEL=DEBUG
python -m openalex_mcp.server

Check Configuration

python
# Test your email configuration
from openalex_mcp.searcher import OpenAlexSearcher
searcher = OpenAlexSearcher(email="your.email@example.com")
papers = searcher.search("test", 1)
print(f"Found {len(papers)} papers")

License

MIT License - see LICENSE file for details.

Acknowledgments

  • OpenAlex for providing free access to academic data
  • PyAlex for the excellent Python library

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "leogitguy-alex-paper-search-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use OpenAlex Paper Search MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once OpenAlex Paper Search MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add OpenAlex Paper Search MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the OpenAlex Paper Search MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "leogitguy-alex-paper-search-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "alex-paper-search-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the OpenAlex Paper Search MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the OpenAlex Paper Search MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use OpenAlex Paper Search MCP Server to help me with this task?
OpenAlex Paper Search MCP Server
Sure. I read it.
Here is what I found using OpenAlex Paper Search MCP Server.

Frequently asked questions

What is the OpenAlex Paper Search MCP Server MCP server used for?

OpenAlex Paper Search MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use OpenAlex Paper Search MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use OpenAlex Paper Search MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use OpenAlex Paper Search MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With OpenAlex Paper Search MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect OpenAlex Paper Search MCP Server MCP to TypingMind?

OpenAlex Paper Search MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does OpenAlex Paper Search MCP Server MCP provide in TypingMind?

OpenAlex Paper Search MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use OpenAlex Paper Search MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If OpenAlex Paper Search MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇