Skip to main content
Glama

scholardata

scholardata is a small local bridge to the hosted HasData Google Scholar MCP server, which returns Google Scholar data as JSON. Ask it a scholarly question and it searches the index for papers, returning each hit with its citation count and versions; hand it the case id from a case-law result and it fetches that opinion in full, parties, court, dates and cited cases included; hand it one search result's id and it returns that result's citation snippets in MLA, APA, Chicago, Harvard and Vancouver, plus the export links for reference managers.

The bridge keeps no scholarly data of its own. It serves the upstream server's tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning the result untouched. The captured surface is read-only: it searches public bibliographic records and reads public court opinions. There is no write, messaging, or payment tool in it.

Tools

  • hasdata_google_scholar_scholar_getScholarSearchResults — search Google Scholar. Required: q (the query, which may use author: and source: helpers). Optional: hl, lr, start and num for paging, asYlo and asYhi for a year range, cites and cluster for cited-by and all-versions lookups, asSdt to scope the search to case law or patents, and the safe, filter, asVis, asRr and scisbd filters. Returns each organic result with title, link, snippet, publication info, cited-by count and link, related-articles link, and all-versions count and link.

  • hasdata_google_scholar_case_law_getScholarCaseLawOpinion — fetch one case-law opinion. Required: caseId (as returned in a case-law search result). Optional: hl. Returns the case title, party names, court, procedural history, argued and decided dates, short citations, docket numbers, and every case cited in the opinion.

  • hasdata_google_scholar_cite_getScholarCitationFormats — citation formats for one search result. Required: q (the result's resultId). Optional: hl. Returns MLA, APA, Chicago, Harvard and Vancouver snippets and BibTeX, EndNote, RefMan and RefWorks export links.

Related MCP server: scholarfetch

Configuration

  • HASDATA_GOOGLE_SCHOLAR_MCP_URL (optional) — override the upstream endpoint. Defaults to https://mcp.hasdata.com/mcp?apis=google_scholar. (The override hook is this rebuild's own labelled reconstruction.)

  • HASDATA_API_KEY (optional) — when set, every upstream request carries an x-api-key: <key> header, for the caller's own HasData API key. When it is not set, no key header is sent. (The header name and the env name are pinned by the original's registry record; forwarding the key from this env var is a labelled reconstruction — the original surface was captured keyless.)

Forwarding mechanics

On the first tool call the client opens a streamable HTTP session with the upstream: a JSON-RPC initialize request (protocolVersion 2025-03-26, clientInfo name scholardata), then a notifications/initialized notification, then the tools/call request carrying the caller's arguments unchanged. When the upstream answers initialize with an Mcp-Session-Id header, that value rides on every later request of the session, which is reused for the life of the process. Replies may arrive as plain JSON or as server-sent events; both are read.

Successful upstream results pass through verbatim, including any isError flag the upstream sets. Failures — a JSON-RPC error, a non-2xx status, an unreadable response, or a request that cannot be completed — come back as an isError result whose text starts with scholardata error: (this rendering is this rebuild's own labelled reconstruction).

CLI

Each tool is also a subcommand taking one JSON argument string:

npx @reneturcios/scholardata hasdata_google_scholar_scholar_getScholarSearchResults '{"q":"attention is all you need","asYlo":2017}'
npx @reneturcios/scholardata hasdata_google_scholar_case_law_getScholarCaseLawOpinion '{"caseId":"12345678901234567890"}'
npx @reneturcios/scholardata hasdata_google_scholar_cite_getScholarCitationFormats '{"q":"9876543210987654321"}'
npx @reneturcios/scholardata --version

Exit codes: 0 on success, 1 on an isError result, 2 on a usage error.

MCP server

npx -y @reneturcios/scholardata mcp

MCP client config:

{
  "mcpServers": {
    "scholardata": {
      "command": "npx",
      "args": ["-y", "@reneturcios/scholardata", "mcp"]
    }
  }
}

Docker

docker run -i ghcr.io/cloudcorprecords/scholardata
docker run --rm ghcr.io/cloudcorprecords/scholardata --version

The container's default command is mcp, so the first form is a stdio MCP server; any other arguments reach the CLI normally.

Development

npm install
npm run build
npm test
npm run dev

The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    • Rivul is a free, read-only remote MCP server for searching scholarly literature. It runs semantic search over more than 300 million paper records from a dated OpenAlex snapshot, so an agent can find papers by meaning rather than exact keywords, then open the full record for any result. Tools: - search_papers: semantic search with optional filters for publication year range, minimum citation count, open access only, topic and field. Sort by relevance, most cited, newest or oldest. - get_paper_details: the full record for one work by its OpenAlex ID: title, every author, venue, work type, topic, field, publication date, citation count, DOI and open-access links. - usage_status: the workspace's MCP usage for the current day. Results come only from the index, never from a model. Each result carries a stable OpenAlex ID so the source can be checked, and every response states the snapshot date. Useful for literature reviews, scoping reviews, finding highly cited or open-access papers on a topic, citation chasing, and checking that a cited paper exists. Free for every account, with no plans or payment. Sign in with Google through OAuth 2.1 (PKCE, dynamic client registration), or use an MCP key from rivul.ai. Endpoint: https://rivul.ai/mcp (Streamable HTTP). Setup and docs: https://rivul.ai/features/atlas

      https://rivul.ai/mcp
    • Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.

    • Read-only search of 2,189 AI agent tools (MCP servers, x402 APIs) with daily automated trust scores.

      https://dartzdabz.com/mcp/
    • All HasData scraping tools in one MCP server: Google, TikTok, Instagram, maps, e-commerce and more.

      https://mcp.hasdata.com/mcp

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP agents to search academic literature across multiple scholarly engines, explore papers, authors, and references, inspect abstracts and full text, maintain saved paper collections, and export citations, BibTeX, abstracts, or full-text corpora.
      1
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents and LLM tools to verify academic citations against real literature, detect hallucinated references, retrieve authoritative metadata and DOIs, generate BibTeX/APA/IEEE citations, and search over 200M+ scientific publications via MCP tools.
      3
      20 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search 1m+ open-access papers, standards, textbooks, and legal documents, resolve identifiers such as RFCs, DOIs, and legal citations, download PDFs, and retrieve citations and metadata through MCP tools.
      9
      MIT