Skip to main content
Glama
openags

Paper Search MCP

by openags

read_openalex_paper

Extract text content from OpenAlex academic papers by providing the paper ID and optional save directory for PDFs.

Instructions

Attempt to read and extract text content from an OpenAlex paper.

Args: paper_id: OpenAlex paper ID. save_path: Directory where the PDF is/will be saved (default: './downloads'). Returns: str: Message indicating that direct paper reading is not supported natively.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paper_idYes
save_pathNo./downloads

Implementation Reference

  • The MCP tool handler that receives the read_openalex_paper request and delegates it to the openalex_searcher instance.
    @mcp.tool()
    async def read_openalex_paper(paper_id: str, save_path: str = "./downloads") -> str:
        """Attempt to read and extract text content from an OpenAlex paper.
    
        Args:
            paper_id: OpenAlex paper ID.
            save_path: Directory where the PDF is/will be saved (default: './downloads').
        Returns:
            str: Message indicating that direct paper reading is not supported natively.
        """
        return openalex_searcher.read_paper(paper_id, save_path)
  • The implementation of the read_paper method within the OpenAlexSearcher class, which informs the user that direct reading is not supported.
    def read_paper(self, paper_id: str, save_path: str = "./downloads") -> str:
        """
        Not implemented for OpenAlex.
        """
        return (
            "OpenAlex papers cannot be read directly through this aggregator. "
            "Please use the paper's DOI or pdf_url to access the full text."
        )

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