MCP server for Semantic Scholar API integration with Claude Desktop
Project description
Semantic Scholar MCP Server
Access millions of academic papers from Semantic Scholar using the Model Context Protocol (MCP). Works with Claude Code, Claude Desktop, Cursor, VS Code, and other MCP-compatible editors.
Response Schema (Contract)
All tools return a compact JSON object shaped around a top-level data key. Pagination metadata is included only when applicable:
- Always:
data - Paginated endpoints (e.g.,
search_papers,search_authors,search_snippets):total,offset,limit,has_more - Count-only endpoints (e.g., recommendations, batch ops, datasets list):
count - Non-paginated single-item endpoints (e.g.,
get_paper,get_author, dataset info): onlydata
This keeps payloads predictable and compact for MCP clients.
Instruction Templates (SSOT)
Tool guidance (“Next Steps”) is injected from YAML files and treated as the single source of truth (SSOT):
- Location:
src/semantic_scholar_mcp/resources/tool_instructions/**/*.yml - Server auto-injects guidance into tool descriptions and responses
- Markdown templates are kept only for backward compatibility
Features
- Smart Search: Search papers with filters for year, fields of study, and sorting
- Full Paper Details: Get abstracts, authors, citations, and references
- Author Profiles: Explore researcher profiles and their publications
- Citation Network: Analyze citation relationships and impact
- AI-Powered: Get paper recommendations and research insights
- Fast & Reliable: Built-in caching, rate limiting, and error recovery
- PDF Conversion: Turn open-access PDFs into Markdown or semantic chunks with optional image capture
Installation
One-Command Setup
Claude Code (recommended):
claude mcp add semantic-scholar -- uvx semantic-scholar-mcp
Manual Configuration (if needed)
Basic setup:
{
"mcpServers": {
"semantic-scholar": {
"command": "uvx",
"args": ["semantic-scholar-mcp"]
}
}
}
With API key for higher limits:
{
"mcpServers": {
"semantic-scholar": {
"command": "uvx",
"args": ["semantic-scholar-mcp"],
"env": {
"SEMANTIC_SCHOLAR_API_KEY": "your-api-key-here"
}
}
}
}
Get your free API key at: https://www.semanticscholar.org/product/api
Usage
Ask in natural language:
- "Find recent papers on transformer architectures in NLP"
- "Show me details about paper with DOI 10.1038/nature14539"
- "Find papers by Yoshua Bengio from 2020 onwards"
- "Get recommendations based on the BERT paper"
- "Create a literature review on quantum computing"
Available Tools
📄 Paper Tools
| Tool | Description | Example |
|---|---|---|
search_papers |
Search papers with filters | "Search for deep learning papers from 2023" |
get_paper |
Get detailed paper info | "Get full details for paper ID abc123" |
get_paper_fulltext |
Convert open-access PDFs to Markdown or chunks | "Convert the PDF for paper abc123 into Markdown" |
get_paper_citations |
Get papers citing this paper | "Find papers that cite the attention paper" |
get_paper_references |
Get papers this paper cites | "Show references from the BERT paper" |
get_paper_authors |
Get detailed author info for paper | "Show authors of paper abc123" |
batch_get_papers |
Get multiple papers efficiently | "Get details for papers: abc123, def456, ghi789" |
bulk_search_papers |
Advanced search with filters | "Search ML papers from 2020-2023 with 50+ citations" |
search_papers_match |
Search by exact title match | "Find paper with title 'Attention Is All You Need'" |
👤 Author Tools
| Tool | Description | Example |
|---|---|---|
search_authors |
Search for researchers | "Find authors working on computer vision" |
get_author |
Get author profile | "Get profile for author ID 12345" |
get_author_papers |
List author's publications | "Show papers by Geoffrey Hinton" |
batch_get_authors |
Get multiple authors efficiently | "Get details for authors: 123, 456, 789" |
🤖 AI Tools
| Tool | Description | Example |
|---|---|---|
get_recommendations_for_paper |
AI-powered paper recommendations | "Recommend papers similar to GPT-3" |
get_recommendations_batch |
Advanced ML recommendations | "Get recommendations from positive/negative examples" |
🔍 Advanced Search Tools
| Tool | Description | Example |
|---|---|---|
autocomplete_query |
Get search suggestions | "Complete query 'machine lear...'" |
search_snippets |
Search text snippets | "Find papers mentioning 'transformer architecture'" |
🧠 Semantic Analysis Tools
| Tool | Description | Example |
|---|---|---|
get_paper_with_embeddings |
Get paper with vector embeddings | "Get paper with SPECTER embeddings" |
search_papers_with_embeddings |
Search with semantic vectors | "Find semantically similar papers" |
📊 Dataset Tools
| Tool | Description | Example |
|---|---|---|
get_dataset_releases |
List available datasets | "Show available dataset releases" |
get_dataset_info |
Get dataset information | "Get info for dataset release 2023-01" |
get_dataset_download_links |
Get download links | "Get download links for papers dataset" |
get_incremental_dataset_updates |
Get dataset updates | "Get updates between releases" |
Advanced Features
📚 Resources (Direct Access)
| Resource | Description | Usage |
|---|---|---|
papers/{paper_id} |
Direct paper data access | Auto-populated in conversations |
authors/{author_id} |
Direct author profile access | Auto-populated in conversations |
🎯 AI Prompts (Smart Templates)
| Prompt | Description | Usage |
|---|---|---|
literature_review |
Generate comprehensive literature reviews | "Create a literature review on machine learning" |
citation_analysis |
Analyze citation networks and impact | "Analyze citations for the transformer paper" |
research_trend_analysis |
Identify emerging research trends | "Analyze trends in NLP over the last 5 years" |
Practical Examples
Search and Explore
"Find recent papers on graph neural networks published after 2022"
"Show me the most cited papers in computer vision from 2023"
"Search for papers about attention mechanisms with more than 100 citations"
Deep Analysis
"Get full details including citations and references for paper DOI 10.1038/nature14539"
"Show me all papers by Yann LeCun from the last 3 years"
"Find papers that cite 'Attention Is All You Need' and analyze their impact"
AI-Powered Research
"Based on the GPT-4 paper, recommend 5 related papers I should read"
"Create a literature review covering the evolution of transformer architectures"
"Analyze citation patterns for deep learning papers in the last decade"
Features
✅ 22 research tools covering all Semantic Scholar API endpoints
✅ Smart AI prompts for literature reviews and citation analysis
✅ Fast & reliable with built-in caching and error recovery
✅ Free to use - no API key required (optional for higher limits)
License
MIT License - see LICENSE for details.
⚠️ The
get_paper_fulltexttool relies on PyMuPDF4LLM, which is AGPL licensed. Commercial usage of the PDF conversion feature may require a commercial PyMuPDF license.
PDF Markdown Tips
- Chunk-only output
uv run semantic-scholar-mcp --tool get_paper_fulltext --argument '{ "paper_id": "649def34f8be52c8b66281af98ae884c09aef38b", "output_mode": "chunks" }'
- Include extracted images
uv run semantic-scholar-mcp --tool get_paper_fulltext --argument '{ "paper_id": "649def34f8be52c8b66281af98ae884c09aef38b", "output_mode": "both", "include_images": true }'
- Manual cache cleanup (respects
PDF_PROCESSING__ARTIFACT_TTL_HOURS)uv run python -c "from semantic_scholar_mcp.pdf_processor import cleanup_pdf_cache; cleanup_pdf_cache()"
Cached artifacts auto-expire after the configured TTL, and you can trigger cleanup manually with the command above.
Acknowledgments
- Semantic Scholar for the academic graph API
- Anthropic for the MCP specification
- The academic community for making research accessible
Built for researchers worldwide 🌍
Project details
Release history Release notifications | RSS feed
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 semantic_scholar_mcp-0.2.7.tar.gz.
File metadata
- Download URL: semantic_scholar_mcp-0.2.7.tar.gz
- Upload date:
- Size: 357.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2474cb2ddbf3c61f02c92f82c3d347d6f873d20a64c4a849571fed08d08c6d63
|
|
| MD5 |
681700e63ef9bb0fa0705c624071136b
|
|
| BLAKE2b-256 |
6653af9945d0a8717e7da028063f229266a14d391f3ec92ff99de3a6bd47b4c2
|
Provenance
The following attestation bundles were made for semantic_scholar_mcp-0.2.7.tar.gz:
Publisher:
release.yml on hy20191108/semantic-scholar-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semantic_scholar_mcp-0.2.7.tar.gz -
Subject digest:
2474cb2ddbf3c61f02c92f82c3d347d6f873d20a64c4a849571fed08d08c6d63 - Sigstore transparency entry: 685737970
- Sigstore integration time:
-
Permalink:
hy20191108/semantic-scholar-mcp@bcdcecaddd7adf1035a20733a462d83fc1ef1541 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hy20191108
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bcdcecaddd7adf1035a20733a462d83fc1ef1541 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file semantic_scholar_mcp-0.2.7-py3-none-any.whl.
File metadata
- Download URL: semantic_scholar_mcp-0.2.7-py3-none-any.whl
- Upload date:
- Size: 108.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 |
b0f555ff727727fa3e0e33d9f86b54b221e595a8a7c1e12038671f05929850de
|
|
| MD5 |
09c806a0e73e6780209ebdaa554c11f9
|
|
| BLAKE2b-256 |
711088c6209c5bcb7787aaf371f0466ebfb143f4442dc20cfb6b3080417ad5ad
|
Provenance
The following attestation bundles were made for semantic_scholar_mcp-0.2.7-py3-none-any.whl:
Publisher:
release.yml on hy20191108/semantic-scholar-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semantic_scholar_mcp-0.2.7-py3-none-any.whl -
Subject digest:
b0f555ff727727fa3e0e33d9f86b54b221e595a8a7c1e12038671f05929850de - Sigstore transparency entry: 685737971
- Sigstore integration time:
-
Permalink:
hy20191108/semantic-scholar-mcp@bcdcecaddd7adf1035a20733a462d83fc1ef1541 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hy20191108
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bcdcecaddd7adf1035a20733a462d83fc1ef1541 -
Trigger Event:
workflow_dispatch
-
Statement type: