Skip to main content
Glama
nanyang12138

AI Research MCP Server

by nanyang12138

search_by_area

Find AI research papers and code repositories by specifying a research area like LLM, vision, robotics, or bioinformatics. Filter results by date range and content type.

Instructions

Search papers and repos by research area (llm, vision, robotics, bioinfo, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
areaYesResearch area: llm, vision, robotics, bioinfo, rl, graph, etc.
daysNoNumber of days to look back
include_papersNoInclude papers from arXiv
include_reposNoInclude GitHub repositories

Implementation Reference

  • Registration of the 'search_by_area' tool in the MCP server, including name, description, and input schema.
    Tool( name="search_by_area", description="Search papers and repos by research area (llm, vision, robotics, bioinfo, etc.)", inputSchema={ "type": "object", "properties": { "area": { "type": "string", "description": "Research area: llm, vision, robotics, bioinfo, rl, graph, etc.", }, "days": { "type": "integer", "description": "Number of days to look back", "default": 7, }, "include_papers": { "type": "boolean", "description": "Include papers from arXiv", "default": True, }, "include_repos": { "type": "boolean", "description": "Include GitHub repositories", "default": True, }, }, "required": ["area"], }, ),
  • Main execution handler for the 'search_by_area' tool. Orchestrates calls to arXiv and GitHub clients based on parameters and formats the combined results as markdown.
    async def _search_by_area( self, area: str, days: int = 7, include_papers: bool = True, include_repos: bool = True, ) -> str: """Search by research area.""" results = [] if include_papers: papers = await asyncio.to_thread( self.arxiv.get_latest_by_area, area=area, days=days, ) results.append(f"## Papers ({len(papers)})\n\n{self._format_papers(papers)}") if include_repos: repos = await asyncio.to_thread( self.github.search_by_area, area=area, days=days, ) results.append(f"## Repositories ({len(repos)})\n\n{self._format_repos(repos)}") return f"# AI Research: {area.upper()}\n\n" + "\n\n".join(results)
  • Supporting implementation in GitHubClient class that maps research areas to keywords and performs repository search.
    def search_by_area( self, area: str, min_stars: int = 50, days: int = 30, max_results: int = 25, ) -> List[Dict]: """Search repositories by research area. Args: area: Research area (e.g., 'llm', 'robotics', 'bioinfo') min_stars: Minimum number of stars days: Look back this many days max_results: Maximum number of results Returns: List of repository dictionaries """ keywords = self.AI_KEYWORDS.get(area.lower()) if not keywords: raise ValueError(f"Unknown area: {area}. Valid areas: {list(self.AI_KEYWORDS.keys())}") return self.search_repositories( keywords=keywords[:3], # Use top 3 keywords to avoid too restrictive search min_stars=min_stars, pushed_since=f"{days}d", sort_by="stars", max_results=max_results, )

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/nanyang12138/AI-Research-MCP'

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