Skip to main content
Glama

Server Details

Access the OpenAlex academic research catalog — 270M+ publications.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
cyanheads/openalex-mcp-server
GitHub Stars
7
Server Listing
@cyanheads/openalex-mcp-server

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsA

Average 4.5/5 across 5 of 5 tools scored.

Server CoherenceA
Disambiguation5/5

Each tool has a clearly distinct purpose: search, name resolution, citation graph walking, trend aggregation, and field discovery. No functional overlap.

Naming Consistency5/5

All tools follow the consistent pattern `openalex_verb_noun` using snake_case. Examples: `openalex_search_entities`, `openalex_resolve_name`.

Tool Count5/5

Five tools is ideal for the server's scope—covering search, resolution, citation analysis, trend analysis, and field metadata without being too sparse or overwhelming.

Completeness5/5

The tool set covers the core operations for OpenAlex: searching all entity types, resolving names to IDs, walking citation graphs, aggregating trends, and discovering valid fields. For a read-only API, this is comprehensive.

Available Tools

5 tools
openalex_describe_fieldsOpenalex Describe FieldsA
Read-onlyIdempotent
Inspect

List valid field names for an OpenAlex entity type and context (filter, group_by, or select). Use proactively before constructing a filter or group_by to avoid invalid-field 400 errors. Pass query to narrow the results by name similarity — useful when you have a partial or guessed field name.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryNoOptional partial or guessed field name to rank results by similarity. Pass the field you tried (e.g. "funder") to get the closest matches first. Omit to return all fields for the entity_type + context.
contextYesField usage context. "filter": fields accepted in the filter param. "group_by": fields accepted in group_by (same valid set as filter). "select": fields accepted in select.
entity_typeYesOpenAlex entity type to list fields for.

Output Schema

ParametersJSON Schema
NameRequiredDescription
totalYesTotal number of valid fields for this entity_type + context.
fieldsYesValid field names, ranked by similarity to query when provided.
contextYesContext queried (filter, group_by, or select).
entity_typeYesEntity type queried.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is clear. The description adds context about using query to narrow results but doesn't add significant behavioral details beyond that. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with purpose and usage guidance. Every sentence adds value without redundancy. Highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema exists and parameters are fully covered, the description is complete. It covers what the tool does, when to use it, why, and how the query parameter works, with no missing information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description explains the query parameter's purpose and the context enum values, but these are already described in the schema. It adds marginal value over the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists valid field names for an OpenAlex entity type and context, using a specific verb ('list') and resource. It distinguishes from siblings by mentioning proactive use to avoid 400 errors, which sets it apart from other tools like search or analysis.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly instructs to use proactively before constructing filters or group_by to avoid errors, and explains when to use the query parameter for partial field names. This provides clear guidance on when and why to invoke the tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

openalex_get_citation_graphOpenalex Get Citation GraphA
Read-onlyIdempotent
Inspect

Walk the citation graph one hop from a seed work. Direction picks the edge: incoming citations (cites), the seed's own references (cited_by), or OpenAlex's algorithmically-related works (related_to). Note: direction follows OpenAlex's filter convention, which inverts the common English reading — cites returns works that cite the seed; cited_by returns works the seed cites. Results use the works schema; combine with filters/sort to narrow further.

ParametersJSON Schema
NameRequiredDescriptionDefault
sortNoSort field. Prefix with "-" for descending. Common: "cited_by_count", "-publication_date". Default is OpenAlex relevance.
cursorNoPagination cursor from a previous response. Pass to get the next page.
selectNoOpenAlex work field names to return. Always returned: id, display_name. Defaults to the curated works select if omitted.
filtersNoAdditional filters to narrow the graph, same syntax as openalex_search_entities. Example: publication_year=">2020", is_oa="true". Do not include cites/cited_by/related_to — those are set by the `direction` parameter.
seed_idYesSeed work identifier. Accepts OpenAlex ID ("W2741809807"), DOI ("10.1038/nature12373" or full URL), PMID, or PMCID. Use openalex_resolve_name first if you only have a title.
per_pageNoResults per page (1-100). Default 25.
directionYes"cites": works that cite seed_id (incoming citations). "cited_by": works that seed_id cites (its reference list). "related_to": OpenAlex algorithmically-related works (~8-30 typical, may be empty for less-cited seeds).

