pocketbase-mcp-server
Provides tools for interacting with PocketBase databases, including listing collections, retrieving collection schemas, and performing CRUD operations on records.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pocketbase-mcp-serverlist all records in the 'articles' collection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PocketBase MCP Server
A Model Context Protocol (MCP) server for interacting with PocketBase databases.
This server allows you to inspect collections and query, create, update, and delete records inside a PocketBase instance.
Installation & Usage
You can use this server directly via npx (recommended) or install it globally.
Option 1: Run via npx
To run the server without installing it locally, configure your MCP client to use:
npx @yhauxell/pocketbase-mcp-serverOption 2: Global Installation
npm install -g @yhauxell/pocketbase-mcp-serverThen run the command:
pocketbase-mcp-serverRelated MCP server: Advanced PocketBase MCP Server
Configuration for Claude Desktop or MCP Clients
To register the server, add the following to your MCP client settings file (e.g., claude_desktop_config.json):
Using npx (Recommended)
Using admin email & password:
{
"mcpServers": {
"pocketbase-mcp-server": {
"command": "npx",
"args": ["-y", "@yhauxell/pocketbase-mcp-server"],
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_ADMIN_EMAIL": "your_email@example.com",
"POCKETBASE_ADMIN_PASSWORD": "your_password"
}
}
}
}Using an auth token:
{
"mcpServers": {
"pocketbase-mcp-server": {
"command": "npx",
"args": ["-y", "@yhauxell/pocketbase-mcp-server"],
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_AUTH_TOKEN": "your_auth_token_here"
}
}
}
}Using Local Build (For Development)
If you are developing locally, run npm run build and use:
{
"mcpServers": {
"pocketbase-mcp-server": {
"command": "node",
"args": ["/absolute/path/to/pocketbase-mcp-server/dist/index.js"],
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_ADMIN_EMAIL": "your_email@example.com",
"POCKETBASE_ADMIN_PASSWORD": "your_password"
}
}
}
}Local Setup (Development)
Clone the repository and install dependencies:
npm installBuild the project:
npm run buildConfigure environment variables in a
.envfile:POCKETBASE_URL=http://127.0.0.1:8090 POCKETBASE_ADMIN_EMAIL=your_email@example.com POCKETBASE_ADMIN_PASSWORD=your_password
Available Tools
pb_list_collections: List all collections in the PocketBase database.pb_get_collection: Get schema details of a specific collection.pb_list_records: Retrieve paginated, filtered, and sorted records from a collection.pb_view_record: Retrieve a single record by its ID.pb_create_record: Create a new record in a collection.pb_update_record: Update an existing record in a collection.pb_delete_record: Delete a record from a collection.
Contributing
Contributions are welcome! Please read CONTRIBUTING.md for details on how to get started.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/yhauxell/pocketbase-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server