Skip to main content
Glama

PocketBase MCP Server

by paullippert

pb_files_upload

Attach files to specific records in a PocketBase collection by uploading Base64 encoded data, specifying the record ID, field name, and file details for storage.

Instructions

Upload a file to a record field

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name or ID
fieldNameYesField name to store the file in
fileDataYesBase64 encoded file data
fileNameYesOriginal file name
mimeTypeNoFile MIME type
recordIdYesRecord ID to attach the file to

Input Schema (JSON Schema)

{ "properties": { "collection": { "description": "Collection name or ID", "type": "string" }, "fieldName": { "description": "Field name to store the file in", "type": "string" }, "fileData": { "description": "Base64 encoded file data", "type": "string" }, "fileName": { "description": "Original file name", "type": "string" }, "mimeType": { "description": "File MIME type", "type": "string" }, "recordId": { "description": "Record ID to attach the file to", "type": "string" } }, "required": [ "collection", "recordId", "fieldName", "fileData", "fileName" ], "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/paullippert/pb_mcp'

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