A MCP server for fetching HuggingFace daily papers
Project description
HuggingFace Daily Papers MCP Server
A MCP (Model Context Protocol) server for fetching HuggingFace daily papers.
Features
- Fetch today's, yesterday's or specific date HuggingFace papers
- Provides paper title, authors, abstract, tags and other details
- Includes paper links and PDF download links
- Supports MCP tools and resource interfaces
- Complete error handling and logging
- Comprehensive test cases
Installation & Usage
Option 1: Direct execution with uvx (Recommended)
Install and run directly using uvx:
uvx huggingface-daily-paper-mcp
This will automatically install the package and its dependencies, then start the MCP server.
Option 2: Local development
For local development, clone the repository and install dependencies:
git clone https://github.com/huangxinping/huggingface-daily-paper-mcp.git
cd huggingface-daily-paper-mcp
uv sync
Local usage commands
Run as MCP Server (for development):
python main.py
Test Scraper Function:
python scraper.py
Run Tests:
uv run -m pytest test_mcp_server.py -v
Build Package:
uv run -m build
MCP Interface
Tools
-
get_papers_by_date
- Description: Get HuggingFace papers for a specific date
- Parameters:
date(YYYY-MM-DD format)
-
get_today_papers
- Description: Get today's HuggingFace papers
- Parameters: None
-
get_yesterday_papers
- Description: Get yesterday's HuggingFace papers
- Parameters: None
Resources
-
papers://today
- Today's papers JSON data
-
papers://yesterday
- Yesterday's papers JSON data
Project Structure
huggingface-daily-paper-mcp/
├── main.py # MCP server main program
├── scraper.py # HuggingFace papers scraper module
├── test_mcp_server.py # MCP server test cases
├── README.md # Project documentation
├── .gitignore # Git ignore file
├── pyproject.toml # Project configuration file
└── uv.lock # Dependency lock file
Tech Stack
- Python 3.10+: Programming language
- MCP: Model Context Protocol framework
- Requests: HTTP request library
- BeautifulSoup4: HTML parsing library
- pytest: Testing framework
- uv: Python package manager
Development Standards
- Use uv native commands for package management
- Follow Python PEP 8 coding standards
- Include type hints and docstrings
- Complete error handling and logging
- Write unit tests to ensure code quality
Example Output
{
"title": "Example Paper Title",
"authors": ["Author One", "Author Two"],
"abstract": "This is an example abstract...",
"tags": ["machine-learning", "nlp"],
"url": "https://huggingface.co/papers/example",
"pdf_url": "https://arxiv.org/pdf/example.pdf",
"scraped_at": "2024-01-01T12:00:00"
}
License
MIT License
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 huggingface_daily_paper_mcp-0.1.2.tar.gz.
File metadata
- Download URL: huggingface_daily_paper_mcp-0.1.2.tar.gz
- Upload date:
- Size: 75.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a6942322b6f8ed3316075e001930101b1e9a1bc46f8d869d25f631242d30c18
|
|
| MD5 |
2c572e4aa42c2e905fb380822cc883f9
|
|
| BLAKE2b-256 |
a3a5d751ff429d92a4600faca95df5b359152644f975a6e063349d6859ce2da5
|
File details
Details for the file huggingface_daily_paper_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: huggingface_daily_paper_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 81.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11836ad3f301aaa995e667a63e499fcd354efcc75871ddeffa4803ac784c87a5
|
|
| MD5 |
4a61ae92a6f08d63b29ca346ebd57eee
|
|
| BLAKE2b-256 |
4f85b3df454aa444da6134b8b93f719eed770b6c4ad856390d2b587a1dffcced
|