Integrates with PocketBase to enable dynamic schema management, advanced querying, and scalable user authentication for...
Created byApr 22, 2025
Advanced PocketBase MCP Server

A comprehensive MCP server 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).
POCKETBASE_ADMIN_EMAIL: Admin email for certain operations
POCKETBASE_ADMIN_PASSWORD: Admin password
POCKETBASE_DATA_DIR: Custom data directory path
Usage Examples
Collection Management
Advanced Querying
Data Import/Export
Schema Migration
Authentication Methods
Error Handling
All tools include comprehensive error handling with detailed error messages. Errors are properly typed and include:
Invalid request errors
Authentication errors
Database operation errors
Schema validation errors
Network errors
Type Safety
The server includes TypeScript definitions for all operations, ensuring type safety when using the tools. Each tool's input schema is strictly typed and validated.
Best Practices
Always use proper error handling with try/catch blocks
Validate data before performing operations
Use appropriate indexes for better query performance
Regularly backup your database
Use migrations for schema changes
Follow security best practices for user management
Monitor and optimize database performance
Development
Clone the repository
Install dependencies: npm install
Copy .env.example to .env and configure
Build: npm run build
Start your PocketBase instance
The MCP server will automatically connect to your PocketBase instance
Installing via Smithery
To install PocketBase Server for Claude Desktop automatically via Smithery:
Contributing
Fork the repository
Create a feature branch
Commit your changes
Push to the branch
Create a Pull Request
Advanced PocketBase MCP Server

A comprehensive MCP server 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).
POCKETBASE_ADMIN_EMAIL: Admin email for certain operations
POCKETBASE_ADMIN_PASSWORD: Admin password
POCKETBASE_DATA_DIR: Custom data directory path
Usage Examples
Collection Management
Advanced Querying
Data Import/Export
Schema Migration
Authentication Methods
Error Handling
All tools include comprehensive error handling with detailed error messages. Errors are properly typed and include:
Invalid request errors
Authentication errors
Database operation errors
Schema validation errors
Network errors
Type Safety
The server includes TypeScript definitions for all operations, ensuring type safety when using the tools. Each tool's input schema is strictly typed and validated.
Best Practices
Always use proper error handling with try/catch blocks
Validate data before performing operations
Use appropriate indexes for better query performance
Regularly backup your database
Use migrations for schema changes
Follow security best practices for user management
Monitor and optimize database performance
Development
Clone the repository
Install dependencies: npm install
Copy .env.example to .env and configure
Build: npm run build
Start your PocketBase instance
The MCP server will automatically connect to your PocketBase instance
Installing via Smithery
To install PocketBase Server for Claude Desktop automatically via Smithery: