Saltar al contenido
Volver a Skills

OpenAlex MCP

oo-openalex-mcp

Usa OpenAlex MCP desde Claude Code, Codex y otros agentes de IA, con las credenciales guardadas en OOMOL. 23 acciones, por ejemplo Search Works, Get Work, Resolve References.

OpenAlex MCP

Operate OpenAlex MCP through your OOMOL-connected account. This skill calls the openalex_mcp connector with the oo CLI; OOMOL injects credentials server-side, so you never handle raw tokens.

Running an action

Assume the user has already installed the oo CLI, signed in, and connected OpenAlex MCP. Do not run oo auth login or open the connection URL proactively — just run the action. Fall back to First-time setup only when a command actually fails with an auth or connection error.

1. Inspect the contract to get the authoritative input/output schema before building a payload:

oo connector schema "openalex_mcp" --action "<action_name>"

2. Run the action with a JSON payload that matches the input schema:

oo connector run "openalex_mcp" --action "<action_name>" --data '<json>' --json
  • --data takes a JSON object string or @path/to/file.json; omit it to send {}.
  • The response is { "data": ..., "meta": { "executionId": "..." } }; the execution id lives under meta.executionId.

Each action is listed below with a one-line description; actions that change state carry a [write] or [destructive] tag. Before constructing --data, fetch the action’s live schema with oo connector schema to get its authoritative input fields.

