1. Conduid
  2. Browser
  3. Pocketbase MCP
MCP server · Browser

Pocketbase MCP

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.

51Fair

Scored 9 hours ago · breakdown

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

From source
git clone https://github.com/mabeldata/pocketbase-mcp

Tools (33)

add_field_migrationCreate a migration file for adding a field to an existing collection.
ParameterTypeDescription
collectionNameOrId *stringThe name or ID of the collection to update.
descriptionstringOptional description override for the filename.
fieldDefinition *objectThe schema definition for the new field.
apply_all_migrationsApply all pending migrations.
ParameterTypeDescription
appliedMigrationsarrayArray of already applied migration filenames.
apply_migrationApply a specific migration file.
ParameterTypeDescription
migrationFile *stringName 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".
ParameterTypeDescription
requests *arrayOrdered 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.
ParameterTypeDescription
namestringOptional 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.
ParameterTypeDescription
collectionDefinition *objectThe full schema definition for the new collection (including name, id, fields, rules, etc.).
descriptionstringOptional description override for the filename.
create_migrationCreate a new, empty PocketBase migration file with a timestamped name.
ParameterTypeDescription
description *stringA brief description for the migration filename (e.g., "add_user_email_index").
create_recordCreate a new record in a PocketBase collection.
ParameterTypeDescription
collection *stringThe name or ID of the PocketBase collection.
data *objectThe 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).
ParameterTypeDescription
collection *stringThe name or ID of the PocketBase collection.
id *stringThe ID of the record to delete.
download_fileGet the URL to download a file from a PocketBase collection record field.
ParameterTypeDescription
collection *stringThe name or ID of the collection.
fileField *stringThe name of the file field.
recordId *stringThe 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.
ParameterTypeDescription
query *stringThe SQL SELECT statement backing the view collection.
fetch_recordFetch a single record from a PocketBase collection by ID.
ParameterTypeDescription
collection *stringThe name or ID of the PocketBase collection.
id *stringThe 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.
ParameterTypeDescription
collection *stringThe name or ID of the PocketBase collection.
get_logGet a single API request log by ID.
ParameterTypeDescription
id *stringThe ID of the log to fetch.
get_logs_statsGet API request logs statistics with optional filtering.
ParameterTypeDescription
filterstringPocketBase 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.
ParameterTypeDescription
fieldsstringComma 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.
ParameterTypeDescription
filterstringPocketBase filter string (e.g., "method='GET'").
pagenumberPage number (defaults to 1).
perPagenumberItems per page (defaults to 30, max 500).
sortstringPocketBase 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.
ParameterTypeDescription
collection *stringThe name or ID of the PocketBase collection.
expandstringPocketBase expand string (e.g., "user,tags.name").
filterstringPocketBase filter string (e.g., "status='active'").
pagenumberPage number (defaults to 1).
perPagenumberItems per page (defaults to 30, max 500).
sortstringPocketBase sort string (e.g., "-created,name").
restore_backupRestore the PocketBase instance from an existing backup file. DESTRUCTIVE: replaces all current data. Requires confirm=true.
ParameterTypeDescription
confirm *booleanMust be explicitly true to perform the restore.
key *stringThe backup file key/name as returned by list_backups (e.g., "pb_data_20260910_112233.zip").
revert_migrationRevert a specific migration file.
ParameterTypeDescription
migrationFile *stringName of the migration file to revert.
revert_to_migrationRevert migrations up to a specific target.
ParameterTypeDescription
appliedMigrationsarrayArray of already applied migration filenames.
targetMigration *stringName of the migration to revert to (exclusive). Use empty string to revert all.
run_cron_jobTriggers a single cron job by its id.
ParameterTypeDescription
jobId *stringThe 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.
ParameterTypeDescription
query *stringThe SQL statement to execute (single statement).
set_migrations_directorySet the directory where migration files will be created and read from.
ParameterTypeDescription
customPathstringCustom 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.
ParameterTypeDescription
confirm *booleanMust be explicitly true to delete all logs.
update_recordUpdate an existing record in a PocketBase collection by ID.
ParameterTypeDescription
collection *stringThe name or ID of the PocketBase collection.
data *objectThe data fields to update (key-value pairs).
id *stringThe 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.
ParameterTypeDescription
data *objectPartial 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.
ParameterTypeDescription
collection *stringThe name or ID of the collection.
fileContent *stringThe raw content of the file as a string.
fileField *stringThe name of the file field in the collection schema.
fileName *stringThe desired name for the uploaded file (e.g., "report.txt").
recordId *stringThe 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

v1.1.3PocketBase MCP: Add Cron Job Management Tools · 22 Apr 2025Overview This PR adds support for PocketBase's cron job management capabilities to the PocketBase MCP server. Users can now list all registered app-level cron jobs and trigger specific cron jobs programmatically through the MCP interface.…
v1.1.2PocketBase Logs API Tools · 9 Apr 2025Added PocketBase Logs API Tools: Added `list_logs` tool to list API request logs with filtering, sorting, and pagination. Added `get_log` tool to retrieve a single API request log by its ID. Added `get_logs_stats` tool to fetch hourly…
v1.1.0PocketBase Migration Management System · 8 Apr 2025This release introduces a comprehensive migration management system for PocketBase databases, enabling structured schema evolution with version control and rollback capabilities. Features Migration File Generation: Create timestamped…
v1.0.0PocketBase MCP Server v1.0.0: Initial Release · 8 Apr 2025We're excited to announce the initial release of the PocketBase MCP Server, a Model Context Protocol server that provides seamless integration with PocketBase databases. Features Core Record Operations: Fetch individual records by ID…

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
Questions

About Pocketbase MCP

How do I install Pocketbase MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Pocketbase MCP safe to use with an AI agent?

Its trust score is 51 out of 100 (fair). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 28 source files found that it serves MCP over stdio and writes or deletes files (2 calls). Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Pocketbase MCP still maintained?

Yes — the last commit was 2 months ago. The repository has 43 stars and 10 forks and 1 open issues.

What tools does Pocketbase MCP provide?

Conduid read 33 tools from the source: add_field_migration, apply_all_migrations, apply_migration, batch_records, create_backup, create_collection_migration, create_migration, create_record and 25 more. 28 of them publish their parameters, listed under Tools above.

What license is Pocketbase MCP released under?

The repository declares the MIT license. That applies to the latest release, v1.1.3, as well.