How to integrate PocketBase using MCP
Open-source backend — collections via REST. This guide creates an MCP server from Arthur's PocketBase template — tools preconfigured against https://YOUR_DOMAIN.pocketbase.io — and finishes by sharing the server's MCP swagger documentation.
Steps
Open the Secrets vault and create a secret named
POCKETBASE_API_KEYholding your access token. Use an admin or user token. To get an admin token: POST /api/admins/auth-with-password with {"identity":"email","password":"pass"}. For user auth: POST /api/collections/users/auth-with-password.


Go to the REST API Templates gallery and search for PocketBase.


Click Use template on the PocketBase card to open the server-creation dialog.


Review the server name and select
POCKETBASE_API_KEYin the credential field — the dialog only accepts vault secrets, and it lists every tool that will be created.


Click Create server. Arthur creates the server, applies the authentication, and generates all the tools.





Open the server's Tools tab to review the generated tools.

Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.



Confirm it worked
The server appears with 2 preconfigured tool(s): list_records, get_record. The Connect section offers the MCP swagger documentation — a shareable page with setup instructions for any AI client.
Good to know
- Read-only access to any PocketBase collection using its built-in REST API. Supports filtering with PocketBase filter syntax, sorting, pagination, and field expansion. After creating this project, update the base URL in Settings to your PocketBase instance (e.g. https://your-app.pockethost.io).
- This integration requires a credential (bearer). Get one at https://pocketbase.io.
- Official API documentation: https://pocketbase.io/docs/api-records/
- Editing a tool later never changes the template — templates are starting points, and the server is fully yours after creation.
Related
Tutorial video