Available actions

  • analyze_works — Build a one-call profile of any set of works defined by a query and/or filters: an institution’s output, a funder’s portfolio, an author’s career, a topic, a country, a journal. Returns total works, open-access share by status, share of works in the top 10% and top 1% most-cited (field-normalized), counts by year and by type, and the top fields, topics, institutions, countries, sources, funders and authors, plus international and industry collaboration shares. Use it for research-office, library, and funder reporting questions (“summarize our 2024 research”, “how much of NIH-funded work at UW is open access”, “who does MIT collaborate with on AI”). Pick sections to keep the response small. Keyword queries only (no semantic mode). Each section costs one cheap API call.
  • calculate_works — Run an OQL calculation and get the calculated groups: split a set of works by one to three fields, named values, searches, conditions or bins, and calculate count, mean/median/sum/min/max of a number, percent of a yes/no field, or each group’s share. Write it as a pipeline: get works where <conditions>; then, group those works by <field>; finally, summarize using <measures>. For one row per author, institution, source, publisher, funder, country or topic, start with them and say which works count, e.g. get authors at University of British Columbia since 2022 who published works where title-abstract has kelp; then, summarize each author using count and mean FWCI (at reads the author’s own record; in [Asia](Q48) for institutions; then, group each author’s works by year for a further split). Or compare named things in one step, e.g. get works where topic is CRISPR and Genetic Engineering; then, compare institution Massachusetts Institute of Technology versus Stanford University versus Harvard University using count, mean FWCI, and percent open access. The full guide is the OQL reference in the server instructions (read_docs topic oql). Check a new query with check_oql first (free: limits with fixes, time estimate, price). Returns one row per group, keyed by the OQL words of each calculation (count, mean FWCI, …), nested splits under groups, the summary (summary.all for the whole starting set; with two or more splits, summary.splits with each split’s groups on their own, computed from the works: read these, never sum or average group rows), groups_count and next_page, the price, the canonical OQL and a reproduce_url. A query with no split or calculation gets then, summarize using count; a query that starts from authors, institutions, sources, topics, funders or publishers with no split lists them with their own fields. Retracted works are left out unless include_retracted=true or the query says otherwise.
  • check_oql — Free check of any OQL query before running it, the calculation pipelines above all: whether it is valid, every problem with its fix (a parse error, a fourth split, too many groups, too slow), the time estimate against the ~10-second budget, the price in credits and USD, and the canonical text with each entity’s name in brackets so you can confirm the IDs mean what you think. The query is checked as calculate_works would run it (retracted works left out unless include_retracted=true). When it is not valid, apply the fix and check again.
  • claim_author_profile — Claim an OpenAlex author profile for the connected account so it can be curated (one per account). Confirm the profile with the user first (show its name, institutions, works count and a few titles from search_works). Approved instantly if any verified email on the account is from a university, research institute or government agency (get_my_account reports claim_eligibility). Otherwise, first suggest the user add their university email in Settings at openalex.org (they keep their current email); that makes the claim instant. If the profile has their ORCID iD, they can sign in with ORCID on the profile page instead. If neither works, ask for a link (or DOI) to one of their papers ON THIS PROFILE that lists their OpenAlex account email. A web page alone never passes, not even their page on a university’s website, and neither does a page with only their name. The claim is checked automatically within minutes; if it fails, the result says what is missing and the user can send a new link by calling this again. [write]
  • create_alert — Email the user new works that match a search, daily, weekly or monthly (saved as a saved search with an alert, visible on openalex.org under My alerts). Build the search with search_works first and pass its OQL (or an api.openalex.org works URL). The first email covers works added from now on, and an email goes out only when there are new works. Returns the alert and the newest works the search matches today: show the user a few so they know what will arrive. Refusals come back with a code: works_collection_cannot_alert, collection_type_mismatch (the message names the right field), semantic_search_cannot_alert, search_is_empty, alert_requires_works_search, collection_not_found, saved_search_exists (the user already saved this search, maybe without an alert: turn it on with update_alert on the existing id). [write]
  • delete_alert — Delete one of the user’s alerts together with its saved search. To stop the emails but keep the saved search, use update_alert with frequency “off” instead. Confirm with the user first. [destructive]
  • find_candidate_works — Works that are probably this author’s but are not on their profile, from up to three sources: (1) name: the website’s name ladder over raw bylines (as typed, reversed, initials, then looser word order) with a surname-plus-given-name gate, ranked by how much of the name the byline matches; (2) orcid: works carrying the ORCID in OpenAlex plus works listed on the public ORCID record (readable without login unless the author made them private); (3) siblings: other author profiles with the same name, with overlap signals, which may be duplicates of this person. Every work reports this_authorship (the byline that would be attached, with affiliations and coauthors) so the user can be asked about anything unclear. Pass alternate names (from get_my_account, the profile, or a CV) one call at a time; for common names add institution, topic or year filters.
  • find_experts — Find the researchers who work most on a topic, optionally at an institution or in a country, ranked with evidence: how many matching works, how many in the last few years, h-index, current institution, topic share, and up to five matching titles each. Use it for expert finding, reviewer and panel search (exclude_coauthors_of + exclude_institution_ids for conflicts), collaborator search (institution_ids), and “who at my university works on X” (institution_ids with institution_scope=“current”). Describe the topic as a Boolean keyword query (AND, OR, NOT, “quoted phrases”, wildcards*): the census then covers every matching work in OpenAlex. Turn a descriptive paragraph into synonyms grouped with OR and concepts joined with AND rather than using semantic mode, which sees only the 50 most relevant works. Topic IDs (topic_ids) are coarse; text is usually better. Pass an OQL selection in oql for full control. One call replaces the search_entities / group_works / get_entity chain and costs three to five API requests.
  • find_keywords — Find the OpenAlex keywords for a topic, the first step of a thorough (high-recall) search. OpenAlex tags works with keywords (e.g. microplastics, human-health, antimicrobial-resistance) that also catch works using other wordings, other languages, or no abstract at all. search_works and keyword_search already match the keywords that the search’s own phrases name; use this to find keywords that mean a facet under other names. Give the topic as a sentence (description) and, for better coverage, each facet’s main phrase and synonyms (phrases). Returns candidate keywords with a match score, how many works carry each, and their three most-cited titles, so you can keep the ones that mean each facet and drop the rest. Then pass them to keyword_search. Costs about $0.01 (one /text/keywords call) plus a few cheap lookups.
  • get_entity — Fetch the full profile of one non-work entity by OpenAlex ID, or by ORCID (authors), ROR (institutions), or ISSN (sources). Includes works and citation counts, h-index, works/citations by year, top topics, affiliation history (authors), and identifiers.
  • get_my_account — Who is connected: name, email addresses (and which are verified), which API key this connection spends (personal or organization), the author profile this account has claimed (with a compact summary: names, institutions, topics, works count), the claim’s status, and claim_eligibility: “instant” means a claim from this account is approved immediately (a verified academic, institutional or government email), “review” means the claim needs ORCID sign-in or a link to one of the user’s papers on the profile that lists the account email (checked automatically within minutes; a web page alone never passes). Call this first for anything about the user’s own profile.
  • get_work — Fetch the full record for one scholarly work by OpenAlex ID (W2741809807), DOI (10.7717/peerj.4375 or a doi.org URL), PMID, or PMCID. Returns the authors with affiliations and ORCIDs (all of them up to 100; a bigger collaboration lists the first 100, the last and the corresponding authors, numbered, with authors_total), the full abstract, venue, open-access links, topics, keywords, funding, citations in every year the API counts, and related works.
  • group_works — Aggregate works matching a query and/or filters, counting them by one dimension: author, institution, institution_type, country, source (journal), publisher, funder, year, type, topic, subfield, field, domain, keyword, oa_status, is_oa, top_10_percent, top_1_percent, language, or sdg. Answers “who are the top authors on X”, “which institutions publish most on Y”, “how has research on Z grown per year”, “which journals carry the most papers on W”, “who does institution A collaborate with” (institution_ids + group_by institution). Returns each group’s ID, display name and work count, sorted by count. Keyword/exact queries aggregate over all matching works; semantic queries aggregate over the 50 most relevant works only. For two or three dimensions in one call (by year and country, by field and open access status) or numbers beyond the count (mean FWCI, percent open access, share), use calculate_works instead of one group_works call per value. Accepts an OQL query in oql for complex selections (the group by is added from group_by if the query has none). Note: group_by author over institution-filtered works also counts co-authors from other institutions; for “researchers AT institution X on topic Y” use search_entities with institution_ids and topic_ids instead.
  • keyword_search — Build and measure a thorough search: each facet matches on its text (over titles, abstracts and the keywords the text names) OR on the keywords you chose for it, and all facets must match. Returns the combined OQL with a reproduce_url, and counts for every part: the search alone (what search_works finds for the facets’ text), what the chosen keywords add, the combined total, and each facet’s text, keyword and keyword-only counts, plus random samples of the whole search and of the works found only through keywords, so you can check precision. Filters (open access, years, types, language, any OQL condition) apply to every count. Use after find_keywords; then list the results with search_works(oql=<combined oql>). Every facet should have text; give a facet keyword_ids only when a keyword really means it.
  • list_citations — List works connected to a given work: direction=“citing” (default) returns works that cite it; “references” returns the works it cites; “related” returns OpenAlex’s related works (similar topic and citation neighbourhood). Useful for tracing influence, finding follow-up studies, or reading a paper’s bibliography. Supports the same year/type/open-access filters as search_works.
  • list_my_alerts — The user’s email alerts: each saved search that emails new matching works, with its frequency, when it last sent and when it next checks. Set include_saved_searches to also list saved searches with no alert. Use it to answer “what alerts do I have?” or to find an id to change or delete.
  • list_my_curations — The corrections this account has submitted and their status: pending (waiting for the nightly refresh), applied (live), superseded (a newer correction to the same item, by this user or someone else, superseded it, so it will never apply; superseded_by names that correction), or timed_out (not seen live after a week; rechecked daily). Each row carries a plain-language description. Use it to report progress or to find a curation_id to cancel.
  • read_docs — Return a canonical OpenAlex documentation page, bundled from help.openalex.org: oql (OQL: the OpenAlex Query Language (overview)); oql_spec (OQL specification (normative, every rule and error code)); api_quick_reference (OpenAlex API quick reference for agents (entities, filters, syntax)); fixing_authors (Fixing author profiles: claiming, adding and removing works, merging duplicates); author_curation (Author curation API: the exact curation payloads and how they are applied). Use oql_spec when an OQL query is rejected and the fix-it isn’t enough, api_quick_reference for entity fields and filter names, and fixing_authors before curating a profile.
  • resolve_references — Check up to 25 references against OpenAlex in one call and report what each one matched. Each item may be a DOI, PMID, OpenAlex ID, or a free-text citation (e.g. “Piwowar et al. (2018) The state of OA. PeerJ”). IDs are looked up exactly; free-text citations are matched on title with a confidence rating (exact, likely, uncertain, none). Use it to verify a bibliography, detect fabricated or garbled citations, fill in missing DOIs, or turn a reading list into OpenAlex IDs.
  • search_entities — Find OpenAlex entities by name and/or filters, returning IDs plus a short profile. Entity types: authors (researchers), institutions (universities, labs, companies), sources (journals, conferences, repositories), topics (research areas), funders, publishers. Use it to resolve a name to an ID before filtering works, or as a directory. It is the right tool for expert finding: authors currently at an institution working on a topic (institution_ids + topic_ids, sort by works_count or h_index; each result reports works_in_topic), journals in a field that are open access (sources + topic_ids + is_oa), institutions of a type in a country. Author results include current institutions, h-index and top topics so the right person can be picked when names collide.
  • search_works — Search OpenAlex for scholarly works (papers, preprints, books, datasets). mode=“keyword” (default) supports Boolean syntax: AND, OR, NOT, “quoted phrases”, parentheses. By default it searches titles, abstracts and keywords: a phrase in the query that names an OpenAlex keyword also matches works carrying that keyword (search_in to change). Relevance-sorted results are reranked by default: the top 100 are reordered by how well each work answers the query, so the first results are the most on-topic ones and rerank_score says how sure the reranker is (rerank=false to turn it off). mode=“semantic” matches by meaning and is best for descriptive or long queries (up to 2,000 characters; max 50 results; no min_citations/countries filters). mode=“exact” matches words without stemming. Omit query to list works by filters alone (e.g. everything by an author, institution or funder). For anything the structured parameters can’t express (nested Boolean groups across fields, exclusions, proximity, exact phrases, wildcards) pass an OQL query in oql instead; the OQL reference is in the server instructions and at https://help.openalex.org/access/oql/. Set preview=true to get only the result count, the canonical OQL and a small sample, which is the cheap way to tune a query before running it. Every response includes the canonical OQL and a reproduce_url. Returns compact records: title, year, authors (first 5), venue, citations, FWCI, open-access link, primary topic, truncated abstract. Use get_work for a full record.
  • submit_curations — Submit corrections to the user’s claimed author profile as OpenAlex curations, up to 100 per call: add_work (attach a byline on a work to the profile), remove_work (detach the profile from a work), set_display_name, set_full_name (the name used to match future works), set_orcid, remove_orcid, and cancel (withdraw a pending curation). Every correction is reversible by the opposite action and each item succeeds or fails on its own. Only submit what the user has agreed to: propose removes and adds with the evidence first, ask about anything that does not clearly fit. Adds are capped at 1,000 per rolling 24 hours. Curations apply on the nightly data refresh and are live within about two days; track them with list_my_curations. Do not re-check in minutes and conclude they failed. [destructive]
  • update_alert — Change one of the user’s alerts: how often it emails (daily, weekly, monthly), or “off” to stop the emails but keep the saved search; or rename it. Turning an alert back on for a saved search also uses this. Ids come from list_my_alerts. [write]

