Skip to main content
Glama
academic-tools-mcp

academic-tools-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CACHE_DIRNoWhere the on-disk cache lives. Defaults to .cache/ beside the project..cache/
ARXIV_MAILTONoOptional email appended to the arXiv User-Agent.
MAX_PDF_BYTESNoCap on a single PDF download in bytes. Default 200000000 (~200 MB). Use none/off/disabled/0 to disable.200000000
PDF_CONVERTERNoPDF-to-markdown backend: mineru (default), marker, or a custom command template.mineru
DEBUG_REQUESTSNoSet to 1 to log every throttled GET to stderr.
CROSSREF_MAILTONoOptional email for Crossref's polite pool; can raise Crossref rate limits.
OPENALEX_MAILTONoOptional email appended to the OpenAlex User-Agent. Does not raise the rate tier.
OPENALEX_API_KEYNoOptional free OpenAlex API key. Raises the OpenAlex credit budget 10x.
WIKIPEDIA_MAILTONoOptional email appended to the Wikipedia User-Agent.
ENABLE_DEBUG_TOOLSNoSet to 1 to register the get_server_stats debug tool.
PDF_CONVERTER_VENVNoPath to a virtualenv to activate before running the PDF converter.
PDF_FAST_CONVERTERNoBackend for convert_paper(mode=fast): pdftotext (default), pymupdf, or a custom command.pdftotext
IMPORT_ALLOWED_DIRSNoos.pathsep-separated allowlist of directories import_paper may read from. Unset allows any local path.
PDF_CONVERT_TIMEOUTNoHard timeout in seconds for a PDF-to-markdown conversion. Default 1800. Use none/off/disabled/0 or a value <= 0 to disable.1800
DISABLED_TOOL_GROUPSNoComma-separated tool groups to disable at startup: paper, pipeline, graph, search, wikipedia, paperswithcode.
OPENCITATIONS_MAILTONoOptional email appended to the OpenCitations User-Agent.
ACADEMIC_TOOLS_ENV_FILENoExplicit path to the .env file to load. When set, it is the only candidate.
PDF_FAST_CONVERT_TIMEOUTNoHard timeout in seconds for fast PDF extraction. Default 120. Same disable rules as PDF_CONVERT_TIMEOUT.120
OPENCITATIONS_ACCESS_TOKENNoOptional free OpenCitations access token, sent in the authorization header.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Academic paper research: OpenAlex, arXiv, bioRxiv/medRxiv, Crossref, OpenCitations, ACL Anthology, Wikipedia, Papers with Code.

get_paper_metadata / _authors / _abstract / _bibtex take an arXiv ID, an ACL Anthology ID (P16-1160, 2023.acl-long.1) or URL, any DOI, a PMID or an OpenAlex work ID and route to the right provider; each response tags _source. A DOI the Anthology hosts answers from it. Both work everywhere a DOI does, including the graph tools — so an OpenCitations row with no doi is still chainable on its openalex. Batch many identifiers with get_papers_metadata.

PDF pipeline: download_pdf → convert_paper → get_paper_section or get_paper_markdown (get_paper_sections inspects the section index of an already-converted paper; convert_paper already returns sections and total_approx_tokens). Use get_paper_markdown when total_approx_tokens is small enough to read the paper in one call, or get_paper_section / find_in_paper for targeted section reading. download_pdf handles arXiv/bioRxiv/ACL; other DOIs need allow_oa_url=True (fetches only the OA URL OpenAlex reports) or import_paper with a file you fetched, which also takes pre-converted .md. convert_paper turns an arXiv paper's HTML, a bioRxiv/medRxiv paper's JATS XML, or an open-access PubMed Central paper's Europe PMC JATS XML into markdown in seconds, with no PDF needed; other papers need download_pdf first. convert_paper(mode='fast') is a seconds-long degraded fallback: plain text, no tables, equations, or headings. A real download drops cached markdown + sections; markdown from import_paper, arXiv HTML or bioRxiv JATS survives unless force_refresh=True. find_in_paper returns section + char_offset per hit, to chain into get_paper_section.

