ImplementationSources & Notes
OpenAlex Setup Guide
A scholarly index with an open API and MCP connector is how a coding agent searches the literature without being bounced by Google Scholar.
Beginner20–30 minA free OpenAlex account for the API key
ToolkitResearch Scanner
Google Scholar has no door for an agent. OpenAlex was built with one.
Overview
Google Scholar is built for human browsers: it publishes no API, blocks automated access, and scraping it breaches its terms. OpenAlex (opens in a new tab) provides an open scholarly catalog over plain HTTPS JSON, with a quick reference for LLM agents (opens in a new tab), an OpenAPI spec, and an llms.txt index.
research question | v +-------+--------+ search / filter / cite +----------+ | Coding agent |-------------------------->| OpenAlex | | Claude Code, |<--------------------------| API, CLI | | Codex, Kimi | DOIs, metadata, OA PDFs +----------+ +-------+--------+ | v candidate set | +----+-----+ | You | screen against the protocol +----+-----+ | v Zotero ----> MinerU ----> /00_literature_files/ library PDF -> md ready for the agent
ResearchRabbit adds optional visual citation browsing, Zotero holds the reference library, and MinerU converts PDFs to Markdown.
Optional hosted connector
OpenAlex offers an official AI agent connector (opens in a new tab). For Claude Code, add its endpoint and complete the OAuth sign-in:
claude mcp add --transport http openalex https://mcp.openalex.org/mcpOther clients need Streamable HTTP with OAuth support. Connector queries draw from your connected API budget and include author-profile write tools, so it is not entirely read-only. Keep write actions behind approval, verify one known paper first, and use the logged API route below for reproducible bulk searches.
Step 1: get a free key
- Create an account at openalex.org (opens in a new tab), verify your email, and copy your key from openalex.org/settings/api (opens in a new tab).
- Export it in your terminal session (API Keys Setup Guide) and keep keys out of Git, transcripts, and logged URLs:
read -r -s OPENALEX_API_KEY && export OPENALEX_API_KEYCursor paging past the first page requires an activated key. Check OpenAlex pricing (opens in a new tab) and authentication docs (opens in a new tab) for current daily allowances and backoff rules before a large batch.
Step 2: let the agent call the API
OpenAlex's API base is https://api.openalex.org (search reference (opens in a new tab), corpus reference (opens in a new tab)). Two API quirks matter before an agent runs: abstracts arrive as an abstract_inverted_index that the script must rebuild, and citation chasing uses referenced_works (backward) plus filter=cites:W... (forward; see SLR workflow). Do not silently widen a review from corpus=core to all. When a PRISMA protocol requires strict title and abstract matching without OpenAlex's automatic keyword expansion, use search.title_and_abstract= instead of search=.
Give your agent the constraints, fields, and logging rules so it writes a short script:
Search OpenAlex for journal articles published 2020-2025 on
organizational scaling and scalability. Use search= and corpus=core;
record that this scope includes OpenAlex keyword matches as well as text.
Filter to type:article and primary_location.source.type:journal
(a proxy for peer review, which we confirm at screening); page with
cursor=*; select id, doi, title, publication_year, cited_by_count,
primary_location, and abstract_inverted_index. Rebuild each abstract
from the inverted index and leave the cell empty when it is null.
Read OPENALEX_API_KEY from the environment and send it only as a
bearer header. Never write the key into any file.
Write one row per work to 01_search_and_screening/openalex_candidates.csv.
Record the request URL without credentials, the search scope, corpus,
date, total count, and any extra requests in 01_search_and_screening/search_log.md.Prefer direct HTTPS API scripts with bearer-header authentication (and the content API docs (opens in a new tab) for open-access PDFs) over the openalex-official downloader CLI for reproducible searches.
What it is for, and what it is not
- Agent-driven candidate search with a logged, reproducible query
- Checking that a reference an AI produced exists: resolve the DOI, compare the title
- Forward and backward citation chasing from a seed set
- Bulk metadata and open-access PDFs for a corpus
- A replacement for the databases your review protocol names, if the protocol names them
- The only source of abstracts; coverage varies by publisher, so expect gaps
- A judge of relevance. It returns matches; you decide what is in
A matching DOI confirms a record exists, not that the paper supports your claim; verify against primary text (Failure Museum).
referenced in 7 chapters
- The Research Workbench: How the Tools Connect§ What each part does
- ResearchRabbit Setup Guide§ Overview
- MCP Explorer Guide§ Discovering, vetting, and building servers
- Case Study: Systematic Reviews with AI§ Tools & budget
- Session 2: Building the Human-AI Research Pipeline§ Session structure
- Building an SLR with Claude Code§ Phase 1: search, stage ledgers, and screening
- Research Scanner: Literature Surveillance§ Host support
cite this page
Lin, X. (2026). OpenAlex Setup Guide. Research Memex. https://research-memex.org/docs/implementation/foundational-setup/openalex-setup-guide
@misc{docs-implementation-foundational-setup-openalex-setup-guide-2026,
author = {Xule Lin},
title = {OpenAlex Setup Guide},
year = {2026},
howpublished = {\url{https://research-memex.org/docs/implementation/foundational-setup/openalex-setup-guide}},
note = {ORCID: 0000-0001-7885-4194}
}one renderingthe source remains