Safety

  • Untagged actions are reads (get / list / search) — safe to run directly.
  • Actions tagged [write] change OpenAlex MCP state — confirm the exact payload and effect with the user before running.
  • Actions tagged [destructive] remove or overwrite data — always confirm the target and get explicit approval first.

First-time setup

These are one-time steps — do not repeat them on every call. Run a step only when a command fails for the matching reason.

  • oo: command not found — install the oo CLI (other platforms: https://cli.oomol.com/install-guide.md):

    curl -fsSL https://cli.oomol.com/install.sh | bash    # macOS / Linux
    
    irm https://cli.oomol.com/install.ps1 | iex           # Windows PowerShell
    
  • Not signed in / authentication error — sign in to your OOMOL account once:

    oo auth login
    
  • scope_missing / credential_expired / app_not_ready / app_not_found — OpenAlex MCP is not connected, or the connection expired or lacks a scope. Connect once (auth type: OAuth2) at:

    https://console.oomol.com/connections/openalex_mcp
    
  • OOMOL_INSUFFICIENT_CREDIT — OOMOL billing stop. Recharge at https://console.oomol.com/billing/token-recharge before retrying.

  • HTTP 402 without OOMOL_INSUFFICIENT_CREDIT — the third-party account itself has no active plan or credit. Report the provider error message as is; do not ask the user to recharge OOMOL.

Resources