get_paper_updates checks a DOI for retraction and correction notices before you cite it; a false there means Crossref lists none, not that the paper stands.

References/citations: get_paper_references defaults to source='auto', which surveys Crossref and OpenCitations in parallel and serves page 1 from the best source (or call get_paper_references_count first). get_paper_citations defaults to source='opencitations' and also supports source='openalex' (sorted by cited_by_count or publication_date, works on landmark papers where OpenCitations 504s). Search tools return slim triage hits — chain to get_paper_metadata. search_openalex is the broad topic search and its hits are free to chain (by doi or openalex_id), except ACL Anthology papers, whose cache is Anthology-keyed; search_arxiv the field-scoped preprint one; search_crossref_by_title finds a DOI from a title, and warms the reference tools rather than get_paper_metadata. search_authors is the way into get_author when you have a person rather than one of their papers; chain its hits on openalex_id. autocomplete_openalex is the cheap way from a name to an OpenAlex ID — it is the route into get_institution, and the one OpenAlex search that spends no credit budget, though its hits are not cached. Prefer it to search_openalex when you know the name and want the identifier. search_wikipedia searches article text, not papers: use it to situate a concept, method or person, and read its did_you_mean before concluding a topic is absent.

Papers with Code (arXiv IDs, or DOIs / PMIDs / OpenAlex work IDs resolved to arXiv via OpenAlex): get_paper_code for repositories and HF artifacts, get_paper_catalog for tasks, methods and best leaderboard ranks, get_paper_evaluations for every reported result, get_pwc_task and get_benchmark_leaderboard for tasks and leaderboards, search_paperswithcode to find a paper. Its per-IP rate limit is tight: call sequentially, never in parallel, and after an error with retry_after_seconds make no Papers with Code call until that time passes.

Failures return {error, suggestion?}; transient ones (5xx, 429, timeout) carry retry hints.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_paper_codeA

Get linked code repositories, project pages, and Hugging Face artifacts on Papers with Code.

Returns arxiv_id, pwc_url, has_official_implementation, repository_count, repositories (official first, then by stars), repositories_truncated, project_pages, hf_models, hf_datasets, hf_spaces, and hf_artifact_counts. Shares one cached record with get_paper_catalog (calling both costs one request).

get_paper_catalogA

Get Papers with Code classification, lineage, and best leaderboard ranks.

Returns arxiv_id, pwc_url, title, published, tldr, conference, conference_url, conference_award, organizations, hf_authors, tasks, methods, introduced_benchmarks, introduced_frameworks, leaderboard_ranks, predecessors, and successors. Chain task slug → get_pwc_task; benchmark_slug → get_benchmark_leaderboard; get_paper_evaluations for all results.

get_paper_evaluationsA

Page through every benchmark evaluation reported by a paper on Papers with Code.

Each uncached page costs a rate-limited request; check total_results before paging far.

get_pwc_taskA

A research task from the Papers with Code taxonomy.

Returns {task_id, name, slug, description, keywords, parent_id, area_id, level, paper_count, benchmark_count, evaluation_count, research_trends}. parent_id is another task's ID and can be passed back to this tool. research_trends is editorial, with no fixed entry shape.

Errors: {error, suggestion}, plus not_found: true for an unknown task or retryable: true (with retry_after_seconds when rate-limited).

A paper's task slugs come from get_paper_catalog.

get_benchmark_leaderboardA

Get a benchmark's details and leaderboard on Papers with Code (best rank first).

Community-curated: cite the row's source paper, not the leaderboard. An uncached call costs two rate-limited requests (benchmark + page).

search_paperswithcodeA

Keyword search over Papers with Code (slim triage list; strictest rate limit).

Prefer one precise query over many pages. Chain arxiv_id into get_paper_code or get_paper_catalog.

get_paper_references_countA

Survey outgoing-reference counts across Crossref and OpenCitations in parallel.

Returns {doi, sources: {crossref, opencitations}}. A pageable: false flag on OpenCitations means the count is real but rows cannot be paged.

get_paper_referencesA

Page through outgoing references (bibliography) from Crossref or OpenCitations.

source='auto' surveys both on page 1 (biased toward Crossref for richer metadata) and echoes the winner in _source; pin source to _source when paging past page 1. Returns {_source, doi, total, page, page_size, has_more, references} (plus partial_failure if one provider errored).

get_paper_citations_countA

Survey incoming-citation counts across OpenCitations and OpenAlex in parallel.

Returns {doi, count, pageable, sources: {opencitations, openalex}}. count is OpenCitations' (null on error); get_paper_citations can page only when pageable is true. Cross-check OpenCitations 0 against OpenAlex.

get_paper_citationsA

Page through incoming citations from OpenCitations (default) or OpenAlex.

opencitations returns DOI-to-DOI links + self-citation flags (total: 0 means unindexed, not uncited). openalex returns sorted triage rows, warms the works cache, supports DOI-less W... IDs, and works on landmark papers where OpenCitations 504s. Call get_paper_citations_count first.

get_paper_metadataA

Get core metadata for a paper, auto-routed by identifier shape.

Returns {_source, _canonical_id, ...provider-native fields} across arXiv, bioRxiv/medRxiv, ACL Anthology, OpenAlex, and (with fallback_crossref on OpenAlex 404) Crossref. follow_published=True chains arXiv/bioRxiv preprints to OpenAlex's journal version (_source: openalex_via_*). Transient bioRxiv outages automatically fall back to OpenAlex with biorxiv_unavailable: true. Use get_papers_metadata for batches.

get_paper_versionsA

Get a preprint's license and revision history (arXiv ID or bioRxiv/medRxiv DOI only).

Returns {_source, _canonical_id, submitter, license, versions, version_count} (oldest first). Non-preprint shapes (including PMIDs/OpenAlex work IDs) are refused locally without a request — resolve via get_paper_metadata first.

get_papers_metadataA

Batch metadata fetch (cap 100) — same payload as get_paper_metadata plus _input.

Batches uncached OpenAlex DOIs/PMIDs/work IDs and arXiv IDs, warms singleton caches, and preserves input order with per-item errors. Does not support follow_published.

get_paper_authorsA

Get a page of the author list, auto-routed by identifier shape (in-memory paging).

Returns {_source, _canonical_id, author_count, page, page_size, has_more, authors, page_institutions, page_institution_count}. OpenAlex rows carry openalex_id (chain into get_author), position, is_corresponding, and institutions; bioRxiv carries author_corresponding fields.

get_paper_abstractA

Get a paper's plain-text abstract, auto-routed by identifier shape.

Returns {_source, _canonical_id, title, abstract} (abstract is null when unavailable).

get_paper_bibtexA

Generate a ready-to-paste BibTeX entry, auto-routed by identifier shape.

Returns {_source, _canonical_id, bibtex}.

get_authorA

Fetch an author's OpenAlex profile (chain from get_paper_authors).

Returns {name, openalex_id, orcid, works_count, cited_by_count, h_index, i10_index, current_institutions, top_topics, affiliations}. top_topics is [{name, count}], capped at 5; affiliations is the full history ([{institution, country_code, years}], years sorted). works_count / cited_by_count / h_index drift with time.

Errors: not found / bad ID → {error, suggestion} pointing at get_paper_authors or an ORCID.

get_institutionA

Fetch an institution's OpenAlex profile (chain from autocomplete_openalex).

Returns {name, openalex_id, ror, country_code, type, homepage_url, works_count, cited_by_count, h_index, i10_index, city, region, alternative_names, parent_institutions}. alternative_names merges OpenAlex's acronyms and alternative spellings, capped at 10; parent_institutions is the lineage above this one, so a hospital or campus names its university. works_count / cited_by_count / h_index drift with time.

Resolves what an affiliation string names, not where an author worked when a given paper was written — affiliations elsewhere are current, not paper-time.

Errors: not found / bad ID → {error, suggestion} pointing at autocomplete_openalex or a ROR.

