Skip to main content

NBER-CLI

A desktop-first, local research workspace for following National Bureau of Economic Research (NBER) working papers. NBER-CLI also provides command-line and MCP interfaces designed for AI agents and automation.

Pytest Lint Docker Docs License PyPI version PyPI Downloads

简体中文 | Product website | Documentation | AIdeaLabs

NBER is a registered trademark of the National Bureau of Economic Research. This project is an independent open-source tool and is not affiliated with, endorsed by, or sponsored by the National Bureau of Economic Research. Before using the project, read the Usage Policy.

CLI citations

uvx nber-cli cite w1234                 # BibTeX → clipboard
uvx nber-cli cite w1234 -f apa
uvx nber-cli cite w1234 -f gb
uvx nber-cli cite w1234 --stdout > references.bib

See cite options and clipboard requirements.

Quickly Start

Connect to your agent client with http-mcp: https://nber-mcp.aidea-labs.com/mcp

  • Codex: codex mcp add nber-mcp --url https://nber-mcp.aidea-labs.com/mcp
  • Claude Code: claude mcp add nber-mcp -s user -t http https://nber-mcp.aidea-labs.com/mcp
  • OpenClaw: openclaw mcp add nber-mcp --url https://nber-mcp.aidea-labs.com/mcp

Start with Desktop

For researchers, the recommended entry point is NBER-CLI Desktop. Download the installer for macOS, Windows, or Linux from GitHub Releases. The app includes its own runtime: you do not need Python, uv, a terminal, or a locally running web service.

Desktop provides a focused research desk for:

  • Synchronizing and browsing the latest NBER working-paper feed.
  • Searching the local feed by title, author, paper ID, or tag, and filtering unread papers.
  • Reading abstracts and metadata in a resizable preview pane.
  • Marking papers read or unread.
  • Organizing papers with NBER Topics, NBER Programs, and private local tags.
  • Copying BibTeX, APA, MLA, Harvard, Chicago, or GB/T 7714 citations.
  • Adjusting the preview font size and automatic refresh interval.
  • Keeping the feed, metadata, read state, tags, and settings on the local device.

Current installers are unsigned. Confirm that the installer came from the official GitHub Release before following any macOS Gatekeeper or Windows SmartScreen override. Platform-specific installation and recovery steps are in the Desktop guide.

Choose an Interface

Interface Intended user Recommended when
Desktop Researchers You want a visual, local workspace and do not want to install developer tools.
MCP server AI agents Your agent supports MCP and should search, inspect, or download papers through structured tools.
CLI AI agents and automation The agent can run shell commands, or you need script-friendly text/JSON output.
Python API Developers You are integrating the core async functions into Python code.
Local HTTP API Local integrations A separate local application needs a loopback JSON API.

The Desktop app, CLI, MCP server, and optional HTTP API can share the same SQLite database. Their capabilities are intentionally different; see the software specification for the supported surface matrix.

Use with an AI Agent

MCP is the preferred structured interface. Start the stdio server with:

uvx nber-cli mcp-server

Example MCP client configuration:

{
  "mcpServers": {
    "nber-cli-mcp": {
      "command": "uvx",
      "args": ["nber-cli", "mcp-server"]
    }
  }
}

The MCP server exposes tools for paper lookup, search, and PDF download. Agent-specific installation guides are available for Claude Code, Codex, OpenClaw, and other MCP clients.

Agents that can run shell commands may use the CLI directly:

uvx nber-cli search "Labor Economics" --format json
uvx nber-cli info w25000 --format json
uvx nber-cli download w34567

For the complete command model, output contracts, filesystem restrictions, and exit codes, see the CLI reference and MCP reference.

Local Data and Network Access

By default, NBER-CLI stores its configuration, SQLite database, and diagnostic log under ~/.nber-cli/. It does not require an account or API key and does not upload the local database to project infrastructure.

  • Desktop contacts NBER only during a manual or scheduled Feed refresh; CLI, MCP, Python, and HTTP operations contact NBER when their requested workflow needs remote data.
  • Desktop contacts the GitHub Releases API only when the user selects 检查更新 (Check for Updates).
  • Desktop does not open a listening port.
  • The optional HTTP API and non-stdio MCP transports are separate, explicit integrations with their own security considerations.

See Persistence, Configuration, and Usage Policy before changing paths, deleting data, or exposing a network transport.

Documentation

  • User Manual: task-oriented operation guide, expected results, local side effects, backup, and removal.
  • Desktop Guide: installers, daily workflows, settings, keyboard controls, data, and troubleshooting.
  • Agent Guides: plugin, MCP, and skill setup for supported agents.
  • Software Specification: scope, module map, capability matrix, data model, constraints, and source traceability.
  • System Architecture: runtime components and trust boundaries.
  • Full Documentation: all user, API, operations, development, and release references.

Development

uv sync --dev --group docs
uv run pytest
uv run ruff check .
uv run --group docs mkdocs build --strict

Desktop development and release commands are documented in desktop/README.md and the development guide.

License

NBER-CLI is released under the Apache-2.0 License.

Metadata

Release files for nber-cli 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nber-cli 0.12.0
File Size Uploaded Provenance Actions
nber_cli-0.12.0.tar.gz 8.3 MB Without provenance Details for nber_cli-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nber-cli 0.12.0
File Interpreter ABI Platform Actions
nber_cli-0.12.0-py3-none-any.whl Python 3 none any Details for nber_cli-0.12.0-py3-none-any.whl

Total release size: 8.3 MB

Release files / nber_cli-0.12.0.tar.gz

Download URL nber_cli-0.12.0.tar.gz
Size 8.3 MB
Tags Source
SHA-256 checksum
How to use checksums
62c6c7d4a505630a3b9fe060f4c5237f657ee46ec66eeb4d5d6aa3294c7dc0d3
BLAKE2b-256 checksum
How to use checksums
4f72a0f60b5035e6d992cc0d4023ebe4a4fa460594737ade9be795648dd4bd76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nber_cli-0.12.0-py3-none-any.whl

Download URL nber_cli-0.12.0-py3-none-any.whl
Size 66.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35d4311501c4366a2d3feacde76195c8c71fd231fc333f8950854011fac52b0a
BLAKE2b-256 checksum
How to use checksums
83fbd1c8ef5153b663b73aa03cdaeff867e384be7955cc5961a62f7c7053067b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for nber-cli 0.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page