Skip to main content

AI4Scholar MCP

English | 中文

An MCP server for academic paper search, download, and analysis. Connects LLM clients (Claude Desktop, etc.) to arXiv, PubMed, Semantic Scholar, bioRxiv, and medRxiv — with citation tracking, author lookup, and paper recommendations.

License Python


Tools (28)

For detailed parameters and usage examples, see Tools Reference.

Platform Tools Capabilities
arXiv search_arxiv, download_arxiv, read_arxiv_paper Search, download PDF, extract text
PubMed search_pubmed, get_pubmed_paper_detail, get_pubmed_citations, get_pubmed_related Search, paper detail, citations, related papers
Semantic Scholar search_semantic, download_semantic, read_semantic_paper, get_semantic_citations, get_semantic_references, search_semantic_authors, get_semantic_author_papers, get_semantic_recommendations, get_semantic_recommendations_for_paper, search_semantic_snippets Search, download PDF, extract text, citation graph, author search, recommendations, full-text snippet search
Google Scholar search_google_scholar Search with year filtering
bioRxiv search_biorxiv, download_biorxiv, read_biorxiv_paper Search, download PDF, extract text
medRxiv search_medrxiv, download_medrxiv, read_medrxiv_paper Search, download PDF, extract text
General download_pdf_by_doi Download PDF by DOI (supports campus network institutional access)
Auto-Cite auto_cite Automatically annotate academic text with citations and references
Nano Draw nano_generate, nano_edit AI scientific figure generation, editing, style transfer, multi-image composition

Note: PDF download tools (download_*, download_pdf_by_doi) are only available in local mode (stdio). In remote SSE mode, only search and text extraction are supported. See Local Mode Guide for setup instructions.


Installation

Quick Start

uv add ai4scholar-mcp

Configure Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on Mac):

{
  "mcpServers": {
    "ai4scholar_server": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/your/ai4s-mcp",
        "-m",
        "ai4scholar_mcp.server"
      ],
      "env": {
        "AI4SCHOLAR_API_KEY": "your-api-key"
      }
    }
  }
}

Replace /path/to/your/ai4s-mcp with your actual path. AI4SCHOLAR_API_KEY is required for PubMed and Semantic Scholar tools.

Local Usage (stdio)

Install via pip and run locally. Supports PDF download, and on campus networks you can leverage institutional access for paywalled papers.

pip install ai4scholar-mcp

For detailed setup instructions (Cursor, Claude Desktop, Claude Code, VS Code, Gemini CLI, TRAE, etc.), see Local Mode Guide.

Remote Usage (SSE)

No installation required — connect directly to the hosted SSE server using your ai4scholar.net API key.

Cursor

Go to Settings → MCP and add a new server. Or edit .cursor/mcp.json in your project:

{
  "mcpServers": {
    "ai4scholar": {
      "url": "https://mcp.ai4scholar.net/sse",
      "headers": {
        "Authorization": "Bearer <your-ai4scholar-api-key>"
      }
    }
  }
}

TRAE

Go to MCP → Add → Manual Setup, paste the following JSON:

{
  "mcpServers": {
    "ai4scholar": {
      "type": "sse",
      "url": "https://mcp.ai4scholar.net/sse",
      "headers": {
        "Authorization": "Bearer <your-ai4scholar-api-key>"
      }
    }
  }
}

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "ai4scholar": {
      "url": "https://mcp.ai4scholar.net/sse",
      "headers": {
        "Authorization": "Bearer <your-ai4scholar-api-key>"
      }
    }
  }
}

Claude Code

Recommended: use stdio mode (requires installation):

pip install ai4scholar-mcp
claude mcp add ai4scholar --scope user --transport stdio -e AI4SCHOLAR_API_KEY=<your-ai4scholar-api-key> -- python -m ai4scholar_mcp.server

Note: --scope user makes the config global across all projects. Claude Code's SSE mode has a known issue, so stdio is recommended.

Cherry Studio

  1. Go to Settings → MCP Servers → Add Server
  2. Select type: SSE
  3. URL: https://mcp.ai4scholar.net/sse
  4. Headers: Authorization=Bearer <your-ai4scholar-api-key>
  5. Save and enable the server

Chatbox

Edit the config file (~/.config/chatbox/config.json on Linux/Mac, %APPDATA%\chatbox\config.json on Windows), and add to mcpServers:

{
  "mcpServers": {
    "ai4scholar": {
      "url": "https://mcp.ai4scholar.net/sse",
      "headers": {
        "Authorization": "Bearer <your-ai4scholar-api-key>"
      }
    }
  }
}

