PocketBase

v1.0.0Databasesstable

A comprehensive MCP server for managing PocketBase database schemas and migrations via REST API. It enables users to generate and execute migrations for creating, modifying, and deleting collections and fields directly through MCP-compatible clients.

mcp-serverpocketbase
Share:
135
Stars
0
Downloads
0
Weekly
0/5

What is PocketBase?

PocketBase is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to comprehensive mcp server for managing pocketbase database schemas and migrations via rest api. it enables users to generate and execute migrations for creating, modifying, and deleting collections and...

A comprehensive MCP server for managing PocketBase database schemas and migrations via REST API. It enables users to generate and execute migrations for creating, modifying, and deleting collections and fields directly through MCP-compatible clients.

This server falls under the Databases category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A comprehensive MCP server for managing PocketBase database

Use Cases

Generate and execute database migrations for PocketBase collections.
Manage schemas and fields through REST API integration.
mrwyndham

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx pocketbase-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use PocketBase

PocketBase MCP Server is a comprehensive MCP integration for PocketBase, the open-source backend-as-a-service, that lets AI agents manage database collections and records through natural language. It exposes tools for full CRUD operations on records, collection schema creation and retrieval, user account management, authentication, and database backups — all via the PocketBase REST API. Developers use it to let Claude scaffold and manage their PocketBase databases during development or automate data operations without writing repetitive REST calls.

Prerequisites

  • Node.js 18+ and npm installed
  • A running PocketBase instance (local or hosted) accessible at a known URL
  • PocketBase admin credentials (email and password) for privileged operations
  • An MCP-compatible client such as Claude Desktop, Claude Code, or Cursor/Cline
1

Clone the repository and install dependencies

Clone the pocketbase-mcp repository and install Node.js dependencies.

git clone https://github.com/mrwyndham/pocketbase-mcp.git
cd pocketbase-mcp
npm install
2

Build the project

Compile the TypeScript source to the dist/build directory.

npm run build
3

Ensure PocketBase is running

Start your PocketBase instance if it is not already running. The default port is 8090.

./pocketbase serve
4

Configure environment variables

Set the three required/recommended environment variables. POCKETBASE_URL is required; admin credentials unlock collection management tools.

POCKETBASE_URL=http://127.0.0.1:8090
[email protected]
POCKETBASE_ADMIN_PASSWORD=your_admin_password
5

Add the server to your MCP client configuration

Edit claude_desktop_config.json to register the server. Pass environment variables in the env block.

{
  "mcpServers": {
    "pocketbase": {
      "command": "node",
      "args": ["/path/to/pocketbase-mcp/build/index.js"],
      "env": {
        "POCKETBASE_URL": "http://127.0.0.1:8090",
        "POCKETBASE_ADMIN_EMAIL": "[email protected]",
        "POCKETBASE_ADMIN_PASSWORD": "your_admin_password"
      }
    }
  }
}
6

Restart Claude Desktop and test

Restart Claude Desktop. Ask Claude to list your PocketBase collections to verify the connection is working.

PocketBase Examples

Client configuration

Claude Desktop configuration for the PocketBase MCP server with admin credentials.

{
  "mcpServers": {
    "pocketbase": {
      "command": "node",
      "args": ["/path/to/pocketbase-mcp/build/index.js"],
      "env": {
        "POCKETBASE_URL": "http://127.0.0.1:8090",
        "POCKETBASE_ADMIN_EMAIL": "[email protected]",
        "POCKETBASE_ADMIN_PASSWORD": "your_admin_password"
      }
    }
  }
}

Prompts to try

Natural language prompts that map to PocketBase MCP tools.

- "Create a PocketBase collection called 'posts' with fields: title (text, required), content (text), published (bool)"
- "List all records in the 'users' collection with a limit of 20"
- "Create a new record in the 'posts' collection: title='Hello World', content='My first post', published=true"
- "Authenticate the user [email protected] and return an auth token"
- "Back up the PocketBase database"
- "Get the schema for the 'orders' collection"

Troubleshooting PocketBase

Connection refused error when trying to reach PocketBase

Confirm PocketBase is running at the URL set in POCKETBASE_URL. Run 'curl http://127.0.0.1:8090/api/health' to verify. If using Docker, ensure the container port is exposed and the URL matches the host mapping.

Authentication fails even with correct admin credentials

Double-check POCKETBASE_ADMIN_EMAIL and POCKETBASE_ADMIN_PASSWORD match the credentials you set up in the PocketBase Admin UI. PocketBase requires the admin account to be created on first launch via the web UI at http://127.0.0.1:8090/_/.

build/index.js not found after npm run build

Ensure you are in the pocketbase-mcp directory when running 'npm run build'. Check the package.json outDir setting — the compiled output should land in 'build/'. If it outputs to 'dist/', update the args path in your MCP config accordingly.

Frequently Asked Questions about PocketBase

What is PocketBase?

PocketBase is a Model Context Protocol (MCP) server that comprehensive mcp server for managing pocketbase database schemas and migrations via rest api. it enables users to generate and execute migrations for creating, modifying, and deleting collections and fields directly through mcp-compatible clients. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install PocketBase?

Follow the installation instructions on the PocketBase GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with PocketBase?

PocketBase works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is PocketBase free to use?

Yes, PocketBase is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Databases MCP Servers

Explore all databases servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "pocketbase-mcp-server": { "command": "npx", "args": ["-y", "pocketbase-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use PocketBase?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides