Skip to main content
Glama
ChinaRxiv MCP Server

ChinaRxiv MCP Server

by jorgeguberte

ChinaRxiv MCP Server

FastMCP server for the ChinaRxiv API.

Tools

  • search_papers

  • get_paper_detail

  • get_paper_full_text

  • get_paper_figures

  • download_paper_pdf

  • list_subjects

  • list_publications

  • get_api_stats

  • list_bulk_exports

  • health_check

Related MCP server: academic-mcp

Agent-friendly behavior

  • list_subjects(q, limit, offset, cache_bust, api_email) filters and paginates locally. Upstream is cached for 1 hour.

  • list_publications(q, limit, offset, cache_bust, api_email) lists journal keys accepted by the publication search filter. Upstream is cached for 1 hour.

  • download_paper_pdf(paper_id, include_base64, api_email) returns metadata by default: URL, content type, byte size, SHA-256 checksum, and a future resource URI. It only includes base64 when include_base64=true.

  • search_papers(...) supports the official field, date, availability, source, language, and publication filters. Pagination uses cursor.

  • Most tools accept optional api_email to override CHINARXIV_EMAIL for the upstream X-API-Email header.

  • API rate-limit headers are returned as rate_limit metadata when provided upstream.

  • Cache TTLs: subjects/publications 1h, stats 10min, bulk exports 6h, paper detail/text/figures/pdf 24h.

Tests

uv run pytest

Configuration

Create your local environment file from the provided example:

Copy-Item .env.example .env

Then edit .env with the values for your environment. The server loads this file automatically on startup. Variables already defined in the process environment take precedence over .env.

Local stdio

uv run python server.py

Docker

docker build -t mcp-chinarxiv .
docker run --rm -i --env-file .env mcp-chinarxiv

Hermes

If Hermes supports MCP over HTTP, run the container as a local service:

docker run -d --name mcp-chinarxiv -p 8765:8765 --env-file .env mcp-chinarxiv uv run fastmcp run server.py:mcp --transport http --host 0.0.0.0 --port 8765

Then add this server URL in Hermes:

{
  "mcpServers": {
    "chinarxiv": {
      "url": "http://127.0.0.1:8765/mcp"
    }
  }
}

If Hermes expects stdio MCP servers, let Hermes launch Docker directly:

{
  "mcpServers": {
    "chinarxiv": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "--env-file",
        ".env",
        "mcp-chinarxiv"
      ]
    }
  }
}

Environment

  • CHINARXIV_BASE_URL: defaults to https://chinarxiv.org

  • CHINARXIV_EMAIL: email sent in the upstream X-API-Email header

  • CHINARXIV_TIMEOUT: defaults to 30

  • CHINARXIV_USER_AGENT: defaults to mcp-chinarxiv/0.1

Available Tools

10 tools
download_paper_pdfC
Read-only

Download an English paper PDF, following the upstream redirect and returning file metadata.

Inputs: paper_id (required), include_base64, api_email. Returns: object

get_api_statsC
Read-only

Get ChinaRxiv API statistics.

Inputs: cache_bust, api_email. Returns: object

get_paper_detailB
Read-only

Get ChinaRxiv paper metadata/details by paper ID.

Inputs: paper_id (required), api_email. Returns: object

get_paper_figuresC
Read-only

Get figure metadata or extracted figures for a ChinaRxiv paper.

Inputs: paper_id (required), api_email. Returns: object

get_paper_full_textA
Read-only

Get full text for a ChinaRxiv paper by paper ID. Returns markdown when the API provides it.

Inputs: paper_id (required), api_email. Returns: object

health_checkC
Read-only

Check ChinaRxiv API health.

Inputs: api_email. Returns: object

list_bulk_exportsA
Read-only

List available ChinaRxiv bulk exports. The upstream API documents this as rate limited.

Inputs: cache_bust, api_email. Returns: object

list_publicationsC
Read-only

List journals/publications with translated papers.

Inputs: q, limit, offset, cache_bust, +1 more. Returns: object

list_subjectsC
Read-only

List ChinaRxiv subjects.

Inputs: q, limit, offset, cache_bust, +1 more. Returns: object

search_papersC
Read-only

Search and filter papers in the unified ChinaRxiv/RussiaRxiv corpus.

Inputs: q, search_field, subject, from_date, +10 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: downloading PDFs, retrieving metadata, full text, figures, searching, listing various entities, and health/stats. No two tools have overlapping purposes.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (e.g., download_paper_pdf, get_paper_detail, list_subjects). Minor exception like health_check still fits the pattern.

    Tool Count5/5

    With 10 tools, the server is well-scoped for a preprint repository access tool. Each tool serves a clear purpose without unnecessary duplication.

    Completeness4/5

    Core operations for finding and retrieving papers are covered: search, metadata, full text, figures, PDF download. Minor gaps like browsing by author or getting recent papers are missing but search can partially compensate.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables AI agents to search and retrieve academic papers from China National Knowledge Infrastructure (CNKI), supporting various search types including subject, keyword, author, and DOI lookups.
      3
      21
      -
    • A
      license
      A
      quality
      D
      maintenance
      Unified academic search MCP server that searches open literature (arXiv, bioRxiv, medRxiv, PMC), CNKI, and Web of Science, with browser-backed authentication, local paper library, and export to multiple formats.
      21
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying bioRxiv and medRxiv preprints, including metadata, publication status, and submission counts, through natural language or direct tool calls.
      66 npm
      MIT