paperwithcode-mcp
Provides tools to retrieve paper metadata, full text, and code repository links using arXiv IDs.
Enables resolution of arXiv papers to their corresponding GitHub repositories and fetching of star counts.
Integrates with Hugging Face Papers to list daily trending papers, access AI summaries, and retrieve detailed paper information.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@paperwithcode-mcp list today's trending papers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
paperwithcode-mcp
MCP server that brings AI paper reading and code repository discovery from Hugging Face Papers into any MCP-compatible client (Claude Desktop, IDE plugins, etc.). Supports both stdio and SSE transports.
Overview
Keeping up with AI research means reading papers, finding code implementations, and tracking daily new releases. This server bridges Hugging Face Papers' rich metadata — AI summaries, GitHub star counts, full paper markdown, and daily trending lists — directly into your AI assistant's toolset. Instead of switching between browser tabs, you query papers conversationally.
What you can do:
Paste an arXiv ID and get the corresponding GitHub repo (with star count)
Ask for a paper's details: title, authors, abstract, AI summary, keywords
Read a paper's full text as markdown in your conversation
List today's trending papers on Hugging Face Papers
Related MCP server: Huggingface Daily Papers
Quick Start
pip install git+https://github.com/GtJerry111/paperwithcode-hf-mcp.git
paperwithcode-mcpThe server starts in stdio mode, ready to connect to Claude Desktop or any MCP host. Add it to your claude_desktop_config.json (see Claude Desktop Integration) and you're done.
Tools
resolve_code_link
Resolve an arXiv ID to its GitHub repository URL.
Parameters:
Parameter | Type | Required | Description |
|
| Yes | The arXiv paper ID (e.g. |
Returns: { "github_url": "https://github.com/shiyu-coder/Kronos" }
Returns null if no GitHub repository is found for the given paper.
get_paper_details
Get detailed paper metadata from Hugging Face Papers.
Parameters:
Parameter | Type | Required | Description |
|
| Yes | The arXiv paper ID (e.g. |
Returns: JSON object with:
id— arXiv IDtitle— paper titleauthors— list of author namespublishedAt— publication datesummary— abstract textupvotes— upvote count on Hugging FacegithubRepo— linked GitHub repository URL (if any)githubStars— GitHub star count (if repo exists)ai_summary— AI-generated summaryai_keywords— list of AI-extracted keywordsdiscussionId— Hugging Face discussion thread IDmarkdownContentUrl— URL to the full paper markdown
Returns null if the paper is not found.
read_paper
Fetch the full text of a paper as markdown.
Parameters:
Parameter | Type | Required | Description |
|
| Yes | The arXiv paper ID (e.g. |
Returns: A markdown string containing the complete paper text (abstract, introduction, method, results, etc.). Returns null if the paper cannot be found or has no markdown source.
list_daily_papers
List papers featured on Hugging Face Papers for a given date.
Parameters:
Parameter | Type | Required | Description |
|
| No | Date in |
Returns: A list of papers, each containing:
id— arXiv IDtitle— paper titleauthors— list of author namespublishedAt— publication datesummary— abstractupvotes— upvote countnumComments— number of comments on Hugging Face
Deployment
pip
pip install git+https://github.com/GtJerry111/paperwithcode-hf-mcp.git
paperwithcode-mcp # stdio (default)
paperwithcode-mcp --transport sse --host 0.0.0.0 --port 8787 # SSEuv
uv tool install git+https://github.com/GtJerry111/paperwithcode-hf-mcp.git
paperwithcode-mcp # stdio
# Update later
uv tool upgrade paperwithcode-mcpDocker
docker build -t paperwithcode-mcp .
docker run -i --rm paperwithcode-mcp # stdio
docker run -i --rm -p 8787:8787 paperwithcode-mcp \
--transport sse --host 0.0.0.0 --port 8787 # SSEClaude Desktop Integration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"paperwithcode": {
"command": "paperwithcode-mcp",
"args": []
}
}
}If paperwithcode-mcp is not in your PATH after pip install, use the full Python module path or the uvx launcher:
{
"mcpServers": {
"paperwithcode": {
"command": "uvx",
"args": ["paperwithcode-mcp"]
}
}
}Development
git clone https://github.com/GtJerry111/paperwithcode-hf-mcp.git
cd paperwithcode-hf-mcp
# pip
pip install -e ".[dev]"
# uv
uv sync --group devArchitecture
The server has a simple data flow:
MCP tool call -> mcp_server.py (FastMCP) -> resolver.py (business logic)
-> client.py (curl/network) + parser.py (HTML extraction)mcp_server.py — FastMCP instance with 4 tool definitions and the CLI entry point
resolver.py — orchestrates calls between client and parser, returns typed results
client.py —
PaperPageClientwraps curl subprocess, handles proxy and retriesparser.py — extracts structured data from Hugging Face paper pages
Data Sources
https://huggingface.co/papers/{arxiv_id}— individual paper page (embedded JSON indata-props)https://huggingface.co/api/daily_papers?date=YYYY-MM-DD— daily papers API (no auth)markdownContentUrl— full paper text as markdown from the arXiv HTML conversion
Environment Variables
Variable | Default | Description |
| — | Proxy for outgoing HTTP requests |
|
| Request timeout in seconds |
Limitations
This project uses Hugging Face Papers as its data source, NOT the paperswithcode.com API (which is no longer available). As a result:
No paper search by keyword or title
No conference, proceedings, or author browsing
No benchmark results or dataset listings
License
MIT
Available Tools
4 toolsget_paper_details_toolB
Get detailed paper metadata including title, authors, abstract, GitHub repo, GitHub stars, AI summary, keywords, and upvotes.
Inputs: arxiv_id (required). Returns: result
list_daily_papers_toolA
List papers featured on Hugging Face Papers for a given date (YYYY-MM-DD format). Defaults to today.
Inputs: date. Returns: result
read_paper_toolB
Fetch the full text of a paper as markdown.
Inputs: arxiv_id (required). Returns: result
resolve_code_link_toolA
Resolve an arXiv ID to a GitHub repository URL from the corresponding HF Papers page.
Inputs: arxiv_id (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: getting metadata, listing daily papers, reading full text, and resolving code links. No overlap in functionality.
All tool names follow a consistent pattern: verb_noun_tool with descriptive verbs and nouns, all in snake_case.
Four tools is an appropriate number for a focused server covering paper retrieval and code linking, neither too few nor too many.
The tool set covers the main tasks of browsing daily papers, getting details, reading full text, and finding code repositories. A minor gap is the lack of search or filtering beyond date, but core functionality is present.
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Query ArXiv, HuggingFace Daily Papers, and linked GitHub repos in one fast MCP call.
GitHub trending repos, HuggingFace trending AI models & arXiv academic paper search remote MCP API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn unofficial MCP server that provides semantic search capabilities for Hugging Face models and datasets, enabling Claude and other MCP-compatible clients to search, discover, and explore the Hugging Face ecosystem using natural language queries.20MIT
- AlicenseBqualityDmaintenanceA MCP (Model Context Protocol) server for fetching HuggingFace daily papers.37MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for academic paper search that integrates with AI assistants (e.g., Claude Code, Cursor), enabling them to search and retrieve academic paper metadata.51 PyPI246MIT
- AlicenseAqualityAmaintenanceMCP server that turns DOI, URL, or paper titles into structured Markdown full-text with metadata and assets, enabling AI agents to read beyond abstracts.11264MIT