Skip to main content
Glama
openags

Paper Search MCP

by openags

search_semantic

Search academic papers from Semantic Scholar using queries with optional year filters to find relevant research publications.

Instructions

Search academic papers from Semantic Scholar.

Args: query: Search query string (e.g., 'machine learning'). year: Optional year filter (e.g., '2019', '2016-2020', '2010-', '-2015'). max_results: Maximum number of papers to return (default: 10). Returns: List of paper metadata in dictionary format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
yearNo
max_resultsNo

Implementation Reference

  • The `search_semantic` function is an async handler that performs academic paper searches from Semantic Scholar, accepting a query, optional year, and max_results. It is registered as an MCP tool.
    async def search_semantic(query: str, year: Optional[str] = None, max_results: int = 10) -> List[Dict]:
        """Search academic papers from Semantic Scholar.
    
        Args:
            query: Search query string (e.g., 'machine learning').
            year: Optional year filter (e.g., '2019', '2016-2020', '2010-', '-2015').
            max_results: Maximum number of papers to return (default: 10).
        Returns:
            List of paper metadata in dictionary format.
        """
        kwargs = {}
        if year is not None:
            kwargs['year'] = year
        papers = await async_search(semantic_searcher, query, max_results, **kwargs)
        return papers if papers else []
  • The `search_semantic` tool is registered using the @mcp.tool() decorator.
    @mcp.tool()

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