Skip to main content
Glama
huangxinping

Huggingface Daily Papers

by huangxinping

get_today_papers

Fetch today's research papers from HuggingFace to stay updated with current AI and machine learning developments.

Instructions

Get today's HuggingFace daily papers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:75-82 (registration)
    Registration of the 'get_today_papers' tool with MCP server, including name, description, and empty input schema (no parameters required).
    types.Tool( name="get_today_papers", description="Get today's HuggingFace daily papers", inputSchema={ "type": "object", "properties": {}, }, ),
  • main.py:78-82 (schema)
    Input schema definition for the tool: empty object, indicating no input parameters.
    inputSchema={ "type": "object", "properties": {}, }, ),
  • main.py:133-161 (handler)
    MCP tool handler implementation: calls scraper.get_today_papers(), handles empty result, formats papers list into text response with title, authors, abstract, URL, PDF, votes, submitted_by.
    elif name == "get_today_papers": papers = scraper.get_today_papers() today = datetime.now().strftime("%Y-%m-%d") if not papers: return [ types.TextContent( type="text", text=f"No papers found for today ({today}). Papers might not be published yet or there could be a network issue." ) ] return [ types.TextContent( type="text", text=f"Today's Papers ({today}) - Found {len(papers)} papers:\n\n" + "\n".join([ f"Title: {paper['title']}\n" f"Authors: {', '.join(paper['authors'])}\n" f"Abstract: {paper['abstract']}\n" f"URL: {paper['url']}\n" f"PDF: {paper['pdf_url']}\n" f"Votes: {paper['votes']}\n" f"Submitted by: {paper['submitted_by']}\n" + "-" * 50 for paper in papers ]) ) ]
  • Core scraper method for get_today_papers: computes current date and delegates to get_papers_by_date scraper method.
    def get_today_papers(self, fetch_details: bool = True) -> List[Dict]: today = datetime.now().strftime("%Y-%m-%d") return self.get_papers_by_date(today, fetch_details)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huangxinping/huggingface-daily-paper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server