apply_migration
Apply a specific migration file.
How to use it
apply_migration is exposed by the Pocketbase MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the apply_migration tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Pocketbase MCP
npx -y @smithery/cli install @mabeldata/pocketbase-mcp --client claudeOther tools in Pocketbase MCP (21)
Create a migration file for adding a field to an existing collection.
Apply all pending migrations.
Create a migration file specifically for creating a new PocketBase collection.
Create a new, empty PocketBase migration file with a timestamped name.
Create a new record in a PocketBase collection.
Get the download URL for a file stored in a PocketBase collection record.
Fetch a single record from a PocketBase collection by ID.
Get the schema of a PocketBase collection.
Get a single API request log by ID.
Get API request logs statistics with optional filtering.
List all collections in the PocketBase instance.
Returns list with all registered app level cron jobs.
List API request logs from PocketBase with filtering, sorting, and pagination.
List all migration files found in the PocketBase migrations directory.
List records from a PocketBase collection. Supports pagination, filtering, sorting, and expanding relations.
Revert a specific migration file.
Revert migrations up to a specific target.
Triggers a single cron job by its id.
Set the directory where migration files will be created and read from.
Update an existing record in a PocketBase collection.
Upload a file to a specific field in a PocketBase collection record.