Output Schema

ParametersJSON Schema
NameRequiredDescription
echoYesCompact echo of seed_id, direction, filters, sort — surfaces what was actually queried when no edges are returned.
metaYesResult metadata including pagination.
noticeNoRecovery guidance when no edges are returned — suggests verifying the seed_id, broadening filters, or trying a different direction. Absent when results are present.
resultsYesWorks on the citation graph in this direction.
totalCountYesTotal edges from seed_id in this direction across all pages.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already provide readOnlyHint, openWorldHint, and idempotentHint. The description adds valuable context: the inverted direction naming, that 'related_to' may be empty for less-cited seeds, and that results use the works schema. This goes beyond what annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two paragraphs, front-loaded with the core purpose. Every sentence is informative: the first paragraph covers the action and direction, the second explains the naming nuance and composability. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema, the description does not need to detail return values. It covers purpose, all parameter behaviors, caveats (direction inversion, related_to emptiness), and usage hints (combine with filters). This is complete for a graph-walking tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage, baseline is 3. The description adds meaning beyond the schema by clarifying the direction inversion ('cites returns works that cite the seed') and the typical size of related_to results. This helps avoid common misinterpretations.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'walk' and resource 'citation graph from a seed work', clearly distinguishing it from siblings like openalex_search_entities (free-text search) and openalex_analyze_trends (trend analysis). It precisely defines the scope as one-hop traversal.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the three direction options and their inverted convention, helping the user choose correctly. It also mentions combining with filters/sort. However, it does not explicitly state when to avoid this tool (e.g., for multi-hop traversal) or compare directly to alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

openalex_resolve_nameOpenalex Resolve NameA
Read-onlyIdempotent
Inspect

Resolve a name or partial name to an OpenAlex ID. Returns up to 10 matches with disambiguation hints. ALWAYS use this before filtering by entity — names are ambiguous, IDs are not. Also accepts DOIs directly for quick lookup.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesName or partial name to resolve. Also accepts DOIs for quick lookup.
filtersNoNarrow autocomplete results with filters. Example: restrict to a specific country or publication year range.
entity_typeNoEntity type to search. Omit for cross-entity search (useful when entity type is unknown).

Output Schema

ParametersJSON Schema
NameRequiredDescription
noticeNoRecovery guidance when no matches were found — echoes the query and suggests corrections. Absent when results are present.
resultsYesAutocomplete matches, up to 10.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate readOnlyHint, openWorldHint, and idempotentHint. The description adds that the tool returns up to 10 matches with disambiguation hints and accepts DOIs, providing useful behavioral context beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each adding distinct value: core function, return details, and usage guidance. No wasted words, well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers return limit, disambiguation, DOIs, and usage context. It doesn't detail output schema, but that is provided separately. Could mention behavior on no matches, but overall complete for a resolution tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage, baseline is 3. The description adds meaningful guidance for the query parameter by advising to use it before entity filtering and noting DOI acceptance. This enhances semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool resolves a name or partial name to an OpenAlex ID, specifies return limit and disambiguation hints, and mentions DOI acceptance. This is distinct from sibling tools like searching entities or analyzing trends.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises using this tool before filtering by entity, emphasizing that names are ambiguous while IDs are not. It also mentions DOI acceptance. However, it does not explicitly exclude scenarios where other tools like openalex_search_entities should be used instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

openalex_search_entitiesOpenalex Search EntitiesA
Read-onlyIdempotent
Inspect

Search, filter, sort, or retrieve by ID. Covers all OpenAlex entity types (works, authors, sources, institutions, topics, keywords, publishers, funders). Pass id to retrieve a single entity. Otherwise, use query and/or filters for discovery. Supports keyword search with boolean operators, exact phrase matching, and AI semantic search. Use openalex_resolve_name to resolve names to IDs before filtering. Searches and ID lookups return a curated set of fields by default; pass select to override with specific fields, or ["*"] for the full record.

