Skip to main content

A MCP server for fetching HuggingFace 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, votes, and submitted by info
  • Includes paper links and PDF download links
  • Supports MCP tools and resource interfaces
  • ArXiv integration for complete author lists
  • Complete error handling and logging
  • Comprehensive test coverage

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 build

MCP Interface

Tools

  1. get_papers_by_date

    • Description: Get HuggingFace papers for a specific date
    • Parameters: date (YYYY-MM-DD format)
  2. get_today_papers

    • Description: Get today's HuggingFace papers
    • Parameters: None
  3. get_yesterday_papers

    • Description: Get yesterday's HuggingFace papers
    • Parameters: None

Resources

  1. papers://today

    • Today's papers JSON data
  2. 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

Single paper data structure:

{
  "title": "CMPhysBench: A Benchmark for Evaluating Large Language Models in Condensed Matter Physics",
  "authors": ["Weida Wang", "Dongchen Huang", "Jiatong Li", "..."],
  "abstract": "CMPhysBench evaluates LLMs in condensed matter physics using calculation problems...",
  "url": "https://huggingface.co/papers/2508.18124",
  "pdf_url": "https://arxiv.org/pdf/2508.18124.pdf",
  "votes": 15,
  "submitted_by": "researcher123",
  "scraped_at": "2025-08-27T10:30:00.123456"
}

MCP Tool output format:

Title: CMPhysBench: A Benchmark for Evaluating Large Language Models in Condensed Matter Physics
Authors: Weida Wang, Dongchen Huang, Jiatong Li, Tengchao Yang, Ziyang Zheng...
Abstract: CMPhysBench evaluates LLMs in condensed matter physics using calculation problems...
URL: https://huggingface.co/papers/2508.18124
PDF: https://arxiv.org/pdf/2508.18124.pdf
Votes: 15
Submitted by: researcher123
--------------------------------------------------

AI IDE/CLI Configuration

Claude Code (CLI)

Add to your MCP configuration:

{
  "mcpServers": {
    "huggingface-papers": {
      "command": "uvx",
      "args": ["huggingface-daily-paper-mcp"]
    }
  }
}

Cursor IDE

Add to your .cursorrules or MCP settings:

{
  "mcp": {
    "servers": {
      "huggingface-papers": {
        "command": "uvx",
        "args": ["huggingface-daily-paper-mcp"],
        "env": {}
      }
    }
  }
}

Windsurf IDE

Add to your Windsurf MCP configuration:

{
  "mcpServers": {
    "huggingface-papers": {
      "command": "uvx",
      "args": ["huggingface-daily-paper-mcp"]
    }
  }
}

VS Code with Continue Extension

Add to your continue configuration:

{
  "mcp": {
    "servers": {
      "huggingface-papers": {
        "command": "uvx",
        "args": ["huggingface-daily-paper-mcp"]
      }
    }
  }
}

Other MCP-Compatible Tools

For any MCP-compatible client, use:

# Command
uvx huggingface-daily-paper-mcp

# Or with Python path
python -m main

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

huggingface_paper_mcp-0.1.6.tar.gz (77.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huggingface_paper_mcp-0.1.6-py3-none-any.whl (84.6 kB view details)

Uploaded Python 3

File details

Details for the file huggingface_paper_mcp-0.1.6.tar.gz.

File metadata

  • Download URL: huggingface_paper_mcp-0.1.6.tar.gz
  • Upload date:
  • Size: 77.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for huggingface_paper_mcp-0.1.6.tar.gz
Algorithm Hash digest
SHA256 0980be7d3765355e2fa2c22c94b01a236fb54faeea2eec96f12251c0f5dd09d1
MD5 5ed475fa231b5c8ffd90911226050dd5
BLAKE2b-256 eaae2fa608c2fc81f098eb5552237dd90ce41e3f571c71517d18f0e551046204

See more details on using hashes here.

File details

Details for the file huggingface_paper_mcp-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for huggingface_paper_mcp-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d29d6dce42e27ddde334d9d9ca08024eedb611b0c920c4dcea1c900ee94f579e
MD5 69f2409c2a50305960ae1cd5b125d612
BLAKE2b-256 e165baac95ed6d25fdf3b5d0c732fd3446ed9a3be260bd5b56f4b03afa7ddece

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page