LabscoMCP early access ↗
mabeldataMCP SERVER

PocketBase MCP Server

Read and write records in a PocketBase collection, using the same filters and sorts the API takes.

by mabeldata ↗NoSQL, Graph & Key-Value StoresCommunity

LABSCO SUMMARY

PocketBase collections become readable and writable where the question was asked.

The listing tool carries PocketBase's own query options - filter, sort, pagination and relation expansion - so a question with conditions in it does not turn into several round trips, and a record can be created in the same thread that read the last one.

What it is

An MCP server for a PocketBase instance: it fetches, lists, creates and updates records, uploads and downloads files, reads collection schemas and API request logs, runs cron jobs, and writes and applies migrations.

What you get

  • Records — fetch_record by ID, list_records with pagination, filtering, sorting and expanded relations, create_record and update_record
  • Files — upload_file to a field of a record, and download_file for a stored file's download URL
  • Collections — list_collections and get_collection_schema
  • Logs — list_logs, get_log and get_logs_stats over PocketBase's API request logs, which need admin authentication and may not be available on every instance
  • Cron jobs — list_cron_jobs and run_cron_job
  • Migrations — set_migrations_directory, create_migration, create_collection_migration, add_field_migration, list_migrations, apply_migration, revert_migration, apply_all_migrations and revert_to_migration

Requirements

A PocketBase instance the server can reach, and an admin authentication token for it, generated from the PocketBase admin interface. Both are set as environment variables; the instance URL defaults to PocketBase running locally.

Setup effort

One command plus a key — npx -y @smithery/cli install @mabeldata/pocketbase-mcp --client claude, then supply credentials