# doiget

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/QAtlasHub/doiget  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/doiget

## Description
OA-first paper fetcher: DOIs/arXiv IDs to local PDFs + metadata via Open Access APIs.

## Claude Desktop Quick Installation
Heuristic fallback — verify the package name and runner against the repository README before running it. Uses `npx` (confidence: low):

```json
"mcpServers": {
  "doiget": {
    "command": "npx",
    "args": ["-y","doiget"]
  }
}
```

## Documentation & README

# doiget

> A single-binary CLI + stdio MCP server that turns DOIs and arXiv ids into local PDFs through official, OA-first APIs.
> Designed as the **agent-facing companion** to [BiblioFetch.jl](https://github.com/sotashimozono/BiblioFetch.jl).

[![crates.io](https://img.shields.io/crates/v/doiget-core.svg)](https://crates.io/crates/doiget-core)
[![downloads](https://img.shields.io/crates/d/doiget-core.svg)](https://crates.io/crates/doiget-core)
[![MSRV](https://img.shields.io/crates/msrv/doiget-core.svg)](https://crates.io/crates/doiget-core)
[![docs.rs](https://img.shields.io/docsrs/doiget-core)](https://docs.rs/doiget-core)
[![CI](https://github.com/QAtlasHub/doiget/actions/workflows/ci.yml/badge.svg)](https://github.com/QAtlasHub/doiget/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/QAtlasHub/doiget/branch/main/graph/badge.svg)](https://codecov.io/gh/QAtlasHub/doiget)
[![issues](https://img.shields.io/github/issues/QAtlasHub/doiget)](https://github.com/QAtlasHub/doiget/issues)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

[![docs (stable)](https://img.shields.io/badge/docs-stable-blue)](https://codes.sota-shimozono.com/doiget/)
[![docs (dev/next)](https://img.shields.io/badge/docs-dev%20%28next%29-orange)](https://codes.sota-shimozono.com/doiget/dev/)
[![API (docs.rs)](https://img.shields.io/badge/API-docs.rs-blue)](https://docs.rs/doiget-core)

**Docs:** stable = the Zola site (built from `main`); dev = rustdoc built from `next`; API = `docs.rs` (latest published release).

**Status:** Shipping on crates.io (`doiget-core`, `doiget-cli`,
`doiget-mcp`), with sigstore-signed binaries + an SBOM attached to the GitHub
Release. Tier 1 + Tier 2 sources, the stdio MCP server, citation-graph
expansion, and gated TDM sources are all implemented. Releases are cut by a
single signed git tag through the tag-driven pipeline (see
[ADR-0025](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/DECISIONS/0025-tag-driven-release.md)); `release-plz` was
retired. See [CHANGELOG.md](https://github.com/QAtlasHub/doiget/blob/HEAD/CHANGELOG.md) for history and
[docs/PHASES.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/PHASES.md) for the phase plan.

## Posture

doiget is a general-purpose automation tool for retrieving papers via official publisher APIs.
By design, doiget only attempts retrieval through:

1. Public Open Access sources (default — Crossref, Unpaywall, arXiv).
2. Credentials the user has personally configured for their own institutional or personal subscriptions (opt-in, compile-time gated).

**doiget does not** work around any access control mechanism, redistribute papers, host
content, operate as a SaaS, or bundle any publisher API keys.

Users are responsible for ensuring they have the right to access the content they request and
for compliance with each source's Terms of Service.

See [docs/LEGAL.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/LEGAL.md) and [docs/SCOPE.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/SCOPE.md).

## Documentation

| Reader | Entry point |
|---|---|
| CLI user | This README, then `doiget --help`, then [docs/CONFIG.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/CONFIG.md) and [docs/ERRORS.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/ERRORS.md) for non-trivial flags / exit codes |
| Agent / MCP host integrator | [docs/MCP_TOOLS.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/MCP_TOOLS.md) + [docs/INTEGRATION/README.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/INTEGRATION/README.md) |
| Library user (Rust) | [docs/PUBLIC_API.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/PUBLIC_API.md) + crates.io rustdoc |
| Contributor | [CONTRIBUTING.md](https://github.com/QAtlasHub/doiget/blob/HEAD/CONTRIBUTING.md) → [docs/ARCHITECTURE.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/ARCHITECTURE.md) → [docs/DECISIONS/](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/DECISIONS/) |
| Publisher legal team | [docs/LEGAL.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/LEGAL.md) + [CONTACT.md](https://github.com/QAtlasHub/doiget/blob/HEAD/CONTACT.md) |
| Security researcher | [docs/SECURITY.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/SECURITY.md) + [docs/PROVENANCE_LOG.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/PROVENANCE_LOG.md) + [docs/CAPABILITY.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/CAPABILITY.md) |
| BiblioFetch.jl user | [docs/MIGRATION.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/MIGRATION.md) + [docs/STORE.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/STORE.md) + [docs/SAFEKEY.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/SAFEKEY.md) |

Architecture: [docs/ARCHITECTURE.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/ARCHITECTURE.md)
Threat model: [docs/SECURITY.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/SECURITY.md)
Permanent non-goals: [docs/SCOPE.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/SCOPE.md)
Phase plan: [docs/PHASES.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/PHASES.md)
ADRs: [docs/DECISIONS/](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/DECISIONS/)

## Installation

doiget ships a single self-contained binary — the Linux build is fully static
(musl), so it runs on old glibc / HPC boxes too. Every channel installs the
**same checksum-verified binary** from the signed GitHub Release.

> **Recommended: use a prebuilt binary (no Rust toolchain, no compiler).** The
> shell / PowerShell installers below download the signed release binary
> directly. `cargo install` (further down) instead *compiles from source* and
> therefore needs a working C/C++ build toolchain — see that section for the
> per-platform requirements.

### Shell installer (Linux / macOS)

```sh
curl -fsSL https://raw.githubusercontent.com/QAtlasHub/doiget/main/scripts/install.sh | sh
```

Installs to `~/.local/bin` (override with `DOIGET_INSTALL_DIR`); pin a version with
`DOIGET_VERSION=0.6.0`. The script verifies the published SHA-256 sidecar before installing.

### PowerShell installer (Windows)

```powershell
irm https://raw.githubusercontent.com/QAtlasHub/doiget/main/scripts/install.ps1 | iex
```

### From crates.io (Rust toolchain — compiles from source)

The published crate is **`doiget-cli`** (it produces the `doiget` binary).
`cargo install doiget` does **not** work — there is no crate by that bare name:

```sh
cargo install doiget-cli   # installs the `doiget` binary
```

Because this **compiles from source**, you need a C/C++ build toolchain (a
linker is mandatory — `cargo install` cannot link a binary without one):

- **Linux:** `gcc`/`clang` + `make` (e.g. `build-essential`).
- **macOS:** Xcode Command Line Tools (`xcode-select --install`).
- **Windows:** either the **Visual Studio Build Tools** with the *"Desktop
  development with C++"* workload (provides `link.exe`), **or** a MinGW-w64
  toolchain used via the GNU target
  (`rustup toolchain install stable-x86_64-pc-windows-gnu` +
  `cargo +stable-x86_64-pc-windows-gnu install doiget-cli`).

If you don't have (or don't want) a build toolchain, use one of the prebuilt
installers above — they need no compiler.

Further prebuilt-binary channels (Homebrew tap, `cargo binstall`, npm/npx, Nix flake,
`.deb`) are tracked in [#247](https://github.com/QAtlasHub/doiget/issues/247). Every
release asset is cosign-keyless signed (`<asset>.cosign.bundle`) for optional verification.

## Quick start

```sh
# Fetch a paper by DOI (Open Access only by default)
doiget fetch 10.1103/PhysRevLett.130.200601

# Fetch by arXiv id
doiget fetch arXiv:2401.12345

# Batch fetch
doiget batch refs.txt

# Verify a bibliography's references resolve (no PDF download) — CI gate
doiget verify docs/references.bib --strict

# Lint a .bib for structural issues (no network): missing fields,
# blank fields, $$-display-math titles. Read-only and math-aware.
doiget lint docs/references.bib

# Inspect what was fetched
doiget info 10.1103/PhysRevLett.130.200601

# Run as MCP server (stdio)
doiget serve
```

Default features fetch only Open Access PDFs through Crossref / Unpaywall / arXiv.
Institutional TDM access (Springer OA, APS Harvest, Elsevier ScienceDirect TDM) is **not** in
the default published binary; it must be opted in at build time per publisher.
See [docs/SOURCES.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/SOURCES.md).

## Coexistence with BiblioFetch.jl

doiget and BiblioFetch.jl share the same on-disk store format (TOML metadata + PDF files
under a configurable store root). doiget defaults to `./papers` (under the current working
directory; ADR-0036), BiblioFetch.jl to `~/papers/`; point both at the same root (e.g.
`DOIGET_STORE_ROOT=~/papers`) to share one store. The shared schema, locking protocol, and
atomic write contract are
specified in [docs/STORE.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/STORE.md). Reference test vectors for the shared safekey
algorithm are in [docs/SAFEKEY.md](https://github.com/QAtlasHub/doiget/blob/HEAD/docs/SAFEKEY.md).

| Tool | Best for |
|---|---|
| BiblioFetch.jl | Julia REPL, research vault, citation graph exploration |
| doiget | Agents / MCP hosts, batch operations, scripted pipelines, container deployments |

## License

MIT for the doiget source code and binaries (see [LICENSE](https://github.com/QAtlasHub/doiget/blob/HEAD/LICENSE)).

The license under which doiget retrieves papers is **separate** and is determined by each
paper's own license, the publisher's API Terms of Service, and the user's own access rights.
doiget does not relicense fetched content.

## Contact

Takedown requests, security disclosures, and other formal correspondence:
[CONTACT.md](https://github.com/QAtlasHub/doiget/blob/HEAD/CONTACT.md).

