Setup PocketBase MCP Server with Docker
mainYou can run the server as a containerized service.
Build the image:
docker build -t pocketbase-mcp .Run the container: Use
docker runwith environment variables. If your PocketBase instance is running on your host machine, usehttp://host.docker.internal:8090as thePOCKETBASE_URLto allow the container to reach the host.Configure AI Assistant: Update your MCP settings to use
docker run -i --rmas the command. The-iflag is required for stdio communication.
# Build the image
docker build -t pocketbase-mcp .
# Run the container
docker run -d \
--name pocketbase-mcp \
-e POCKETBASE_URL=http://host.docker.internal:8090 \
-e POCKETBASE_ADMIN_EMAIL=your_admin@example.com \
-e POCKETBASE_ADMIN_PASSWORD=your_admin_password \
pocketbase-mcp