Skip to main content
Glama
unpaywall-mcp

unpaywall-mcp

by dam2452

unpaywall-mcp

Polski

Unpaywall Open Access scholarly API MCP server. Looks up free-to-read versions of papers by DOI and searches article titles for OA matches.

Table of contents

Related MCP server: OpenAlex MCP Server

Tools

Tool

Parameters

Description

get_doi

doi: str

OA status + bibliographic metadata for a single DOI

search_articles

query: str, is_oa: Optional[bool] = None, page: int = 1

Search article titles; returns up to 50 DOI objects per page

search_articles query modifiers: "quoted phrase" (contiguous), OR (either term), -term (exclude). is_oa tri-state: None no filter, True OA only, False non-OA only.

Environment variables

Variable

Required

Description

UNPAYWALL_MCP_EMAIL

yes

Contact email Unpaywall requires on every request

Unpaywall rate limit: 100,000 calls/day per email.

Wiring it up

Only requirement: uv (https://docs.astral.sh/uv/). Nothing else to install.

Claude Code

claude mcp add unpaywall-mcp -e UNPAYWALL_MCP_EMAIL=<your-email> -- uvx --from git+https://github.com/dam2452/unpaywall-mcp.git unpaywall-mcp

Claude Desktop / other MCP client

{
  "mcpServers": {
    "unpaywall-mcp": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/dam2452/unpaywall-mcp.git", "unpaywall-mcp"],
      "env": { "UNPAYWALL_MCP_EMAIL": "<your-email>" }
    }
  }
}

After pushing a new version: uv cache clean and restart the client.

Local run

uv run --directory . unpaywall-mcp

Tests (manual):

uv run --directory . --with pytest pytest test/

Available Tools

2 tools
get_doiA

Look up Open Access status and bibliographic metadata for a single DOI.

Returns the full Unpaywall DOI object: title, authors, publication info, OA status, best OA location (free PDF link if available), and more.

Examples: get_doi(doi="10.1038/nature12373") get_doi(doi="10.1007/s11222-022-10107-2")

Inputs: doi (required). Returns: object

search_articlesA

Search Unpaywall article titles and return matching DOI objects.

Search terms are whitespace-split and AND-ed by default. Modifiers inside query:

  • "quoted phrase" : words must appear as a contiguous phrase

  • OR : match either term (replaces default AND)

  • -term : exclude titles containing this term

Returns up to 50 results per page, sorted by match score. Each result contains the full DOI object, a numeric score, and an HTML snippet showing where the query matched the title.

Examples: search_articles(query="cell thermometry") search_articles(query='single "cell thermometry"', is_oa=True) search_articles(query="machine learning OR deep learning", is_oa=False, page=2)

Inputs: query (required), page, is_oa. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: get_doi retrieves data for a known DOI, while search_articles finds articles by title query. No overlap or ambiguity.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern: get_doi and search_articles. The naming is predictable and easy to understand.

    Tool Count4/5

    Two tools is lean but reasonable for a focused API that covers the primary use cases: fetching by DOI and searching by title. Could be expanded with additional identifiers, but the count is appropriate for a minimal server.

    Completeness4/5

    The server covers the core functionality of the Unpaywall API: single DOI lookup and title search. Minor gaps exist (e.g., no batch operations or search by other metadata), but the main workflows are supported.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI clients to search for academic papers, fetch metadata by DOI, retrieve open access PDF links, and extract full text from research papers using the Unpaywall API. Provides seamless access to scholarly literature for research and analysis tasks.
      4
      36 npm
      12
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables scholarly search, paper metadata, citation graphs, author and venue resolution, candidate harvesting, API quota visibility, and guarded full-text downloads through the OpenAlex API.
      9
      4
      MIT