About Pocketbase MCP
Pocketbase MCP is an MCP server published by mabeldata in the Browser category: this is an MCP server that interacts with a PocketBase instance. It allows you to fetch, list, create, update, and manage records and files in your PocketBase collections. Conduid read 33 tools from its source: add_field_migration, apply_all_migrations, apply_migration, batch_records, create_backup, create_collection_migration and 27 more. No package is published for it, so it installs from a source checkout.
The repository has 43 stars and 10 forks, is licensed MIT, and its last commit was on 10 Sep 2026. The latest release is v1.1.3 (22 Apr 2025): Overview This PR adds support for PocketBase's cron job management capabilities to the PocketBase MCP server. It follows v1.1.2 (9 Apr 2025), and the 4 most recent releases go back to v1.0.0 (8 Apr 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include backend, cline, browser and pocketbase.
Install
git clone https://github.com/mabeldata/pocketbase-mcpTools (33)
add_field_migrationCreate a migration file for adding a field to an existing collection.| Parameter | Type | Description |
|---|---|---|
| collectionNameOrId * | string | The name or ID of the collection to update. |
| description | string | Optional description override for the filename. |
| fieldDefinition * | object | The schema definition for the new field. |
apply_all_migrationsApply all pending migrations.| Parameter | Type | Description |
|---|---|---|
| appliedMigrations | array | Array of already applied migration filenames. |
apply_migrationApply a specific migration file.| Parameter | Type | Description |
|---|---|---|
| migrationFile * | string | Name of the migration file to apply. |
batch_recordsExecute multiple record create/update/upsert/delete operations in a single transactional batch request (PocketBase >= v0.23). If any operation fails, the whole batch is rolled back by the server. NOTE: on PocketBase >= v0.39 the server disables batch by default — enable it via update_settings with { "batch": { "enabled": true } } or the call fails with 403 "Batch requests are not allowed".| Parameter | Type | Description |
|---|---|---|
| requests * | array | Ordered list of record operations to execute in one transaction. |
create_backupCreate a new database+storage backup on the PocketBase instance. The operation is queued by the server and may take a moment to appear in list_backups.| Parameter | Type | Description |
|---|---|---|
| name | string | Optional backup filename; when provided it MUST end in ".zip" and contain only letters, digits, "_" and "-" (e.g., "pre_deploy.zip"). If omitted the server generates "pb_backup_<timestamp>.zip". |
create_collection_migrationCreate a migration file specifically for creating a new PocketBase collection.| Parameter | Type | Description |
|---|---|---|
| collectionDefinition * | object | The full schema definition for the new collection (including name, id, fields, rules, etc.). |
| description | string | Optional description override for the filename. |
create_migrationCreate a new, empty PocketBase migration file with a timestamped name.| Parameter | Type | Description |
|---|---|---|
| description * | string | A brief description for the migration filename (e.g., "add_user_email_index"). |
create_recordCreate a new record in a PocketBase collection.| Parameter | Type | Description |
|---|---|---|
| collection * | string | The name or ID of the PocketBase collection. |
| data * | object | The data for the new record (key-value pairs). |
delete_recordDelete a record from a PocketBase collection by ID (permanent — the record is removed server-side).| Parameter | Type | Description |
|---|---|---|
| collection * | string | The name or ID of the PocketBase collection. |
| id * | string | The ID of the record to delete. |
download_fileGet the URL to download a file from a PocketBase collection record field.| Parameter | Type | Description |
|---|---|---|
| collection * | string | The name or ID of the collection. |
| fileField * | string | The name of the file field. |
| recordId * | string | The ID of the record containing the file. |
dry_run_view_queryValidate a VIEW collection query without saving the collection (server >= v0.37). Returns the resulting field definitions and a sample of rows, or a validation error.| Parameter | Type | Description |
|---|---|---|
| query * | string | The SQL SELECT statement backing the view collection. |
fetch_recordFetch a single record from a PocketBase collection by ID.| Parameter | Type | Description |
|---|---|---|
| collection * | string | The name or ID of the PocketBase collection. |
| id * | string | The ID of the record to fetch. |
get_collection_scaffoldsGet example collection schema payloads (scaffolds) from the PocketBase instance (server >= v0.37) — an object keyed by collection type (base, auth, view) with ready-to-edit templates for building new collections.get_collection_schemaGet the schema (fields, rules, etc.) of a PocketBase collection.| Parameter | Type | Description |
|---|---|---|
| collection * | string | The name or ID of the PocketBase collection. |
get_logGet a single API request log by ID.| Parameter | Type | Description |
|---|---|---|
| id * | string | The ID of the log to fetch. |
get_logs_statsGet API request logs statistics with optional filtering.| Parameter | Type | Description |
|---|---|---|
| filter | string | PocketBase filter string (e.g., "method='GET'"). |
get_settingsFetch all PocketBase app settings (meta, logs, smtp, email templates, external stores, etc.). Secret fields are returned masked by the server.list_backupsList all backup files available on the PocketBase instance (name, size, last modified).list_collectionsList all collections in the PocketBase instance.list_cron_jobsReturns list with all registered app level cron jobs.| Parameter | Type | Description |
|---|---|---|
| fields | string | Comma separated string of the fields to return in the JSON response (by default returns all fields). Ex.:?fields=*,expand.relField.name |
list_logsList API request logs from PocketBase with filtering, sorting, and pagination.| Parameter | Type | Description |
|---|---|---|
| filter | string | PocketBase filter string (e.g., "method='GET'"). |
| page | number | Page number (defaults to 1). |
| perPage | number | Items per page (defaults to 30, max 500). |
| sort | string | PocketBase sort string (e.g., "-created,url"). |
list_migrationsList all migration files found in the PocketBase migrations directory.list_recordsList records from a PocketBase collection. Supports filtering, sorting, pagination, and expansion.| Parameter | Type | Description |
|---|---|---|
| collection * | string | The name or ID of the PocketBase collection. |
| expand | string | PocketBase expand string (e.g., "user,tags.name"). |
| filter | string | PocketBase filter string (e.g., "status='active'"). |
| page | number | Page number (defaults to 1). |
| perPage | number | Items per page (defaults to 30, max 500). |
| sort | string | PocketBase sort string (e.g., "-created,name"). |
restore_backupRestore the PocketBase instance from an existing backup file. DESTRUCTIVE: replaces all current data. Requires confirm=true.| Parameter | Type | Description |
|---|---|---|
| confirm * | boolean | Must be explicitly true to perform the restore. |
| key * | string | The backup file key/name as returned by list_backups (e.g., "pb_data_20260910_112233.zip"). |
revert_migrationRevert a specific migration file.| Parameter | Type | Description |
|---|---|---|
| migrationFile * | string | Name of the migration file to revert. |
revert_to_migrationRevert migrations up to a specific target.| Parameter | Type | Description |
|---|---|---|
| appliedMigrations | array | Array of already applied migration filenames. |
| targetMigration * | string | Name of the migration to revert to (exclusive). Use empty string to revert all. |
run_cron_jobTriggers a single cron job by its id.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | The identifier of the cron job to run. |
run_sqlExecute a raw SQL query against the PocketBase instance (server >= v0.39). DANGEROUS: requires the server process to be started with POCKETBASE_ENABLE_SQL=true; returns an error otherwise. Use read-only queries when possible.| Parameter | Type | Description |
|---|---|---|
| query * | string | The SQL statement to execute (single statement). |
set_migrations_directorySet the directory where migration files will be created and read from.| Parameter | Type | Description |
|---|---|---|
| customPath | string | Custom path for migrations. If not provided, defaults to "pb_migrations" in the current working directory. |
truncate_logsDelete ALL API request logs from the PocketBase instance (server >= v0.40). DESTRUCTIVE and irreversible. Requires confirm=true.| Parameter | Type | Description |
|---|---|---|
| confirm * | boolean | Must be explicitly true to delete all logs. |
update_recordUpdate an existing record in a PocketBase collection by ID.| Parameter | Type | Description |
|---|---|---|
| collection * | string | The name or ID of the PocketBase collection. |
| data * | object | The data fields to update (key-value pairs). |
| id * | string | The ID of the record to update. |
update_settingsBulk-update PocketBase app settings with a partial payload (PATCH semantics: only the provided keys change). Provide real values for secret fields — the masked "******" placeholder from get_settings is not accepted by the server.| Parameter | Type | Description |
|---|---|---|
| data * | object | Partial settings payload, e.g. { "logs": { "maxDays": 14 } } or { "meta": { "appName": "My App" } }. |
upload_fileUpload a file (provided as content string) to a PocketBase collection record field.| Parameter | Type | Description |
|---|---|---|
| collection * | string | The name or ID of the collection. |
| fileContent * | string | The raw content of the file as a string. |
| fileField * | string | The name of the file field in the collection schema. |
| fileName * | string | The desired name for the uploaded file (e.g., "report.txt"). |
| recordId * | string | The ID of the record to attach the file to. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.7K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 28 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/server/pocketbase-server.ts:2
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 2 callssrc/migrations/helpers/file-system.ts:61, src/migrations/helpers/file-system.ts:78
- Lockfile
- package-lock.json
Pattern matches on the source text of 28 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.7K words, fetched a month ago. The original in the repository is authoritative.
Read full README