Overview
The Advanced PocketBase MCP Server is a comprehensive server designed for sophisticated interactions with PocketBase databases, enabling advanced database operations, schema management, and data manipulation through the Model Context Protocol (MCP).
To use the server, set up your PocketBase instance, configure the required environment variables, and utilize the provided tools for collection management, record operations, user management, and database operations through API calls.
- Collection management with custom schemas and migration capabilities. - CRUD operations for records with advanced querying options. - User authentication and role-based access control. - Database backup, restore, and export functionalities.
- Managing complex database schemas and collections.
- Performing batch operations for data import/export.
- Implementing user management and authentication in applications.
- Backing up and restoring database states efficiently.
Add to your AI client
Use these steps to connect Advanced PocketBase MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"pocketbase-mcp-server-dynamicendpoints": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pocketbase-mcp-server-dynamicendpoints"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"pocketbase-mcp-server-dynamicendpoints": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pocketbase-mcp-server-dynamicendpoints"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"pocketbase-mcp-server-dynamicendpoints": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pocketbase-mcp-server-dynamicendpoints"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"pocketbase-mcp-server-dynamicendpoints": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pocketbase-mcp-server-dynamicendpoints"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"pocketbase-mcp-server-dynamicendpoints": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pocketbase-mcp-server-dynamicendpoints"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"pocketbase-mcp-server-dynamicendpoints": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pocketbase-mcp-server-dynamicendpoints"
]
}
}
}FAQ
Is the MCP Server compatible with all versions of PocketBase?
Yes, it is designed to work with the latest versions of PocketBase.
How do I handle errors during operations?
The server includes comprehensive error handling with detailed messages for various error types.
Can I contribute to the project?
Yes! Contributions are welcome; please follow the contributing guidelines in the repository.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":774,"uuid":"67cc972f-e8bf-4490-90e3-f96d74f542c5","name":"pocketbase-mcp-server","title":"Advanced PocketBase MCP Server","description":"pocketbase-mcp-server","avatar_url":"https://avatars.githubusercontent.com/u/166449820?v=4","created_at":"2024-12-30T03:31:15.312Z","updated_at":"2025-02-23T07:16:04.180Z","status":"created","author_name":"DynamicEndpoints","author_avatar_url":"https://avatars.githubusercontent.com/u/166449820?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/DynamicEndpoints/pocketbase-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/71c335febb7d17018864ff81a0f17e81b4f2e99965819279fafe775ce3a974b2/68747470733a2f2f736d6974686572792e61692f62616467652f706f636b6574626173652d736572766572","type":null,"metadata":"{\"star\":\"29\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-02 17:36:41\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]