Feedback

Pocketbase MCP Server — by tokenscompany

@tokenscompany Claim

Basic information

Runtime
TypeScript
Category
License
MIT
Transports
stdio
Author
tokenscompany
Submitted by
Community
Quality
10
Stars
4

About Pocketbase MCP Server

# pocketbase-mcp

Pocketbase is a MCP server in the Other category listed in the AddMCP.net directory, published by tokenscompany. It exposes 19 tools, including pb_health, pb_list_collections, pb_get_collection_schema, pb_create_collection and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 4 GitHub stars. Source code is hosted on github.com.

Setup

claude mcp add pocketbase-mcp-tokenscompany --transport http https://pocketbase.tokenscompany.co/mcp

Pocketbase MCP Server — by tokenscompany config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "pocketbase": {
            "type": "http",
            "url": "https://pocketbase.tokenscompany.co/mcp",
            "headers": {
                "X-PB-URL": "https://your-pocketbase.example.com",
                "X-PB-Token": "your-superuser-token"
            }
        }
    }
}

Pocketbase MCP Server — by tokenscompany tools

  • pb_health — PocketBase health check
    (no parameters)
  • pb_list_collections — List all collections with full field schemas
    (no parameters)
  • pb_get_collection_schema — Get a single collection's full schema (fields, rules, indexes)
    collection:string*
  • pb_create_collection — Create a new collection
    name:string*, type:string, fields:array*
  • pb_update_collection — Update a collection's schema or rules
    collection:string*, updates:object*
  • pb_delete_collection — Delete a collection
    collection:string*
  • pb_import_collections — Bulk import/overwrite collection schemas (for migrations)
    collections:array*, deleteMissing:boolean
  • pb_list_records — List/search records in a collection
    collection:string*, filter:string, sort:string, page:number, perPage:number, expand:string, fields:string
  • pb_get_record — Get a single record by ID
    collection:string*, id:string*, expand:string, fields:string
  • pb_create_record — Create a new record in a collection
    collection:string*, data:object*
  • pb_update_record — Update an existing record
    collection:string*, id:string*, data:object*
  • pb_delete_record — Delete a record by ID
    collection:string*, id:string*
  • pb_list_backups — List available backups
    (no parameters)
  • pb_create_backup — Create a new backup
    name:string
  • pb_delete_backup — Delete a backup by key
    key:string*
  • pb_get_file_url — Get download URL for a file field
    collection:string*, recordId:string*, filename:string*, thumb:string
  • pb_get_settings — Get app settings
    (no parameters)
  • pb_update_settings — Update app settings
    settings:object*
  • pb_list_logs — Query request logs
    filter:string, sort:string, page:number, perPage:number

Overview

What is Pocketbase?

Remote MCP server that connects any MCP client to a PocketBase instance over stateless HTTP. It is built for developers managing PocketBase backends via AI agents.

How to use Pocketbase?

Use the hosted instance at https://pocketbase.tokenscompany.co/mcp with HTTP transport (not SSE). Configure required headers: X-PB-URL (your PocketBase instance URL) plus either X-PB-Email + X-PB-Password or X-PB-Token. Self‑host via Bun or Docker.

Key features of Pocketbase

  • Stateless HTTP MCP server for PocketBase
  • Full CRUD on collections, records, backups, and settings
  • Two auth methods: email+password or token
  • Open source (MIT) with SLSA provenance attestation
  • SSRF protection, rate limiting, and CORS support
  • No credential storage, no telemetry, no sessions

Use cases of Pocketbase

  • Manage PocketBase collections and records through an AI agent
  • Automate backup creation and deletion
  • Query and update app settings programmatically
  • Bulk import or overwrite collection schemas

Frequently asked questions

1 What transport does this server use?

Stateless streamable HTTP, not SSE. Use "type": "http" in MCP config and --transport http in Claude Code CLI.

2 How do I authenticate?

Provide X-PB-URL plus either X-PB-Email and X-PB-Password (recommended) or X-PB-Token. If both are given, the token takes priority.

3 Does the server store my data or credentials?

No. It is fully stateless: no database, no disk writes, no credential persistence, no sessions, and no telemetry. Every request is processed and discarded immediately.

4 Can I self-host Pocketbase?

Yes. Run with Bun (bun install && bun run src/index.ts) or Docker using ghcr.io/tokenscompany/pocketbase-mcp:latest. No external dependencies beyond your PocketBase instance.

5 What security features are included?

SSRF protection (private IP ranges rejected), rate limiting (default 60 requests/min per IP with burst 10), CORS with Access-Control-Allow-Origin: *, and a 1 MB body size limit.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