A MCP server for searching and downloading academic papers from multiple sources.
Project description
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.
Tools (24)
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 |
Search, download PDF, extract text |
get_semantic_citations, get_semantic_references |
Citation graph traversal | |
search_semantic_authors, get_semantic_author_papers |
Author search & paper list | |
get_semantic_recommendations, get_semantic_recommendations_for_paper |
Paper recommendations | |
search_semantic_snippets |
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 |
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-mcpwith your actual path.AI4SCHOLAR_API_KEYis required for PubMed and Semantic Scholar tools.
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>"
}
}
}
}
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
Run in your terminal:
claude mcp add --transport http ai4scholar https://mcp.ai4scholar.net/sse --header "Authorization: Bearer <your-ai4scholar-api-key>"
Note: Claude Code currently has a known issue where custom Authorization headers are ignored for remote MCP servers. Until this is fixed, please use Claude Desktop or other clients instead.
Cherry Studio
- Go to Settings → MCP Servers → Add Server
- Select type: SSE
- URL:
https://mcp.ai4scholar.net/sse - Headers:
Authorization=Bearer <your-ai4scholar-api-key> - 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
- Go to Tools → MCP → Add MCP Server (HTTP)
- Fill in:
- Server URL:
https://mcp.ai4scholar.net/sse - Name:
ai4scholar - Headers:
Authorization: Bearer <your-ai4scholar-api-key>
- Server URL:
- 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": falsedisables automatic OAuth detection so it uses the Bearer token from headers directly.
Verify with opencode mcp debug ai4scholar.
Replace
<your-ai4scholar-api-key>with your own API key from ai4scholar.net.
For Development
git clone https://github.com/literaf/ai4s-mcp.git
cd ai4s-mcp
uv venv && source .venv/bin/activate
uv add -e .
Contributing
- Fork the repository
- Create a feature branch
- Add new platforms in
academic_platforms/, update tests intests/ - Submit a Pull Request
License
MIT License. See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai4scholar_mcp-0.2.2.tar.gz.
File metadata
- Download URL: ai4scholar_mcp-0.2.2.tar.gz
- Upload date:
- Size: 257.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
848660fea40c4227a9aa01a39e00771844fbd06e2e45d552df2e0e44343e77c7
|
|
| MD5 |
fb0681fba7c11b4001119aa19cc6e75c
|
|
| BLAKE2b-256 |
7b42c5cce98ecfeac1ec1ba8c2117aa56dcd69614986185543e883ca94f11e68
|
Provenance
The following attestation bundles were made for ai4scholar_mcp-0.2.2.tar.gz:
Publisher:
publish.yml on literaf/ai4s-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai4scholar_mcp-0.2.2.tar.gz -
Subject digest:
848660fea40c4227a9aa01a39e00771844fbd06e2e45d552df2e0e44343e77c7 - Sigstore transparency entry: 979714836
- Sigstore integration time:
-
Permalink:
literaf/ai4s-mcp@6ec3bf253029742f6015648f2d3e83eedda077a4 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/literaf
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ec3bf253029742f6015648f2d3e83eedda077a4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ai4scholar_mcp-0.2.2-py3-none-any.whl.
File metadata
- Download URL: ai4scholar_mcp-0.2.2-py3-none-any.whl
- Upload date:
- Size: 38.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bb6868e91a59077d6e27314041f82c1c90e50f68baeed1c7b9e5e5d881fde01
|
|
| MD5 |
6d1f5e9404fc81aa7472719f64edf278
|
|
| BLAKE2b-256 |
8140d4432b2b4cc555fdda514ff542ff7cf0f98fdb46659a55e737e1e7d1162e
|
Provenance
The following attestation bundles were made for ai4scholar_mcp-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on literaf/ai4s-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai4scholar_mcp-0.2.2-py3-none-any.whl -
Subject digest:
0bb6868e91a59077d6e27314041f82c1c90e50f68baeed1c7b9e5e5d881fde01 - Sigstore transparency entry: 979714939
- Sigstore integration time:
-
Permalink:
literaf/ai4s-mcp@6ec3bf253029742f6015648f2d3e83eedda077a4 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/literaf
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ec3bf253029742f6015648f2d3e83eedda077a4 -
Trigger Event:
push
-
Statement type: