PocketBase MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| POCKETBASE_API_URL | No | The URL of your PocketBase instance (e.g., http://127.0.0.1:8090) | http://127.0.0.1:8090 |
| POCKETBASE_ADMIN_TOKEN | Yes | An admin authentication token for your PocketBase instance. You can generate this from your PocketBase admin UI, see API KEYS. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| fetch_recordB | Fetch a single record from a PocketBase collection by ID. |
| list_recordsA | List records from a PocketBase collection. Supports filtering, sorting, pagination, and expansion. |
| create_recordC | Create a new record in a PocketBase collection. |
| update_recordB | Update an existing record in a PocketBase collection by ID. |
| get_collection_schemaB | Get the schema (fields, rules, etc.) of a PocketBase collection. |
| list_collectionsA | List all collections in the PocketBase instance. |
| upload_fileB | Upload a file (provided as content string) to a PocketBase collection record field. |
| download_fileB | Get the URL to download a file from a PocketBase collection record field. |
| set_migrations_directoryA | Set the directory where migration files will be created and read from. |
| create_migrationA | Create a new, empty PocketBase migration file with a timestamped name. |
| create_collection_migrationB | Create a migration file specifically for creating a new PocketBase collection. |
| add_field_migrationB | Create a migration file for adding a field to an existing collection. |
| list_migrationsA | List all migration files found in the PocketBase migrations directory. |
| apply_migrationC | Apply a specific migration file. |
| revert_migrationC | Revert a specific migration file. |
| apply_all_migrationsB | Apply all pending migrations. |
| revert_to_migrationC | Revert migrations up to a specific target. |
| list_logsA | List API request logs from PocketBase with filtering, sorting, and pagination. |
| get_logA | Get a single API request log by ID. |
| get_logs_statsB | Get API request logs statistics with optional filtering. |
| list_cron_jobsB | Returns list with all registered app level cron jobs. |
| run_cron_jobB | Triggers a single cron job by its id. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 22 tools
Each tool targets a distinct operation on a specific resource (collections, records, migrations, logs, cron, files). No two tools have overlapping purposes; descriptions clearly differentiate them.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., create_record, list_collections, apply_migration). No mixing of conventions or vague verbs.
22 tools is appropriate for a PocketBase server, covering collections, records, migrations, logs, cron, and file handling. Each tool serves a clear purpose without redundancy.
Significant gaps: no tool to delete a record or collection, and no direct create/update/delete for collections (only migration-based). This will likely cause agent failures when cleanup is needed.