Pocketbase

Messaging and email

MCP server for building PocketBase apps really quickly - Need a front end quick consider FastPocket.

Your AI app calls the Pocketbase MCP server, which does the work through tools like create_collection, get_collection, create_record and list_records and sends the result back to the chat.

About Pocketbase

Pocketbase is a community MCP server from mrwyndham, filed in our directory under messaging and email. MCP server for building PocketBase apps really quickly - Need a front end quick consider FastPocket.

The README for Pocketbase lists tools such as create_collection, get_collection, create_record and list_records, which your AI app can call once the server is connected.

At a glance

Publisher
mrwyndham (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
157

Tools Pocketbase gives your AI app

  • create_collectionCreate a new collection with custom schema.
  • get_collectionGet schema details for a collection.
  • create_recordCreate a new record in a collection.
  • list_recordsList records with optional filters and pagination.
  • update_recordUpdate an existing record.
  • delete_recordDelete a record.
  • authenticate_userAuthenticate a user and get auth token.
  • create_userCreate a new user account.
  • backup_databaseCreate a backup of the PocketBase database with format options.

Tool names as the Pocketbase README lists them. Your AI app shows the live list once Pocketbase is connected.

How to set up Pocketbase

  1. Follow the install steps in the Pocketbase README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Pocketbase README for keys or settings; the registry lists none that Pocketbase requires.
  3. Add Pocketbase to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Pocketbase tools to confirm the connection.
  5. Run one read-only task with Pocketbase first, such as a call to create_collection, before you allow anything that writes or sends.

Pocketbase compared with similar servers

  • Pipecat by pipecat-ai has fewer GitHub stars than Pocketbase (156 against 157); both are community servers, and both run locally.
  • Logfire by pydantic has more GitHub stars than Pocketbase (162 against 157); Logfire is official while Pocketbase is a community server, and both run locally.
  • Whatsapp MCP Local by BrOrlandi has fewer GitHub stars than Pocketbase (156 against 157); both are community servers, and both run locally.

Before you connect Pocketbase

  • Give Pocketbase its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Pocketbase tool call until you trust what it does with them.
  • Treat text that Pocketbase fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Pocketbase on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Pocketbase

How marketing and sales teams put Pocketbase to work, by company size. Pick the size closest to yours and start Pocketbase on one use case.

Small business

  • A small team can have Pocketbase summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with Pocketbase and send them only after a read, keeping the personal tone customers expect.
  • Pocketbase runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Pocketbase to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect Pocketbase so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Start with create_collection and get_collection, the tools Pocketbase lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises can deploy Pocketbase with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use Pocketbase to find what employees ask most across channels and answer it once, in the right place.
  • Pocketbase is a community server, so have security review the code and pin a version before Pocketbase touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Pocketbase README

From mrwyndham/pocketbase-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

PocketBase MCP Server

A very much in progress MCP server based off of the Dynamics one that I have been testing and refining. That provides sophisticated tools for interacting with PocketBase databases. This server enables advanced database operations, schema management, and data manipulation through the Model Context Protocol (MCP).

Here is a video of me using it: https://www.youtube.com/watch?v=ZuTIO3I7rTM&t=345s

Why This And Not DynamicsEndpoints?

This has actually been tested on the latest version. Currently 26.1 of PocketBase and is built off of the type definitions in the JS-SDK and not the arbitrary and wrong definitions found in the Dynamics one. Many of the methods don't even work.

Setup MCP Server Locally (Only Way Supported for Now)

To set up the MCP server locally, you'll need to configure it within your cline_mcp_settings.json or whatever you use (claude, cursor, the config looks identical you just need to find where it is stored) file. Here's how:

  1. Locate your cline_mcp_settings.json file: This file is usually located in your Cursor user settings directory. For example: /Users/yourusername/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

  2. Configure the server: Add a new entry to the mcpServers object in your cline_mcp_settings.json file. The key should be a unique name for your server (e.g., "pocketbase-server"), and the value should be an object containing the server's configuration.

    {
      "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"]
        }
      }
    }
    
    • command: The command to start the server (usually node).
    • args: An array of arguments to pass to the command. This should point to the compiled JavaScript file of your MCP server (e.g., build/index.js). Make sure the path is correct.
    • env: An object containing environment variables.
      • POCKETBASE_URL: The URL of your PocketBase instance. This is required.
      • POCKETBASE_ADMIN_EMAIL: The admin email for your PocketBase instance (optional, but needed for some operations).
      • POCKETBASE_ADMIN_PASSWORD: The admin password for your PocketBase instance (optional, but needed for some operations).
    • disabled: Whether to disable to server on startup.
    • autoApprove: list of tools to auto approve.
    • Adjust the values in the env object to match your PocketBase instance's settings.
  • Setup in vscode is similar , find or create .vscode/mcp.json and add
{
  "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",
      // replace this with the path to your compiled MCP server (git clone the repo and run `npm run build` to compile)
      "args": ["~/Desktop/code/mcp/pocketbase-mcp/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}"
      }
    }
  }
}
  1. Start the server: After configuring the cline_mcp_settings.json file, you can start using the MCP server with the configured tools.

