feat: add Semantic Scholar citation traversal and author tools#2
Open
RaggedR wants to merge 1 commit into
Open
feat: add Semantic Scholar citation traversal and author tools#2RaggedR wants to merge 1 commit into
RaggedR wants to merge 1 commit into
Conversation
Adds 6 new MCP tools powered by the Semantic Scholar API: - get_paper_details: full paper metadata (title, authors, citations, abstract, TL;DR) - get_citations: forward citation traversal (who cites this paper) - get_references: reverse citation traversal (what this paper cites) - find_related: embedding-based paper recommendations - search_author: find authors by name with h-index and affiliation - get_author_papers: list an author's publications All tools accept flexible paper IDs (S2 hash, ArXiv:..., DOI:..., CorpusID:...). Optional SEMANTIC_SCHOLAR_API_KEY env var for higher rate limits. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_paper_details,get_citations,get_references,find_related,search_author,get_author_papershttpxis already inpyproject.toml)New Tools
get_paper_details/paper/{id}get_citations/paper/{id}/citationsget_references/paper/{id}/referencesfind_related/recommendations/v1/papers/forpaper/{id}search_author/author/searchget_author_papers/author/{id}/papersAll tools accept flexible paper identifiers: S2 hash,
ArXiv:XXXX.XXXXX,DOI:..., orCorpusID:....Configuration
Optional
SEMANTIC_SCHOLAR_API_KEYenvironment variable for higher rate limits (5,000 vs 100 req/5min). Works without it.Implementation
src/arxiv_mcp/tools/semantic_scholar.py(self-contained, ~300 lines)src/arxiv_mcp/main.py(import + register 6 tools)httpx.AsyncClient(already a dependency) for async S2 API callsTest plan
🤖 Generated with Claude Code