pocketbase-mcp
by mrwyndham·★ 134·Score 44
MCP server for PocketBase databases with CRUD operations, schema management, and backup capabilities.
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:
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 READMEcreate_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
Comparable tools
Installation
Installation
Local Setup
- Install the package:
npm install(oryarn install) - Build the project:
npm run build(oryarn build) - 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
- Build the Docker image:
docker build -t pocketbase-mcp . - 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-mcpVS 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
Last updated · Auto-generated from public README + GitHub signals.