PocketBase CLI

•

Manage PocketBase instances and REST APIs through a context-optimized command-line interface and protocol server.

PocketBase CLI (pbctl) connects AI agents and developers to PocketBase instances via a lightweight, context-efficient interface and integrated MCP server. Designed specifically to conserve LLM context windows, it generates compact output across complete PocketBase REST API features, including record queries, schema inspections, file operations, crons, and log viewing. With multi-tier enforceable read-only safeguards, dry-run capabilities, and strict write confirmation requirements, it enables autonomous agents to safely explore and interact with production and development databases without risking unintended data loss.

主要功能

01Enforceable multi-tier read-only safeguards preventing accidental data modifications
02Full PocketBase REST API coverage spanning records, collections, logs, files, settings, backups, and SQL
030 GitHub stars
04Built-in MCP server mode running over stdio for seamless LLM client integration
05Destructive action protections including mandatory confirmation flags and dry-run validation
06Compact, token-efficient table output specifically optimized for AI agent context limits

使用案例

01Managing records, schemas, and files across local and remote PocketBase instances using configured profiles
02Enabling AI coding assistants to safely query and inspect PocketBase records and schemas without write access
03Automating backend administration, log monitoring, and database inspection from command-line environments