PocketBase MCP Server
About
MCP server for building PocketBase apps really quickly - Need a front end quick consider FastPocket
Details
- Author
- mrwyndham
- GitHub stars
- 140
- Downloads
- 454
- Categories
- Other
Jump to
- Collection creation and schema management
- CRUD operations for records
- User authentication and account creation
- Database backup with format options
- Pagination and cursor‑based navigation
- Relationship expansion support
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
PocketBase MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Set up the server by configuring your MCP settings file (cline_mcp_settings.json or .vscode/mcp.json) with a command (e.g., node or docker), args pointing to build/index.js, and environment variables POCKETBASE_URL (required), POCKETBASE_ADMIN_EMAIL, and POCKETBASE_ADMIN_PASSWORD (optional). Optionally use Docker with docker run or Docker Compose. Tools can be auto‑approved via autoApprove (e.g., create_record, list_collections).
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"pocketbase mcp server": {
"pocketbase-mcp": {
"command": "docker",
"args": [
"build",
"-t",
"pocketbase-mcp",
"."
]
}
}
}
}
McpServers
{
"pocketbase-mcp": {
"command": "docker",
"args": [
"build",
"-t",
"pocketbase-mcp",
"."
]
}
}
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
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



