# PocketBase MCP Server

Manage your PocketBase databases effortlessly. Perform advanced database operations, schema management, and data manipulation with ease using our comprehensive tools.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add imatrixme/pocketbase-mcp-server

# Browse available tools
npx -y @smithery/cli@latest tool list imatrixme/pocketbase-mcp-server

# Get full schema for a tool
npx -y @smithery/cli@latest tool get imatrixme/pocketbase-mcp-server create_collection

# Call a tool
npx -y @smithery/cli@latest tool call imatrixme/pocketbase-mcp-server create_collection '{}'
```

## Tools (24)

- `create_collection` — Create a new collection in PocketBase
- `create_record` — Create a new record in a collection
- `list_records` — List records from a collection with optional filters
- `update_record` — Update an existing record
- `delete_record` — Delete a record
- `list_auth_methods` — List all available authentication methods
- `authenticate_user` — Authenticate a user with email and password
- `authenticate_with_oauth2` — Authenticate a user with OAuth2
- `authenticate_with_otp` — Authenticate a user with one-time password
- `auth_refresh` — Refresh authentication token
- `request_verification` — Request email verification
- `confirm_verification` — Confirm email verification with token
- `request_password_reset` — Request password reset
- `confirm_password_reset` — Confirm password reset with token
- `request_email_change` — Request email change
- `confirm_email_change` — Confirm email change with token
- `impersonate_user` — Impersonate another user (admin only)
- `create_user` — Create a new user account
- `get_collection_schema` — Get schema details for a collection
- `backup_database` — Create a backup of the PocketBase database
- `import_data` — Import data into a collection
- `migrate_collection` — Migrate collection schema with data preservation
- `query_collection` — Advanced query with filtering, sorting, and aggregation
- `manage_indexes` — Manage collection indexes

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get imatrixme/pocketbase-mcp-server <tool-name>
```

---

Source: https://github.com/imatrixme/pocketbase-mcp-server | License: MIT
