Skip to main content
Glama
openalex-mcp

openalex-mcp

by ckgerteis

MCP stdio сервер для OpenAlex API (глобальный научный граф).

Данные через OpenAlex, OurResearch.

Установка

Плоская структура, соответствующая тому, как развёрнут сервер: server.py и ledger.py рядом друг с другом, запускаются по пути.

python -m venv .venv && .venv/bin/pip install -e .

Затем укажите Claude Desktop на python server.py (см. ниже).

Related MCP server: mcp-openalex

Инструменты

Инструмент

oa_author_works

oa_cited_by

oa_get_author

oa_get_work

oa_search_authors

oa_search_institutions

oa_search_sources

oa_search_works

Конфигурация

OPENALEX_API_KEY=optional_openalex_api_key
OPENALEX_EMAIL=your_email_for_the_polite_pool

Claude Desktop

{
  "mcpServers": {
    "openalex": {
      "command": "C:\\path\\to\\.venv\\Scripts\\python.exe",
      "args": ["C:\\path\\to\\openalex_mcp\\server.py"],
      "env": {
        "OPENALEX_API_KEY": "optional_openalex_api_key",
        "OPENALEX_EMAIL": "your_email_for_the_polite_pool"
      }
    }
  }
}

Квитанции запросов

Каждый запрос может быть помещён в журнал JSONL с хеш-цепочкой, доступный только для добавления, с помощью openalex_mcp.ledger. Он выключен, если не задан MCP_RECEIPT_LOG, и сбой журналирования подавляется, а не возбуждается — поиск важнее, чем запись о нём. Секреты вымарываются до составления строки.

MCP_RECEIPT_LOG=C:\path\to\receipts.jsonl
MCP_RECEIPT_SESSION=project-or-article-slug
MCP_RECEIPT_STRICT=1        # optional: make logging failure raise

Проверьте хеш-цепочку сохранённого журнала:

python ledger.py verify receipts.jsonl

Совместимость с MCP SDK

Работает как на mcp 1.x, так и 2.x. Версия 2.0.0 SDK удалила mcp.server.fastmcp; этот сервер импортирует FastMCP, где он существует, и возвращается к MCPServer, где его нет.

Лицензия

MIT © 2026 Christopher Gerteis. Распространяется только на код сервера; он не даёт никаких прав на данные OpenAlex, OurResearch, которые остаются подчинёнными условиям этого провайдера.

Автор

Dr Christopher Gerteis, SOAS University of London.

Available Tools

8 tools
oa_author_worksA
Read-onlyIdempotent

Works by one author, with optional year filter and sort. Returns the unified envelope. A filter on an identifier, not a term search.

Inputs: params (required). Returns: result

oa_cited_byA
Read-onlyIdempotent

Works that cite a given work, most-cited first. Returns the unified envelope. This is a filter on an identifier, not a term search, so no searched_for headline is set.

Inputs: params (required). Returns: result

oa_get_authorA
Read-onlyIdempotent

Look up one author by OpenAlex ID or ORCID. Returns the unified envelope with a single author item, or NOT_FOUND.

Inputs: params (required). Returns: result

oa_get_workA
Read-onlyIdempotent

Look up one work by OpenAlex ID, DOI, or PMID. Returns the unified envelope with a single item, or NOT_FOUND.

Inputs: params (required). Returns: result

oa_search_authorsB
Read-onlyIdempotent

Search OpenAlex for authors by name. Returns the unified envelope; each item is an author record (record_type author) with affiliations, work and citation counts, and h-index in extra.

Inputs: params (required). Returns: result

oa_search_institutionsA
Read-onlyIdempotent

Search OpenAlex for institutions. Returns the unified envelope (record_type institution); useful for finding institution IDs to filter work searches.

Inputs: params (required). Returns: result

oa_search_sourcesB
Read-onlyIdempotent

Search OpenAlex for sources: journals, repositories, conferences. Returns the unified envelope (record_type source).

Inputs: params (required). Returns: result

oa_search_worksA
Read-onlyIdempotent

Search OpenAlex for scholarly works (articles, books, datasets, theses). Returns the unified envelope.

OpenAlex matches title, abstract and indexed full text with stemming, so result.total is a loose count (matching_mode full_text_stemmed) and a high breadth is expected. Titles are typed by OpenAlex's own language field; where that is absent, a CJK title is kept only in extra.title rather than guessed into ja or ko. Filters by year, author, institution, source and open-access status narrow the set exactly. OpenAlex charges per call, not per result: a sweep that pages through results should set per_page 200.

Inputs: params (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a clearly distinct resource and action: single-record lookups (oa_get_work, oa_get_author), term searches over distinct entity types, and identifier-based traversals (oa_cited_by, oa_author_works). The descriptions explicitly distinguish identifier filters from term searches, so an agent can reliably choose the right tool.

    Naming Consistency5/5

    All eight tools follow a consistent oa_ + verb_noun pattern (oa_get_work, oa_search_authors, oa_cited_by, oa_author_works). The shared oa_ namespace prefix and uniform snake_case make the set predictable.

    Tool Count5/5

    Eight tools is well-scoped for a read-oriented scholarly metadata API, covering the major entity types without redundant operations. Each tool earns its place by serving a distinct query pattern.

    Completeness4/5

    The surface covers work lookup/search, author lookup/search/works, source search, institution search, and citation traversal, which handles most research workflows. Minor gaps remain: no direct get-by-ID for sources or institutions, and no explicit references or related-works operation.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for the OpenAlex scholarly database, providing AI agents with tools to search and retrieve academic works, authors, and institutions via natural language queries.
      8
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      MCP server for academic research using the OpenAlex API, enabling article search, details retrieval, and author profile lookup.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server for searching and exploring OpenAlex's index of 250M+ scholarly works, authors, institutions, journals, funders, and grants through Claude.
      1
      MIT