Skip to main content
Glama
openalex-mcp

openalex-mcp

by ckgerteis

openalex-mcp

Servidor MCP stdio para la API de OpenAlex (grafo académico global).

Datos a través de OpenAlex, OurResearch.

Instalación

Disposición plana, acorde con cómo se despliega el servidor: server.py y ledger.py uno al lado del otro, ejecutados por ruta.

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

Luego apunta Claude Desktop a python server.py (ver más abajo).

Related MCP server: mcp-openalex

Herramientas

Herramienta

oa_author_works

oa_cited_by

oa_get_author

oa_get_work

oa_search_authors

oa_search_institutions

oa_search_sources

oa_search_works

Configuración

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"
      }
    }
  }
}

Recibos de consulta

Cada consulta puede depositarse en un registro JSONL de solo añadido y encadenado por hash mediante openalex_mcp.ledger. Está desactivado a menos que se establezca MCP_RECEIPT_LOG, y un fallo de registro se traga en lugar de lanzarse: una búsqueda importa más que el registro de la misma. Los secretos se redactan antes de componer una línea.

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

Verifica la cadena de hash de un registro depositado:

python ledger.py verify receipts.jsonl

Compatibilidad con el SDK de MCP

Se ejecuta tanto en mcp 1.x como en 2.x. La versión 2.0.0 del SDK eliminó mcp.server.fastmcp; este servidor importa FastMCP donde existe y recurre a MCPServer donde no.

Licencia

MIT © 2026 Christopher Gerteis. Cubre solo el código del servidor; no otorga derechos sobre los datos de OpenAlex, OurResearch, que siguen regidos por los términos de ese proveedor.

Autor

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