mcpField
G
get-paper

get-paper

github.com/lylll9436Productivity39180 installsUpdated 31w ago
Repository

About get-paper

get-paper is a skill that searches Google Scholar through Chrome DevTools browser automation and retrieves BibTeX for selected papers. It guides paper selection and can append entries to a bibliography file after checking for duplicate keys.

Key features

  1. 01Search Google Scholar
  2. 02Present paper metadata for selection
  3. 03Retrieve BibTeX entries
  4. 04Check bibliography keys for duplicates
  5. 05Append entries to a .bib file

Use cases

  1. 01Find papers matching a research query
  2. 02Retrieve BibTeX for selected search results
  3. 03Add citations to a project bibliography

MCP support

The skill uses Chrome DevTools MCP tools to navigate Google Scholar, search results, and extract BibTeX. It does not use Semantic Scholar MCP.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/lylll9436/paper-polish-workflow-skill --skill get-paper

After installing, type/get-paperin Claude Code to confirm it loaded.

Details

From the project README

Purpose

This Skill searches Google Scholar using Chrome DevTools MCP tools, presents search results to the user for selection, and retrieves BibTeX entries for selected papers. It automates the manual process of searching Google Scholar, clicking "Cite", and copying BibTeX. This Skill does NOT use Semantic Scholar MCP — it operates entirely through browser automation.

Trigger

Activates when the user asks to:

  • Search Google Scholar for a paper
  • Get BibTeX from Google Scholar
  • /get-paper <search query>

Workflow

Step 1: Navigate to Google Scholar
  • Call mcp__chrome-devtools__list_pages to check browser state.
  • If no page is open on scholar.google.com, call mcp__chrome-devtools__navigate_page to https://scholar.google.com.
  • If already on Google Scholar, reuse the current page.
Step 2: Search
  • Take a snapshot to find the search box element.
  • Fill the search box with the user's query using mcp__chrome-devtools__fill.
  • Click the Search button using mcp__chrome-devtools__click.
  • Wait for results with mcp__chrome-devtools__wait_for (text: ["Cited by"]).
Step 3: Present Results
  • Take a snapshot of search results.
  • Extract the top 5-8 results: title, authors, venue, year, citation count.
  • Present them as a numbered list to the user.
  • Ask the user which paper(s) to retrieve BibTeX for (support multiple selections).
  • If the user's query is an exact title and the first result is a clear match, skip asking and auto-select it.
Step 4: Get BibTeX (for each selected paper)

For each selected paper:

  1. Click Cite: Click the Cite button (haspopup="menu") for the selected result.
  2. Wait for dialog: Wait for ["BibTeX"] text to appear.
  3. Click BibTeX link: Click the BibTeX link inside the Cite dialog.
  4. Read BibTeX: Wait for ["@"] to appear on the new page. Take a snapshot and extract the full BibTeX entry text.
  5. Navigate back: Go back to the search results page (mcp__chrome-devtools__navigate_page type=back).
  6. Close dialog if open: If the Cite dialog is still showing, click Cancel.
Step 5: Output
  • Display all collected BibTeX entries to the user.
  • Ask the user if they want to append these entries to a specific .bib file.
    • If yes, read the target bib file, check for duplicate keys, and append new entries.
    • Default target: manuscript/references/references.bib (if it exists in the current project).

Output Contract

OutputFormatCondition
bibtex_entryBibTeX textAlways produced
Paper metadataNumbered list with title, authors, venue, year, citationsAlways presented before selection

Edge Cases

SituationHandling
Google Scholar CAPTCHA or rate-limitInform the user and stop
No results foundInform the user, suggest alternative keywords
BibTeX page fails to loadRetry once, then inform the user
Multiple papers selectedLoop through Step 4 for each selection
Cite dialog not closingNavigate back to force close

Notes

  • BibTeX keys from Google Scholar are auto-generated (e.g., wang2024assessing). Do not modify them unless the user asks.
  • This skill uses Chrome DevTools MCP tools only. It does NOT use Semantic Scholar MCP.
  • Multiple papers can be fetched in one session by repeating Step 4.

Prerequisites

This Skill requires Chrome DevTools MCP server to be configured in Claude Code. To enable it:

  1. Open Claude Code settings.
  2. Navigate to MCP Servers.
  3. Add the Chrome DevTools MCP server.
  4. Ensure a Chrome browser is running with remote debugging enabled.

Skill: get-paper

Comments

Markdown supported