Skip to main content
Glama
openags

Paper Search MCP

by openags

search_crossref

Search the CrossRef database to find academic papers using queries, filters, and sorting options for scholarly research.

Instructions

Search academic papers from CrossRef database.

CrossRef is a scholarly infrastructure organization that provides persistent identifiers (DOIs) for scholarly content and metadata. It's one of the largest citation databases covering millions of academic papers, journals, books, and other scholarly content.

Args: query: Search query string (e.g., 'machine learning', 'climate change'). max_results: Maximum number of papers to return (default: 10, max: 1000). filter: CrossRef filter string (e.g., 'has-full-text:true,from-pub-date:2020'). sort: Sort field ('relevance', 'published', 'updated', 'deposited', etc.). order: Sort order ('asc' or 'desc'). Returns: List of paper metadata in dictionary format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
max_resultsNo
filterNo
sortNo
orderNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function `search_crossref` which defines the MCP tool interface and calls the underlying `async_search` helper.
    async def search_crossref(
        query: str,
        max_results: int = 10,
        filter: Optional[str] = None,
        sort: Optional[str] = None,
        order: Optional[str] = None,
    ) -> List[Dict]:
        """Search academic papers from CrossRef database.
        
        CrossRef is a scholarly infrastructure organization that provides 
        persistent identifiers (DOIs) for scholarly content and metadata.
        It's one of the largest citation databases covering millions of 
        academic papers, journals, books, and other scholarly content.
    
        Args:
            query: Search query string (e.g., 'machine learning', 'climate change').
            max_results: Maximum number of papers to return (default: 10, max: 1000).
            filter: CrossRef filter string (e.g., 'has-full-text:true,from-pub-date:2020').
            sort: Sort field ('relevance', 'published', 'updated', 'deposited', etc.).
            order: Sort order ('asc' or 'desc').
        Returns:
            List of paper metadata in dictionary format.
        """
        extra = {k: v for k, v in {'filter': filter, 'sort': sort, 'order': order}.items() if v is not None}
        papers = await async_search(crossref_searcher, query, max_results, **extra)
        return papers if papers else []
  • The `async_search` helper function that bridges the asynchronous MCP tool handler and the synchronous searcher implementation.
    async def async_search(searcher, query: str, max_results: int, **kwargs) -> List[Dict]:
        if 'year' in kwargs:
            papers = await asyncio.to_thread(searcher.search, query, max_results=max_results, year=kwargs['year'])
        elif kwargs:
            papers = await asyncio.to_thread(searcher.search, query, max_results=max_results, **kwargs)
        else:
            papers = await asyncio.to_thread(searcher.search, query, max_results=max_results)
        return [paper.to_dict() for paper in papers]
  • The `CrossRefSearcher.search` method which performs the actual synchronous API request to the CrossRef database.
    def search(self, query: str, max_results: int = 10, **kwargs) -> List[Paper]:
        """
        Search CrossRef database for papers.
        
        Args:
            query: Search query string
            max_results: Maximum number of results to return (default: 10)
            **kwargs: Additional parameters like filters, sort, etc.
            
        Returns:
            List of Paper objects
        """
        try:
            params = {
                'query': query,
                'rows': min(max_results, 1000),  # CrossRef API max is 1000
                'sort': 'relevance',
                'order': 'desc'
            }
            
            # Add any additional filters from kwargs
            if 'filter' in kwargs:
                params['filter'] = kwargs['filter']
            if 'sort' in kwargs:
                params['sort'] = kwargs['sort']
            if 'order' in kwargs:
                params['order'] = kwargs['order']
                
            # Add polite pool parameter
            params['mailto'] = 'paper-search@example.org'
            
            url = f"{self.BASE_URL}/works"
            response = self.session.get(url, params=params, timeout=30)
            
            if response.status_code == 429:
                # Rate limited - wait and retry once
                logger.warning("Rate limited by CrossRef API, waiting 2 seconds...")
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It mentions the database scope (CrossRef as a scholarly infrastructure with persistent identifiers) and default/max values for max_results, which adds useful context. However, it doesn't disclose rate limits, authentication requirements, error conditions, or pagination behavior that would help an agent use it effectively.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with clear sections: purpose statement, database context, Args with parameter details, and Returns. Some sentences could be tighter (e.g., the CrossRef explanation is slightly verbose), but overall it's efficiently organized and front-loaded with the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 5 parameters with 0% schema coverage and no annotations, the description does a good job explaining parameters and the database context. An output schema exists, so return values don't need explanation. It could improve by adding behavioral details like rate limits or error handling, but it's largely complete for a search tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate fully. It provides clear explanations for all 5 parameters with examples (e.g., query examples, default:10 max:1000 for max_results, filter syntax example, sort options). This adds significant value beyond the bare schema, making parameter usage understandable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches academic papers from the CrossRef database, providing a specific verb ('search') and resource ('academic papers'). It distinguishes from download/read siblings by focusing on search, though it doesn't explicitly differentiate from other search_* tools like search_arxiv or search_pubmed beyond the database source.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives is provided. With many sibling search tools (search_arxiv, search_pubmed, etc.), the description doesn't explain when CrossRef search is preferable (e.g., for DOI-based metadata, interdisciplinary coverage) or when other databases might be better suited for specific domains.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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