pocketbase-mcp-server
Provides tools for interacting with PocketBase databases, including listing collections, retrieving collection schemas, and performing CRUD operations on records.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pocketbase-mcp-server list all records in the 'articles' collection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PocketBase MCP Server
A Model Context Protocol (MCP) server for interacting with PocketBase databases.
This server allows you to inspect collections and query, create, update, and delete records inside a PocketBase instance.
Installation & Usage
You can use this server directly via npx (recommended) or install it globally.
Option 1: Run via npx
To run the server without installing it locally, configure your MCP client to use:
npx @yhauxell/pocketbase-mcp-serverOption 2: Global Installation
npm install -g @yhauxell/pocketbase-mcp-serverThen run the command:
pocketbase-mcp-serverRelated MCP server: pocketbase-mcp
Configuration for Claude Desktop or MCP Clients
To register the server, add the following to your MCP client settings file (e.g., claude_desktop_config.json):
Using npx (Recommended)
Using admin email & password:
{
"mcpServers": {
"pocketbase-mcp-server": {
"command": "npx",
"args": ["-y", "@yhauxell/pocketbase-mcp-server"],
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_ADMIN_EMAIL": "your_email@example.com",
"POCKETBASE_ADMIN_PASSWORD": "your_password"
}
}
}
}Using an auth token:
{
"mcpServers": {
"pocketbase-mcp-server": {
"command": "npx",
"args": ["-y", "@yhauxell/pocketbase-mcp-server"],
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_AUTH_TOKEN": "your_auth_token_here"
}
}
}
}Using Local Build (For Development)
If you are developing locally, run npm run build and use:
{
"mcpServers": {
"pocketbase-mcp-server": {
"command": "node",
"args": ["/absolute/path/to/pocketbase-mcp-server/dist/index.js"],
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_ADMIN_EMAIL": "your_email@example.com",
"POCKETBASE_ADMIN_PASSWORD": "your_password"
}
}
}
}Local Setup (Development)
Clone the repository and install dependencies:
npm installBuild the project:
npm run buildConfigure environment variables in a
.envfile:POCKETBASE_URL=http://127.0.0.1:8090 POCKETBASE_ADMIN_EMAIL=your_email@example.com POCKETBASE_ADMIN_PASSWORD=your_password
Available Tools
pb_list_collections: List all collections in the PocketBase database.pb_get_collection: Get schema details of a specific collection.pb_list_records: Retrieve paginated, filtered, and sorted records from a collection.pb_view_record: Retrieve a single record by its ID.pb_create_record: Create a new record in a collection.pb_update_record: Update an existing record in a collection.pb_delete_record: Delete a record from a collection.
Contributing
Contributions are welcome! Please read CONTRIBUTING.md for details on how to get started.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
7 toolspb_create_recordC
Create a new record in a collection
Inputs: data (required), collectionIdOrName (required).
pb_delete_recordB
Delete a record from a collection
Inputs: recordId (required), collectionIdOrName (required).
pb_get_collectionA
Get schema details and metadata of a specific collection by its name or ID
Inputs: collectionIdOrName (required).
pb_list_collectionsA
List all collections in the PocketBase database
Inputs: no named parameters.
pb_list_recordsA
Retrieve a paginated list of records from a collection with optional filtering, sorting, and relations expansion
Inputs: collectionIdOrName (required), page, sort, expand, +2 more.
pb_update_recordB
Update an existing record in a collection
Inputs: data (required), recordId (required), collectionIdOrName (required).
pb_view_recordB
Retrieve a single record from a collection by its ID
Inputs: recordId (required), collectionIdOrName (required), expand.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct operation (create, read, update, delete records, list collections, get collection schema) with no overlapping functionality.
All tools follow a consistent 'pb_verb_noun' pattern (e.g., pb_create_record, pb_list_records) with clear verbs and nouns.
Seven tools is an appropriate number for performing core CRUD operations on records and exploring collection metadata without being excessive.
Covers all standard record operations and collection schema queries, but lacks tools for creating, updating, or deleting collections, which may be needed for full lifecycle management.
Maintenance
Related MCP Connectors
Manage PocketBase Cloud projects, instances, deploys, domains, collections and records.
Read, search and add records in your Bionic Forms apps (hosted database apps for small teams).
Read, create, update and delete records; inspect objects, fields and schema in your Knack database.
Operate your Vector Panda collections: search and upsert vectors, schema, measured indexes, exports.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants and MCP clients to interact with PocketBase databases for authentication, data management, and administrative operations.65MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform CRUD operations on Pocketbase collections, manage authentication, and query logs via a type-safe API.ISC
- FlicenseAqualityCmaintenanceEnables managing PocketBase instances through intent-first tools for schema inspection, record CRUD, bulk operations, authentication, file handling, and server monitoring, with optional destructive operations gated behind explicit opt-in.1115-
- AlicenseNot gradedqualityAmaintenanceEnables creating and managing collections, performing record CRUD operations with pagination and expansions, handling user authentication, and backing up PocketBase databases through MCP tools.18 npmISC