MCP Catalogs
Home

pocketbase-mcp

by mrwyndham·134·Score 44

MCP server for PocketBase databases with CRUD operations, schema management, and backup capabilities.

databasedeveloper-toolsproductivity
30
Forks
1
Open issues
4 mo ago
Last commit
2d ago
Indexed

Overview

The PocketBase MCP server provides a comprehensive interface for interacting with PocketBase databases through the Model Context Protocol. It offers sophisticated tools for database operations, schema management, and data manipulation. The server supports collection creation, record CRUD operations, user management, and database backups, with both local and Docker deployment options.

Try asking AI

After installing, here are 6 things you can ask your AI assistant:

you:Building applications with PocketBase backend through AI assistants
you:Managing PocketBase database operations without leaving the IDE
you:Automating database schema creation and record management
you:What is the PocketBase MCP server?
you:How do I set up the PocketBase MCP server?
you:What operations can I perform with this MCP server?

When to choose this

Choose this MCP server when working with PocketBase databases and want AI assistance with database operations, schema management, and CRUD operations through MCP.

When NOT to choose this

Don't choose this if you need support for other database backends or if you require features not yet implemented in this MCP server.

Tools this server exposes

9 tools extracted from the README
  • create_collection

    Create a new collection with custom schema

  • get_collection

    Get schema details for a collection

  • create_record

    Create a new record in a collection

  • list_records

    List records with optional filters and pagination

  • update_record

    Update an existing record

  • delete_record

    Delete a record

  • authenticate_user

    Authenticate a user and get auth token

  • create_user

    Create a new user account

  • backup_database

    Create a backup of the PocketBase database

Comparable tools

supabase-mcpmysql-mcppostgresql-mcpshell-mcp

Installation

Installation

Local Setup

  1. Install the package: npm install (or yarn install)
  2. Build the project: npm run build (or yarn build)
  3. Configure your MCP client settings (e.g., in cline_mcp_settings.json):
{
  "mcpServers": {
    "pocketbase-server": {
      "command": "node",
      "args": ["build/index.js"],
      "env": {
        "POCKETBASE_URL": "http://127.0.0.1:8090",
        "POCKETBASE_ADMIN_EMAIL": "admin@example.com",
        "POCKETBASE_ADMIN_PASSWORD": "admin_password"
      },
      "disabled": false,
      "autoApprove": ["create_record", "create_collection"]
    }
  }
}

Docker Setup

  1. Build the Docker image: docker build -t pocketbase-mcp .
  2. Run the container with environment variables:
docker run -d \  --name pocketbase-mcp \  -e POCKETBASE_URL=http://127.0.0.1:8090 \  -e POCKETBASE_ADMIN_EMAIL=your_admin@example.com \  -e POCKETBASE_ADMIN_PASSWORD=your_admin_password \  pocketbase-mcp

VS Code Setup

Create or update .vscode/mcp.json with the following configuration:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "pocketbase-admin-email",
      "description": "PocketBase Admin Email",
      "password": false
    },
    {
      "type": "promptString",
      "id": "pocketbase-admin-password",
      "description": "PocketBase Admin Password",
      "password": true
    }
  ],
  "servers": {
    "pocketbaseServer": {
      "type": "stdio",
      "command": "node",
      "args": ["build/index.js"],
      "env": {
        "POCKETBASE_URL": "http://127.0.0.1:8090",
        "POCKETBASE_ADMIN_EMAIL": "${input:pocketbase-admin-email}",
        "POCKETBASE_ADMIN_PASSWORD": "${input:pocketbase-admin-password}"
      }
    }
  }
}

FAQ

What is the PocketBase MCP server?
It's an MCP server that provides tools for interacting with PocketBase databases, allowing advanced database operations, schema management, and data manipulation through the Model Context Protocol.
How do I set up the PocketBase MCP server?
You can set it up locally by configuring your MCP client settings or using Docker. Both methods require specifying the PocketBase URL and optionally admin credentials.
What operations can I perform with this MCP server?
The server supports collection management, record CRUD operations, user authentication and management, and database backups.

Compare pocketbase-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.