Dify

  1. Go to Tools → MCP → Add MCP Server (HTTP)
  2. Fill in:
    • Server URL: https://mcp.ai4scholar.net/sse
    • Name: ai4scholar
    • Headers: Authorization: Bearer <your-ai4scholar-api-key>
  3. Save. The tools will be available in your Workflows and Agents.

Gemini CLI

Method 1 — Run in your terminal:

gemini mcp add --transport sse ai4scholar https://mcp.ai4scholar.net/sse --header "Authorization: Bearer <your-ai4scholar-api-key>"

Method 2 — Edit ~/.gemini/settings.json (or project-level .gemini/settings.json):

{
  "mcpServers": {
    "ai4scholar": {
      "url": "https://mcp.ai4scholar.net/sse",
      "headers": {
        "Authorization": "Bearer <your-ai4scholar-api-key>"
      }
    }
  }
}

Kimi Code

Method 1 — Run in your terminal:

kimi mcp add --transport http ai4scholar https://mcp.ai4scholar.net/sse \
  --header "Authorization: Bearer <your-ai4scholar-api-key>"

Method 2 — Edit ~/.kimi/mcp.json:

{
  "mcpServers": {
    "ai4scholar": {
      "url": "https://mcp.ai4scholar.net/sse",
      "headers": {
        "Authorization": "Bearer <your-ai4scholar-api-key>"
      }
    }
  }
}

Verify the connection with kimi mcp test ai4scholar.

OpenCode

Edit your project opencode.json (or global config ~/.config/opencode/opencode.json), add to the mcp object:

{
  "mcp": {
    "ai4scholar": {
      "type": "remote",
      "url": "https://mcp.ai4scholar.net/sse",
      "enabled": true,
      "oauth": false,
      "headers": {
        "Authorization": "Bearer <your-ai4scholar-api-key>"
      }
    }
  }
}

Note: "oauth": false disables automatic OAuth detection so it uses the Bearer token from headers directly.

Verify with opencode mcp debug ai4scholar.

CC-Switch

CC-Switch is a desktop configuration manager for Claude Code / Codex / Gemini CLI with a built-in MCP management panel:

  1. Click the MCP button in the top-right corner
  2. Add a server and select SSE as the transport type
  3. Fill in:
    • URL: https://mcp.ai4scholar.net/sse
    • Headers: Authorization: Bearer <your-ai4scholar-api-key>
  4. Choose the clients to sync (Claude Code / Gemini CLI, etc.) and enable

Replace <your-ai4scholar-api-key> with your own API key from ai4scholar.net.

OpenClaw

Edit ~/.openclaw/config.json and add to mcpServers:

{
  "mcpServers": {
    "ai4scholar": {
      "url": "https://mcp.ai4scholar.net/sse",
      "headers": {
        "Authorization": "Bearer <your-ai4scholar-api-key>"
      }
    }
  }
}

For Development

git clone https://github.com/literaf/ai4s-mcp.git
cd ai4s-mcp
uv venv && source .venv/bin/activate
uv add -e .

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add new platforms in academic_platforms/, update tests in tests/
  4. Submit a Pull Request

License

MIT License. See LICENSE for details.

Metadata

Release files for ai4scholar-mcp 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai4scholar-mcp 0.4.0
File Size Uploaded Provenance Actions
ai4scholar_mcp-0.4.0.tar.gz 281.7 kB With provenance Details for ai4scholar_mcp-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai4scholar-mcp 0.4.0
File Interpreter ABI Platform Actions
ai4scholar_mcp-0.4.0-py3-none-any.whl Python 3 none any Details for ai4scholar_mcp-0.4.0-py3-none-any.whl

Total release size: 330.5 kB

Release files / ai4scholar_mcp-0.4.0.tar.gz

Download URL ai4scholar_mcp-0.4.0.tar.gz
Size 281.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0442fa023f7e6e24c113dd086c0c4a89fd50579c1ce3d0a978b943de1708a27d
BLAKE2b-256 checksum
How to use checksums
b49dfff83c6a9e34ee6d86e36a38c85cc0f3532dd4b9853ee65c531ce280a43f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 22, 2026.

Transparency log

Release files / ai4scholar_mcp-0.4.0-py3-none-any.whl

Download URL ai4scholar_mcp-0.4.0-py3-none-any.whl
Size 48.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b66850c6233b3ad7304932c5c8073393649099405048d2176205575545f3a5ce
BLAKE2b-256 checksum
How to use checksums
a583d068ae1dabb3692cc3937a9037f1c5f444c7d39a29e3276c0e11a5f138f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 22, 2026.

Transparency log

Security for ai4scholar-mcp 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ai4scholar_mcp-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page