@airtable/mcp-cli

中文文档
0.2.9发布于 2026/08/08MIT构建来源已验证近 30 天下载 3998

Airtable MCP CLI — auto-discovers commands from the MCP server

原始使用文档
文档目录11 节
  1. Install
  2. Quick start
  3. Commands
  4. Flags
  5. Profiles
  6. Skills
  7. Automation and agents
  8. Environment variables
  9. Configuration
  10. Development
  11. License

Airtable MCP CLI

Manage your Airtable bases from the terminal.

This CLI discovers commands from the Airtable MCP server at runtime. airtable-mcp tools shows whatever the server exposes at that moment. If the server adds, removes, or renames a tool, the CLI reflects that without a client release. See DESIGN.md for the design rationale.

Install

npm install -g @airtable/mcp-cli

Or download a standalone binary:

curl -fsSL https://raw.githubusercontent.com/Airtable/airtable-mcp-cli/main/install.sh | sh

Quick start

Set up your personal access token. Credentials are stored in a default profile. Use --profile <name> to create additional profiles.

airtable-mcp configure

Discover what you have access to:

airtable-mcp tools
airtable-mcp list-bases

Then act on it:

airtable-mcp list-records --baseId appXXX --tableIdOrName Tasks

The first time you run a tool, the CLI fetches the tool list from the server and caches it for 60 seconds. After that, subsequent commands are fast. Use --refresh on any tool command to bypass the cache.

This CLI is experimental and tool names, arguments, and output formats may change without notice. The tools you see today may be renamed, removed, or have their arguments changed in a future server update. If you're scripting against specific tools, check for tool existence before calling and handle missing or unexpected fields in output.

Commands

airtable-mcp configure               Set up personal access token
airtable-mcp whoami                   Show current auth status
airtable-mcp logout                   Remove saved credentials
airtable-mcp tools                    List available tools
airtable-mcp <tool> [--flags]         Run a tool
airtable-mcp <tool> --help, -h        Show help and flags for a tool
airtable-mcp completions <shell>      Generate shell completions (bash, zsh, fish)
airtable-mcp --help, -h               Show help
airtable-mcp --version, -v            Print version

Most commands accept --profile <name> to switch between accounts.

Flags

Tool output defaults to formatted JSON. The tools command defaults to a human-readable list.

FlagApplies toDescription
--profile <name>allUse a named profile
--jsontoolsOutput tool list as JSON
--refreshtools, <tool>Bypass the tool cache
--output raw<tool>Raw text output instead of JSON
--input -<tool>Read arguments as JSON from stdin
-q, --quiet<tool>Suppress status messages on stderr

Profiles

Manage multiple accounts:

airtable-mcp configure --profile work
airtable-mcp configure --profile personal
airtable-mcp tools --profile work

Skills

Install pre-built skills for common workflows:

npx skills add airtable/skills

Other installation methods can be found in the Airtable Skills repo.

Automation and agents

This CLI is meant to be driven by scripts and agents. Flags, output behavior, and exit codes are the stable part. Tool names and schemas are not; they come from the server at runtime.

Useful pieces:

  • AIRTABLE_TOKEN: skip configure, useful in CI
  • tools --json: discover tools programmatically
  • --input -: pass arguments as JSON on stdin
  • -q: keep stdout clean
  • --output raw: return the server response without JSON formatting

Example:

export AIRTABLE_TOKEN=pat_xxx
airtable-mcp tools --json
echo '{"baseId":"appXXX","tableIdOrName":"Tasks"}' | airtable-mcp list-records --input - -q

Environment variables

VariableDescription
AIRTABLE_TOKENPersonal access token. Overrides airtable-mcp configure.
AIRTABLE_MCP_ENDPOINTMCP server URL (default: https://mcp.airtable.com/mcp).

Endpoints are restricted to HTTPS on *.airtable.com to prevent token exfiltration to arbitrary servers.

Configuration

Config is stored in ~/.airtable/cli.json with restricted file permissions (0600). The config directory is created with 0700 permissions. Tool definitions are cached in ~/.airtable/cache-{profile}.json (0600) with a 60-second TTL. On read the cache is checked against a stored hash to detect corruption, and cached tool metadata has control and escape characters stripped before it is printed. Neither is a defense against a local attacker who can already run code as your user; treat the cache file as trusted only to the extent your user account is.

Development

npm install
npm run build
npm run typecheck
npm test

Install locally as the airtable-mcp command:

npm run build
npm link

After npm link, only re-run npm run build to pick up changes — no need to re-link.

Unlink when done:

npm unlink -g @airtable/mcp-cli

License

MIT

版本与发布记录

@airtable/mcp-cli 共发布 8 个版本,首次发布于 2026/05/01;过去 12 个月发布了 8 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.9latest2026/08/083 个月前
0.2.62026/07/014 个月前
0.2.52026/06/094 个月前
0.2.42026/05/235 个月前
0.2.32026/05/145 个月前
0.2.12026/05/056 个月前

关于 @airtable/mcp-cli 的常见问题

@airtable/mcp-cli 是什么?

Airtable MCP CLI — auto-discovers commands from the MCP server

如何安装 @airtable/mcp-cli?

在项目目录运行 npm install @airtable/mcp-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 airtable-mcp,可以用 npx airtable-mcp 直接运行。

@airtable/mcp-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/airtable__mcp-cli 是否存在。

@airtable/mcp-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@airtable/mcp-cli 可以商用吗?

@airtable/mcp-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@airtable/mcp-cli 的下载量有多少?

根据 npm 官方下载统计,@airtable/mcp-cli 在 2026/10/05 – 2026/11/03 这 30 天内被下载 3,998 次,日均约 133 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@airtable/mcp-cli 还在维护吗?

最新版本 0.2.9 发布于 2026/08/08(3 个月前);至今共发布 8 个版本,其中过去 12 个月发布了 8 个;首次发布于 2026/05/01。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。