get_paper_updatesA

Check a Crossref DOI for retraction/correction notices and preprint relations.

Returns {doi, retracted, updates, relations}. retracted covers retraction/withdrawal/removal; scan updates for corrections/expressions of concern. retracted: false means Crossref lists no notice, not a clean bill of health.

download_pdfA

Download and cache a paper's PDF (step 1 of the PDF pipeline).

Auto-downloads arXiv, bioRxiv/medRxiv, and ACL Anthology; other DOIs require allow_oa_url=True (fetches only OpenAlex's OA URL) or import_paper. A fresh download drops derived markdown/sections (except imported/HTML/JATS unless force_refresh=True).

convert_paperA

Convert a paper to markdown and index its sections (step 2 of the PDF pipeline).

Tries arXiv HTML, bioRxiv JATS, or (when no PDF is cached) Europe PMC JATS first (seconds, no PDF needed), else converts the cached PDF. Returns {sections, total_approx_tokens, sections_detected, cached, conversion_mode} — proceed straight to get_paper_section or get_paper_markdown. Full mode is serialized server-wide (concurrent calls return busy: True); mode="fast" is degraded plain text without the lock.

get_paper_sectionsA

Inspect the section index of an already-converted or imported paper (local, no network).

Returns {total_sections, total_approx_tokens, sections_detected, conversion_mode, sections}. Optional right after convert_paper, which already returns sections and total_approx_tokens.

get_paper_sectionA

Read a slice of a section's body. Final step of the PDF pipeline.

Returns: {index, title, content, offset, chars_returned, total_chars, approx_tokens, has_more, next_offset}. total_chars and approx_tokens describe the full section, not the slice.

Errors: not yet converted → guidance to run convert_paper. Unknown or ambiguous section title → error listing the available titles; an out-of-range index → the valid range. Markdown with no readable text → {error, suggestion, retryable: False}.

get_paper_markdownA

Read a slice of a converted paper's full markdown document.

Alternative to get_paper_section when you want the whole paper in one call rather than reading section-by-section (check total_approx_tokens from convert_paper or get_paper_sections first; for long papers or targeted lookup, prefer find_in_paper and get_paper_section).

Returns: {content, offset, chars_returned, total_chars, approx_tokens, has_more, next_offset}. total_chars and approx_tokens describe the full markdown document, not the slice.

Errors: not yet converted → guidance to run convert_paper. Offset beyond document length → {error}. Markdown with no readable text → {error, suggestion, retryable: False}.

import_paperA

Import a local .pdf or .md/.markdown file into the paper cache.

Routes into the provider namespace matching identifier (or manual for freeform labels). Markdown imports skip convert_paper and are indexed immediately.

list_cached_papersA

Inventory downloaded PDFs and converted markdown in the local cache.

Answers "what papers are already in my local cache?", whether each is downloaded-only or converted (with conversion_mode and total_approx_tokens), and total local disk usage. Cheap — local filesystem scan only, no network calls.

Returns {total_papers, converted_count, pdf_only_count, total_disk_bytes, page, page_size, has_more, papers: [{namespace, canonical_id, has_pdf, pdf_size_bytes, has_markdown, markdown_size_bytes, conversion_mode, total_approx_tokens}, ...]}. Chain canonical_id straight into get_paper_sections, get_paper_section, get_paper_markdown, find_in_paper, or convert_paper.

search_arxivA

Search arXiv preprints with field prefixes and boolean operators (slim triage list).

Returns {total_results, result_count, results}. Hits warm the cache so follow-up get_paper_metadata(arxiv_id) calls are free. arXiv serves only the first 10,000 hits per query — narrow the query rather than paging past.

search_crossref_by_titleA

Search Crossref by title/bibliographic string to discover a DOI (also covers bioRxiv).

Returns {total_results, result_count, results} and warms the Crossref cache (making follow-up get_paper_references(doi, source="crossref") free).

search_openalexA

Search or filter OpenAlex works (slim triage list; warms the works cache).

Supports free-text query, year or from_year/to_year, author_id (OpenAlex ID or ORCID — omit query to list an author's papers at 1/10th the credit cost), is_oa, sort, and page.

search_authorsA

Find an author by name on OpenAlex (slim triage list; warms get_author cache).

One name often matches multiple records — disambiguate via works_count, cited_by_count, last_known_institution, and orcid, then chain get_author(openalex_id).

autocomplete_openalexA

Fast typeahead from a name/title prefix to an OpenAlex ID (0 credits; uncached, max 10 hits).

Use instead of search_openalex when you know what a work/author/institution is called; chain into get_paper_metadata, get_author, or get_institution.

find_in_paperA

Find every occurrence of a query inside one converted paper.

Jumps to the part of a paper that discusses X instead of paging sections; search_cached_papers finds which paper mentions X.

Returns {query, paper_identifier, result_count, truncated, results: [{section_index, section, char_offset, match, snippet}, ...]}. Chain into get_paper_section(identifier, str(section_index), offset=char_offset); offsets align with that tool's stripped text. truncated means more matches exist than max_results returned. paper_identifier is the canonical cache key, which may differ from the spelling you passed (arXiv:2301.00001v2 → 2301.00001v2).

Errors: not converted yet → {error, suggestion} naming the pipeline. No matches is not an error — {result_count: 0, results: []}.

search_cached_papersA

BM25 keyword search across all locally converted papers (SQLite FTS5).

Answers "which cached paper mentioned X?". Chain hits via get_paper_section(canonical_id, str(section_index)) or find_in_paper. Pure keyword match (no synonyms); reports any unindexable files separately.

search_wikipediaA

Search the full text of Wikipedia articles. Returns a slim triage list.

Matches article content, not just titles, so a description of a topic finds it without naming its article. Use it to situate a concept, method or person encountered in a paper.

Returns {query, total_results, result_count, did_you_mean, results: [{title, url, snippet}, ...]}. total_results is Wikipedia's own match count, result_count what this call returned. snippet is the matched text as plain prose. did_you_mean is Wikipedia's spelling correction, null when it offers none — on zero hits it is the retry to make, not evidence the topic is absent. Pass a hit's title to get_wikipedia_summary for the article extract.

Errors: {error, suggestion} plus Wikipedia's verdict — retryable: false for a query it rejected, retryable: true for a transport or parse failure, with retry_after_seconds when the server advertises one.

get_wikipedia_summaryA

Fetch the lead extract and metadata of an English Wikipedia article.

Returns title, canonical_title, extract (empty on disambiguation pages), permalink (pinned to revision — cite this, not url), and wikibase_item (Wikidata QID).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
cached_papers_resourceMCP resource exposing the local downloaded/converted paper inventory as JSON.

TDQS

A3.9/5.0

Scored across 35 tools

Disambiguation4/5

The set is mostly cleanly partitioned by resource and action—metadata, references, citations, PDF pipeline, local cache, and search—with explicit chaining guidance in the descriptions. A few near-pairs remain, notably get_paper_sections vs get_paper_section vs get_paper_markdown and get_paper_metadata vs get_paper_abstract, but their descriptions generally draw clear boundaries.

Naming Consistency5/5

All tool names use snake_case with a predictable verb-noun style: get_*, search_*, convert_*, list_*, find_*, and import_*. Minor brand abbreviations like get_pwc_task and search_paperswithcode do not break the overall pattern, and the singular/plural paper-reading tools remain structurally consistent.

Tool Count2/5

At 35 tools, the surface is large and exceeds a comfortable single-server scope, even though it spans several genuine subdomains: Papers with Code, citation APIs, PDF conversion/local indexing, author lookup, and Wikipedia. The breadth is useful but the sheer count makes discovery and tool selection burdensome for an agent.

Completeness4/5

Coverage is unusually thorough for academic research: discovery and metadata, citation/reference traversal, author and institution lookup, PDF download/conversion/section reading, local import and search, and Wikipedia context. Only minor gaps exist, such as no dedicated venue/conference search or related-work recommendation flow, but core workflows have few dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues