Skip to main content
Glama
mabeldata

PocketBase MCP Server

by mabeldata

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POCKETBASE_API_URLNoThe URL of your PocketBase instance (e.g., http://127.0.0.1:8090)http://127.0.0.1:8090
POCKETBASE_ADMIN_TOKENYesAn admin authentication token for your PocketBase instance. You can generate this from your PocketBase admin UI, see API KEYS.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mabeldata/pocketbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server