Skip to main content

A command line interface for reaching the National Bureau of Economic Research (NBER) paper without brower.

Project description

NBER-CLI

A command line interface for reaching the National Bureau of Economic Research (NBER) paper without brower.

Pytest Lint Docs License

简体中文 | Documentation

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. By using this project, you agree to the Usage Policy.

Features

  • Search NBER working papers by title, paper number, author, abstract, or keyword.
  • Fetch structured metadata and abstracts for a paper ID such as w25000.
  • Download single papers or batches as PDF files.
  • Expose the same core workflows as MCP tools for AI agents.
  • Return human-readable output by default, with JSON output for automation.

Quick Start

Use in Agents

NBER-CLI can be used by agents through plugins, the MCP server, and the skill. Claude Code and Codex should install the NBER-CLI plugin first; OpenClaw and other agents should use the MCP server plus the skill.

If you want an agent to install and check NBER-CLI automatically, send it this prompt:

Install NBER-CLI globally for yourself from https://github.com/sepinetam/nber-cli, and check the status.

After installation, verify it with either prompt:

I remember that in 2025, Anton had a paper on NBER about Agent for Econ. Download it to the current directory.
I remember that paper w25000 was interesting. Show me its abstract.

If you are an agent, visit the Agent Guides.

CLI Mode

Run commands directly with uvx:

uvx nber-cli search "Labor Economic"
uvx nber-cli info w25000
uvx nber-cli download w34567

Or install the command first:

uv tool install nber-cli
nber-cli search "Labor Economic"
nber-cli info w25000
nber-cli download w34567

MCP Server Mode

NBER-CLI can run as a stdio MCP server:

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.

Documentation

More usage details, command references, MCP setup, Python API examples, development notes, and release history are available in the documentation.

Development

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

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nber_cli-0.3.1.tar.gz (192.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nber_cli-0.3.1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file nber_cli-0.3.1.tar.gz.

File metadata

  • Download URL: nber_cli-0.3.1.tar.gz
  • Upload date:
  • Size: 192.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","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}

File hashes

Hashes for nber_cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 afd058f13a4c7730a4aae66b374338325c89712bbe8da6ab90155afe78a860a7
MD5 f450d7183795bf3ebebfba5a3db9b783
BLAKE2b-256 2c6723082ebdbc1f0277898e597e330fc74c5679d21cb9811f2dfa127b55b493

See more details on using hashes here.

File details

Details for the file nber_cli-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: nber_cli-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","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}

File hashes

Hashes for nber_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f5ac02013432ebd5b75ff0e3cbaf8a3d2557526694ef9d97e6c4edb80d52dd9
MD5 7378bb0a3ad65e900c45d1f0132b53ac
BLAKE2b-256 f29112d7ce2cb42a6af9ab0a33c1a3d7c07cf528656347afcf1de1159ac1213a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page