Setup MCP Server with Docker

You can run the PocketBase MCP server using Docker. A Dockerfile is included in the repository.

Building the Docker Image
# Build the Docker image
docker build -t pocketbase-mcp .
Running the Docker Container
# 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
Docker MCP Configuration

To use the Dockerized MCP server with your AI assistant (Cursor, Claude, etc.), configure it in your MCP settings:

For Cline/Cursor (cline_mcp_settings.json):

{
  "mcpServers": {
    "pocketbase-docker": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "POCKETBASE_URL=http://host.docker.internal:8090",
        "-e",
        "POCKETBASE_ADMIN_EMAIL=your_admin@example.com",
        "-e",
        "POCKETBASE_ADMIN_PASSWORD=your_admin_password",
        "pocketbase-mcp"
      ],
      "disabled": false,
      "autoApprove": ["list_collections", "list_records", "get_collection"]
    }
  }
}

For VS Code (.vscode/mcp.json):

{
  "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": {
    "pocketbaseDocker": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "POCKETBASE_URL=http://host.docker.internal:8090",
        "-e",
        "POCKETBASE_ADMIN_EMAIL=${input:pocketbase-admin-email}",
        "-e",
        "POCKETBASE_ADMIN_PASSWORD=${input:pocketbase-admin-password}",
        "pocketbase-mcp"
      ]
    }
  }
}
Docker Configuration Notes
  • -i: Interactive mode (required for stdio communication)
  • --rm: Automatically remove container when it exits
  • host.docker.internal: Use this to access PocketBase running on your host machine from within Docker
  • Environment Variables: Replace placeholder values with your actual PocketBase credentials
  • Network: If your PocketBase is also running in Docker, use Docker networking (e.g., --network host or custom bridge network)
Docker Compose (Optional)

Create a docker-compose.yml for easier management:

version: "3.8"

services:
  pocketbase-mcp:
    build: .
    environment:
      - POCKETBASE_URL=http://host.docker.internal:8090
      - POCKETBASE_ADMIN_EMAIL=your_admin@example.com
      - POCKETBASE_ADMIN_PASSWORD=your_admin_password
    stdin_open: true
    tty: true

Then configure your MCP settings to use:

{
  "mcpServers": {
    "pocketbase-docker": {
      "command": "docker-compose",
      "args": ["run", "--rm", "pocketbase-mcp"],
      "disabled": false
    }
  }
}

Features

Collection Management
  • Create and manage collections with custom schemas
  • Retrieve collection schemas and metadata
Record Operations
  • CRUD operations for records
  • Relationship expansion support
  • Pagination and cursor-based navigation
User Management
  • User authentication and token management
  • User account creation and management
  • Password management
Database Operations
  • Database backup

Available Tools

Collection Management
  • create_collection: Create a new collection with custom schema
  • get_collection: Get schema details for a collection
Record Operations
  • 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
User Management
  • authenticate_user: Authenticate a user and get auth token
  • create_user: Create a new user account
Database Operations
  • backup_database: Create a backup of the PocketBase database with format options

Configuration

The server requires the following environment variables:

  • POCKETBASE_URL: URL of your PocketBase instance (e.g., "http://127.0.0.1:8090")

Optional environment variables:

  • POCKETBASE_ADMIN_EMAIL: Admin email for certain operations
  • POCKETBASE_ADMIN_PASSWORD: Admin password
  • POCKETBASE_DATA_DIR: Custom data directory path

Usage Examples

// Create a new collection
await mcp.use_tool("pocketbase", "create_collection", {
  name: "posts",
  schema: [
    {
      name: "title",
      type: "text",
      required: true,
    },
    {
      name: "content",
      type: "text",
      required: true,
    },
  ],
});

// Authenticate with password
await mcp.use_tool("pocketbase", "authenticate_user", {
  email: "user@example.com",
  password: "securepassword",
  collection: "users",
});

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Sponsors

Questions about Pocketbase

What is the Pocketbase MCP server?

MCP server for building PocketBase apps really quickly - Need a front end quick consider FastPocket. Pocketbase is maintained by mrwyndham on GitHub at mrwyndham/pocketbase-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Pocketbase MCP server?

Pocketbase doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (mrwyndham/pocketbase-mcp). Like most servers, Pocketbase ends with a command or URL you paste into your AI app's MCP config.

Does Pocketbase need an API key?

The registry lists no required keys for Pocketbase. Check the Pocketbase README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Pocketbase an official MCP server?

No. Pocketbase is a community server maintained by mrwyndham. Community servers can be excellent; read the code and the open issues before you give Pocketbase access to company data.

What license is Pocketbase under?

Pocketbase is released under the MIT license, according to its GitHub repository. The license covers the code of Pocketbase; the service it connects to has its own terms.