ParametersJSON Schema
NameRequiredDescriptionDefault
idNoRetrieve a single entity by ID. Supports: OpenAlex ID ("W2741809807"), DOI ("10.1038/nature12373"), ORCID ("0000-0002-1825-0097"), ROR ("https://ror.org/00hx57361"), PMID ("12345678"), PMCID ("PMC1234567"), ISSN ("1234-5678"). When provided, other search/filter/sort params are ignored — but `select` still applies: the curated per-entity-type default is returned unless you pass `select` (use `["*"]` for the complete record). Use openalex_resolve_name to find the ID if unknown.
seedNoDeterministic seed for `sample`. Same seed + same filters = same results — pass when reproducibility matters. Has no effect (and is rejected) without `sample`.
sortNoSort field. Prefix with "-" for descending. Common: "cited_by_count", "-publication_date", "-relevance_score" (default when query present). Note: when combined with a keyword query, an explicit sort overrides relevance ranking entirely — top results may be highly cited but only tangentially on-topic. Use "-relevance_score" or omit sort to keep the most relevant results first. "-relevance_score" requires an active search via "query" or a "filter:search" filter — passing it without one will fail.
queryNoText search query. Supports boolean operators (AND, OR, NOT), quoted phrases ("exact match"), wildcards (machin*), fuzzy matching (machin~1), and proximity ("climate change"~5). Omit for filter-only queries.
cursorNoPagination cursor from a previous response. Pass to get the next page.
sampleNoReturn a random sample of this many entities matching the filters (1-100). Single page only — pagination via `cursor` is not supported with sampling. Overrides `per_page`. Useful for unbiased exploration: spot-checking filter correctness, stratified review prompts, or generating exploration sets without bias toward most-cited.
selectNoOpenAlex top-level field names to return. Always returned: `id`, `display_name` — additional fields you list are appended. A curated default per entity type applies to both searches and single-entity (`id`) lookups; pass field names to override it, or `["*"]` to retrieve the complete record (every field). Invalid field names produce an error identifying the rejected field. Example: ["doi", "authorships", "primary_topic"].
filtersNoFilter criteria as field:value pairs. AND across fields (multiple keys). OR within field: pipe-separate ("us|gb"). NOT: prefix "!" ("!us"). Range: "2020-2024". Comparison: ">100", "<50". AND within same field: "+"-separate. Use OpenAlex IDs (not names) for entity filters — resolve names first. Common keys: `openalex` (filter by entity ID, e.g. {"openalex": "W123|W456"}), `cites` (works citing a given work), `publication_year` (range "2020-2024"), `authorships.author.id`, `type`, `is_oa`.
per_pageNoResults per page (1-100). Default 25. Semantic search caps at 50 — when search_mode="semantic", set per_page ≤ 50 (also subject to a 1 req/sec rate limit upstream).
entity_typeYesType of scholarly entity to search.
search_modeNoSearch strategy. "keyword": stemmed full-text (default). "exact": no stemming, matches individual words (use quoted phrases for multi-word exact match). "semantic": AI embedding similarity (max 50 results, 1 req/sec).keyword

Output Schema

ParametersJSON Schema
NameRequiredDescription
echoYesCompact echo of the input criteria (entity_type, query, filters, sort, search_mode) — surfaces what was actually searched when results are empty.
metaYesResult metadata including pagination.
noticeNoRecovery guidance when results are empty — echoes the criteria and suggests how to broaden. Absent on successful result pages.
resultsYesOpenAlex entity objects passed through unchanged. Additional fields depend on entity_type and select.
totalCountYesTotal results matching the query/filters across all pages.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate readOnly, openWorld, and idempotent. Description adds context: id retrieval ignores other params, sort overrides relevance, semantic search has rate limits and caps. No contradictions. Could mention pagination default but already addressed via cursor param.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured and front-loaded. Every sentence adds value, though slightly verbose. Could be tightened but still effective for a complex tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 11 parameters, 1 required, output schema exists, and nested objects, the description thoroughly covers all aspects: search modes, filtering syntax, pagination, sampling, and edge cases. No gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage, baseline is 3. Description adds significant value: explains sort's relevance trade-off, per_page's semantic cap, various ID formats, seed's role with sample, and select's behavior with default vs full record. Exceeds baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Search, filter, sort, or retrieve by ID.' It covers all OpenAlex entity types and distinguishes from sibling tools like openalex_resolve_name, which is explicitly referenced for name resolution.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance: 'Use openalex_resolve_name to resolve names to IDs before filtering.' Also specifies when to use different search modes (keyword, exact, semantic) and that id lookups ignore other params. This helps the agent choose between this tool and others.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.