Skip to main content
Glama

PocketBase MCP Server

by fadlee
MIT License
0

list_records

Retrieve records from a PocketBase collection with filtering, sorting, pagination, and field selection options to manage database data.

Instructions

List records from a collection with optional filters

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
expandNoComma-separated list of relation fields to expand (e.g. 'author,comments.user')
fieldsNoComma-separated fields to return in the response (e.g. 'id,title,author')
filterNoFilter query using PocketBase filter syntax (e.g. 'status = true && created > "2022-08-01 10:00:00"')
pageNoPage number for pagination (default: 1)
perPageNoItems per page (default: 50, max: 500)
skipTotalNoIf set to true, the total count query will be skipped to improve performance
sortNoSort field and direction (e.g. '-created,title' for descending created date followed by ascending title)

Input Schema (JSON Schema)

{ "properties": { "collection": { "description": "Collection name", "type": "string" }, "expand": { "description": "Comma-separated list of relation fields to expand (e.g. 'author,comments.user')", "type": "string" }, "fields": { "description": "Comma-separated fields to return in the response (e.g. 'id,title,author')", "type": "string" }, "filter": { "description": "Filter query using PocketBase filter syntax (e.g. 'status = true && created > \"2022-08-01 10:00:00\"')", "type": "string" }, "page": { "description": "Page number for pagination (default: 1)", "type": "number" }, "perPage": { "description": "Items per page (default: 50, max: 500)", "type": "number" }, "skipTotal": { "description": "If set to true, the total count query will be skipped to improve performance", "type": "boolean" }, "sort": { "description": "Sort field and direction (e.g. '-created,title' for descending created date followed by ascending title)", "type": "string" } }, "required": [ "collection" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fadlee/pocketbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server