Skip to main content
Glama
openags

Paper Search MCP

by openags

download_base

Download PDF files of academic papers from BASE using paper identifiers. Specify a save directory to retrieve and store research documents.

Instructions

Download PDF for a paper from BASE.

Args: paper_id: BASE paper identifier. save_path: Directory to save the PDF (default: './downloads'). Returns: str: Path to downloaded PDF.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paper_idYes
save_pathNo./downloads

Implementation Reference

  • MCP tool registration and wrapper for `download_base`.
    @mcp.tool()
    async def download_base(paper_id: str, save_path: str = "./downloads") -> str:
        """Download PDF for a paper from BASE.
    
        Args:
            paper_id: BASE paper identifier.
            save_path: Directory to save the PDF (default: './downloads').
        Returns:
            str: Path to downloaded PDF.
        """
        return base_searcher.download_pdf(paper_id, save_path)
  • Actual implementation of the PDF download logic for BASE in BASESearcher class.
    def download_pdf(self, paper_id: str, save_path: str) -> str:
        """Download PDF for a BASE record.
    
        BASE often provides direct PDF links in metadata.
    
        Args:
            paper_id: BASE identifier or OAI-PMH identifier
            save_path: Directory to save PDF
    
        Returns:
            Path to saved PDF file
    
        Raises:
            NotImplementedError: If PDF cannot be downloaded
        """
        # Try parent method first (searches for PDF URL)

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/openags/paper-search-mcp'

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