
Gemini Literature Search
FreeAI-powered literature discovery for research papers.
Free · Opens the source repo
What Gemini Literature Search does
Gemini Literature Search is a skill designed for researchers and developers seeking comprehensive literature discovery through the Gemini platform. Unlike traditional search methods that rely on exact keyword matches, Gemini utilizes AI to decompose topics into sub-problems and explore various naming variants. This approach allows users to uncover research papers that may not appear in standard databases like arXiv or Semantic Scholar, thus broadening the scope of literature available for review.
The skill operates by accepting a search query and leveraging the Gemini MCP (Multi-Channel Protocol) to execute searches. Users can specify parameters such as the maximum number of results, publication year, and even filter for papers that include open-source code. The search process prioritizes relevance and comprehensiveness, ensuring that users receive a well-rounded selection of papers that cover recent findings, surveys, and related works.
To get started, users need to have Node.js and the Google Gemini CLI installed and authenticated. Once set up, the skill can be invoked with simple commands, making it accessible for both seasoned researchers and those new to academic literature searches. The integration with Gemini’s capabilities means that the skill can adapt to varying loads and user requirements, providing a flexible and efficient research tool.
Gemini Literature Search is particularly useful for anyone involved in academic research, software development, or any field where staying updated with the latest literature is crucial. It serves as a valuable resource for literature reviews, helping users find relevant papers that contribute to their work without the limitations of conventional search methods.
When to use it
Use Gemini Literature Search when you need a comprehensive overview of research papers on a specific topic, especially when traditional databases may not suffice.
When not to use it
This skill may not be ideal for quick searches where speed is prioritized over comprehensiveness, or for users who require results from specific, well-known databases only.
What you can build with it
Comprehensive Literature Review
When preparing for a literature review, use Gemini Literature Search to find a wide range of relevant papers across multiple databases.
Exploring New Research Areas
If you're venturing into a new research area, this skill helps identify foundational papers and recent developments that may not be on your radar.
Finding Code-Related Research
Use Gemini Literature Search to locate research papers that include open-source code, which can be invaluable for practical implementations.
How to install Gemini Literature Search
View source1. Install with the skills CLI
npx skills add wanshuiyin/auto-claude-code-research-in-sleep/gemini-search --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by wanshuiyinGemini Literature Search
Search query: $ARGUMENTS
Role & Positioning
This skill uses Gemini as a broad literature discovery source:
| Skill | Source | Best for |
|---|---|---|
/arxiv | arXiv API | Latest preprints, cutting-edge unrefereed work |
/semantic-scholar | Semantic Scholar API | Published venue papers (IEEE, ACM, Springer) with citation counts |
/deepxiv | DeepXiv CLI | Layered reading: search, brief, section map, section reads |
/exa-search | Exa API | Broad web search: blogs, docs, news, companies, research papers |
/gemini-search | Gemini MCP / CLI | AI-powered broad literature discovery — searches across multiple angles, aliases, and sub-problems |
Use Gemini when you want AI-driven discovery that goes beyond keyword matching — Gemini decomposes topics into sub-problems, explores naming variants, and surfaces papers that traditional API searches may miss.
Constants
- MAX_RESULTS = 15 — Target number of papers Gemini should find.
- MIN_YEAR = 2022 — Default minimum publication year. Override with
— year: 2020-. - DEFAULT_MODEL = auto-gemini-3 — Auto-routes within the Gemini 3 family (Pro / Flash) by server-side capacity. Required by
mcp__gemini-cli__ask-geminiandgemini-cliv0.40+; explicitgemini-3-pro-previewis silently downgraded togemini-2.5-proon OAuth-personal / Google One AI Pro accounts when capacity is exhausted. Override with— model: gemini-3-flash-preview(Gemini 3 Flash explicit, faster, higher quota), or— model: gemini-2.5-pro/gemini-2.5-flash(legacy, only for users on oldergemini-cli< v0.40). The MCP tool accepts all of these verbatim.
Overrides (append to arguments):
/gemini-search "topic" — max: 20— request up to 20 papers/gemini-search "topic" — year: 2020-— papers from 2020 onward/gemini-search "topic" — code-only— only papers with open-source code/gemini-search "topic" — venues: NeurIPS,ICML,ICLR— focus on specific venues/gemini-search "topic" — model: gemini-3-flash-preview— Gemini 3 Flash (faster, higher quota, less capable than Pro)/gemini-search "topic" — model: auto-gemini-3— auto-routes within the Gemini 3 family by load/gemini-search "topic" — model: gemini-2.5-pro— legacy (only if yourgemini-cli< v0.40)
Environment & Setup
Prerequisites
- Node.js v16.0.0+
- Google Gemini CLI — installed and authenticated
npm install -g @google/gemini-cli gemini auth - gemini-mcp-tool — MCP bridge for Claude Code (jamubc/gemini-mcp-tool)
npm install -g gemini-mcp-tool
MCP Configuration
In ~/.claude.json (or %APPDATA%\Claude\claude_desktop_config.json for Claude Desktop), add:
{
"mcpServers": {
"gemini-cli": {
"command": "gemini-mcp"
}
}
}
Alternative via npx (auto-install):
{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": ["-y", "gemini-mcp-tool"]
}
}
}
Or one-line setup:
claude mcp add gemini-cli -- npx -y gemini-mcp-tool
Authentication
Gemini CLI uses your Google account or an API key. Add to .claude/.env:
# .claude/.env
GEMINI_API_KEY=your-key-here
Claude Code automatically loads .claude/.env as environment variables.
- Free key from Google AI Studio
- Flash model (
gemini-2.5-flash) has a generous free tier (500 req/min)
Available MCP Tools
| Tool | Parameters | Description |
|---|---|---|
mcp__gemini-cli__ask-gemini | prompt (required), model (optional), sandbox (optional) | Ask Gemini for analysis or research; supports @file syntax |
mcp__gemini-cli__sandbox-test | prompt (required), model (optional) | Safe code execution in sandbox |
mcp__gemini-cli__ping | — | Connection test |
mcp__gemini-cli__help | — | Show Gemini CLI help |
Verify Setup
gemini --version
Workflow
Step 1: Parse Arguments
Parse $ARGUMENTS for:
- query: The research topic (required)
- max: Override MAX_RESULTS
- year: Minimum publication year (e.g.,
2020-) - code-only: Only include papers with open-source code
- venues: Comma-separated venue filter
- model: Override DEFAULT_MODEL
Step 2: Execute Search (MCP Priority)
Priority 1 — Gemini MCP (preferred):
Try calling mcp__gemini-cli__ask-gemini with the search prompt:
mcp__gemini-cli__ask-gemini({
prompt: 'You are a research literature scout. Search comprehensively for papers on: "QUERY"
IMPORTANT CONSTRAINTS:
1. Search from MULTIPLE angles — do not just use the exact query. Decompose the topic into sub-problems, aliases, neighboring tasks, and common benchmark/settings variants.
2. Prefer papers that are genuinely relevant, not merely keyword-adjacent.
3. Include top venues, journals, surveys, recent preprints, and papers with code when available.
4. Focus on papers from MIN_YEAR onward unless older foundational work is necessary.
For EACH paper found, provide ALL of the following in this exact format:
- Title: [exact title]
- Authors: [full author list]
- Year: [publication year]
- Venue: [exact conference/journal name + year, or "arXiv preprint" if not published]
- arXiv ID: [format 2401.12345, or "N/A"]
- DOI: [if available, or "N/A"]
- Code URL: [GitHub/GitLab link if available, or "No code"]
- Summary: [one-sentence core contribution]
Find at least MAX_RESULTS papers with good coverage across:
- strong recent papers from top venues
- surveys/reviews if they exist
- papers with open-source code
- closely related variants of the topic
Format as a numbered list with all fields for each paper.',
model: 'auto-gemini-3'
})
Priority 2 — Gemini CLI fallback (if MCP unavailable):
If mcp__gemini-cli__ask-gemini fails or is not configured, fall back to CLI:
gemini -p 'You are a research literature scout. Search comprehensively for papers on: "QUERY"
...same prompt as above...' 2>/dev/null
- Timeout: 120 seconds
- Stderr: Pipe to
/dev/null— contains hook warnings, not part of the response
When to use which:
- MCP is preferred because it integrates natively with Claude Code's tool system, handles model selection, and avoids shell escaping issues.
- CLI fallback ensures the skill works even when MCP is not configured or the MCP server process has crashed.
Step 3: Parse Results
Extract structured paper information from Gemini's response. For each paper, normalize to:
{
title, authors, year, venue,
arxiv_id, // "N/A" if not available
doi, // "N/A" if not available
code_url, // "No code" if not available
summary // one-sentence contribution
}
If Gemini returns fewer papers than requested, note this but do not re-query.
Step 4: Present Results
Format results as a structured table:
| # | Title | Venue | Year | Code | Summary |
|---|-------|-------|------|------|---------|
| 1 | ... | NeurIPS 2024 | 2024 | [GitHub](url) | ... |
| 2 | ... | IEEE TWC | 2023 | No | ... |
For each paper, also show:
- arXiv ID: if available (for cross-reference with
/arxiv) - DOI: if available (canonical link for published papers)
- Code: GitHub/GitLab link or "No"
Step 5: Offer Follow-up
After presenting results, suggest:
/semantic-scholar "topic" — search published venue papers with citation counts
/arxiv "arXiv:XXXX.XXXXX" — fetch specific preprint details
/research-lit "topic" — sources: gemini, semantic-scholar — combined multi-source review
/novelty-check "idea" — verify novelty against literature
Key Rules
- MCP first, CLI second. Always try
mcp__gemini-cli__ask-geminibefore falling back togemini -p. - Gemini is a discovery source, not a database. Its results may include papers it "knows about" from training data. Always cross-verify critical details (exact titles, venues, years) via
/semantic-scholaror/arxivwhen precision matters. - Do not use Gemini for citation counts. It may hallucinate citation numbers. Use Semantic Scholar for authoritative citation data.
- Pipe stderr to
/dev/nullin CLI mode — Gemini CLI emits hook warnings on stderr. - Timeout generously in CLI mode — Gemini's thorough search can take 30-60 seconds. Set timeout to 120s.
- If both MCP and CLI are unreachable, suggest using
/semantic-scholar,/arxiv, or/research-lit "topic" — sources: webas alternatives.
Frequently asked questions about Gemini Literature Search
Similar skills
Build Evidence Map
Create auditable maps for technical decisions and research.
Systematic Literature Review
Automate your systematic literature reviews with ease.
Nature Reference Verifier
Cross-verify academic references efficiently.
Nature Paper Card
Create evidence-grounded research cards for scientific papers.
Nature Literature Pipeline
Automate daily literature discovery and delivery.
Paperclip CLI
Efficiently search and read biomedical literature and regulatory documents.
