openalex-mcp
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 |
|
|
|
|
|
|
|
|
Configuración
OPENALEX_API_KEY=optional_openalex_api_key
OPENALEX_EMAIL=your_email_for_the_polite_poolClaude 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 raiseVerifica la cadena de hash de un registro depositado:
python ledger.py verify receipts.jsonlCompatibilidad 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 toolsoa_author_worksARead-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_byARead-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_authorARead-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_workARead-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_authorsBRead-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_institutionsARead-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_sourcesBRead-onlyIdempotent
Search OpenAlex for sources: journals, repositories, conferences. Returns the unified envelope (record_type source).
Inputs: params (required). Returns: result
oa_search_worksARead-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
Scored across 8 tools
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.
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.
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.
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
Related MCP Connectors
Search OpenAlex scholarly works with citation counts and DOIs via a hosted read-only MCP server.
Unofficial OpenAlex MCP — wraps the OpenAlex API (scholarly works, free, no auth)
Search 250M+ scholarly papers, authors, institutions, citation trends, and funders via OpenAlex.
Search 250M+ academic works, citation graphs, DOIs, and institutional research via OpenAlex.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server enabling AI agents to search and retrieve scientific papers, citations, and author profiles from Crossref, OpenAlex, and Semantic Scholar with no API keys required.53MIT
- AlicenseAqualityDmaintenanceMCP server for the OpenAlex scholarly database, providing AI agents with tools to search and retrieve academic works, authors, and institutions via natural language queries.8MIT
- FlicenseNot gradedqualityNot gradedmaintenanceMCP server for academic research using the OpenAlex API, enabling article search, details retrieval, and author profile lookup.-
- AlicenseNot gradedqualityCmaintenanceAn MCP server for searching and exploring OpenAlex's index of 250M+ scholarly works, authors, institutions, journals, funders, and grants through Claude.1MIT