Skip to main content
Glama
h-lu

Paper Search MCP Server

by h-lu

search_iacr

Search for cryptography research papers on the IACR ePrint Archive to find open-access publications on encryption, blockchain, zero-knowledge proofs, and security protocols.

Instructions

Search cryptography papers on IACR ePrint Archive.

USE THIS TOOL WHEN:
- Searching for cryptography or security research
- You need papers on encryption, blockchain, zero-knowledge proofs
- Looking for security protocols, hash functions, signatures

DOMAIN: Cryptography ONLY - encryption, signatures, protocols,
blockchain, secure computation, zero-knowledge, hash functions.

All papers are FREE and open access with PDF download.

WORKFLOW:
1. search_iacr(query) -> get paper_id (e.g., '2024/123')
2. download_iacr(paper_id) or read_iacr_paper(paper_id)

Args:
    query: Crypto terms (e.g., 'zero knowledge', 'homomorphic encryption').
    max_results: Number of results (default: 10).
    fetch_details: Get full metadata per paper (default: True).

Returns:
    List of paper dicts with: paper_id, title, authors, abstract,
    published_date, pdf_url.

Example:
    search_iacr("post-quantum cryptography", max_results=5)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
max_resultsNo
fetch_detailsNo

Implementation Reference

  • Primary MCP tool handler for 'search_iacr'. Delegates to IACRSearcher instance via SEARCHERS['iacr'].search() method.
    @mcp.tool()
    async def search_iacr(
        query: str, max_results: int = 10, fetch_details: bool = True
    ) -> List[Dict]:
        """Search cryptography papers on IACR ePrint Archive.
        
        USE THIS TOOL WHEN:
        - Searching for cryptography or security research
        - You need papers on encryption, blockchain, zero-knowledge proofs
        - Looking for security protocols, hash functions, signatures
        
        DOMAIN: Cryptography ONLY - encryption, signatures, protocols,
        blockchain, secure computation, zero-knowledge, hash functions.
        
        All papers are FREE and open access with PDF download.
        
        WORKFLOW:
        1. search_iacr(query) -> get paper_id (e.g., '2024/123')
        2. download_iacr(paper_id) or read_iacr_paper(paper_id)
        
        Args:
            query: Crypto terms (e.g., 'zero knowledge', 'homomorphic encryption').
            max_results: Number of results (default: 10).
            fetch_details: Get full metadata per paper (default: True).
        
        Returns:
            List of paper dicts with: paper_id, title, authors, abstract,
            published_date, pdf_url.
        
        Example:
            search_iacr("post-quantum cryptography", max_results=5)
        """
        searcher = SEARCHERS['iacr']
        try:
            papers = searcher.search(query, max_results, fetch_details)
            return [paper.to_dict() for paper in papers] if papers else []
        except Exception as e:
            logger.error(f"IACR search failed: {e}")
            return []
  • Global SEARCHERS dictionary instantiation including 'iacr': IACRSearcher() used by the handler.
    SEARCHERS = {
        'arxiv': ArxivSearcher(),
        'pubmed': PubMedSearcher(),
        'biorxiv': BioRxivSearcher(),
        'medrxiv': MedRxivSearcher(),
        'google_scholar': GoogleScholarSearcher(),
        'iacr': IACRSearcher(),
        'semantic': SemanticSearcher(),
        'crossref': CrossRefSearcher(),
        'repec': RePECSearcher(),
    }
  • Import of IACRSearcher class.
    from .academic_platforms.iacr import IACRSearcher
  • Core search logic in IACRSearcher.search(): performs HTTP search on eprint.iacr.org, parses HTML results with BeautifulSoup, optionally fetches details per paper.
    def search(
        self, query: str, max_results: int = 10, fetch_details: bool = True
    ) -> List[Paper]:
        """
        Search IACR ePrint Archive
    
        Args:
            query: Search query string
            max_results: Maximum number of results to return
            fetch_details: Whether to fetch detailed information for each paper (slower but more complete)
    
        Returns:
            List[Paper]: List of paper objects
        """
        papers = []
    
        try:
            # Construct search parameters
            params = {"q": query}
    
            # Make request
            response = self.session.get(self.IACR_SEARCH_URL, params=params)
    
            if response.status_code != 200:
                logger.error(f"IACR search failed with status {response.status_code}")
                return papers
    
            # Parse results
            soup = BeautifulSoup(response.text, "html.parser")
    
            # Find all paper entries - they are divs with class "mb-4"
            results = soup.find_all("div", class_="mb-4")
    
            if not results:
                logger.info("No results found for the query")
                return papers
    
            # Process each result
            for i, item in enumerate(results):
                if len(papers) >= max_results:
                    break
    
                logger.info(f"Processing paper {i+1}/{min(len(results), max_results)}")
                paper = self._parse_paper(item, fetch_details=fetch_details)
                if paper:
                    papers.append(paper)
    
        except Exception as e:
            logger.error(f"IACR search error: {e}")
    
        return papers[:max_results]
  • Function signature defines input schema (query:str, max_results:int=10, fetch_details:bool=True) and output List[Dict] for MCP tool schema inference.
    async def search_iacr(
        query: str, max_results: int = 10, fetch_details: bool = True
    ) -> List[Dict]:
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing that papers are FREE and open access with PDF download, and describes the return format. It could improve by mentioning rate limits or authentication needs, but provides good behavioral context for a search tool.

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 (description, usage guidelines, domain, workflow, args, returns, example). Some redundancy exists (e.g., 'cryptography' mentioned multiple times), but overall each sentence adds value and information is front-loaded appropriately.

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?

For a search tool with 3 parameters, no annotations, and no output schema, the description provides comprehensive context: clear purpose, usage guidelines, behavioral details (free/open access), parameter semantics, return format, and workflow with siblings. It could slightly improve by explicitly mentioning pagination or error cases, but is largely complete.

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

Parameters4/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. It provides clear semantics for all three parameters: query (crypto terms with examples), max_results (number of results with default), and fetch_details (get full metadata with default). The description adds meaningful context beyond basic schema types.

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

Purpose5/5

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

The description clearly states the tool searches cryptography papers on IACR ePrint Archive with specific examples of search topics. It distinguishes from siblings by specifying the domain (cryptography only) and explicitly naming the workflow with sibling tools download_iacr and read_iacr_paper, making it distinct from other search/download tools.

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

Usage Guidelines5/5

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

The description includes explicit 'USE THIS TOOL WHEN' section with three specific scenarios and a 'DOMAIN' section clarifying it's for cryptography only. It also provides a workflow showing when to use this tool versus its siblings (download_iacr, read_iacr_paper), giving clear alternatives and context.

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

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