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: 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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA comprehensive server that enables advanced database operations with PocketBase, providing tools for collection management, record operations, user management, and database administration through the Model Context Protocol.66MIT
- AlicenseBqualityBmaintenanceEnables MCP-compatible applications to directly interact with PocketBase databases for collection management, record operations, schema generation, and data analysis.221962MIT
- Alicense-qualityFmaintenanceEnables AI assistants and MCP clients to interact with PocketBase databases for authentication, data management, and administrative operations.965MIT
- Alicense-qualityDmaintenanceEnables LLMs to manage PocketBase databases with comprehensive CRUD, authentication, file management, backup, and hook operations through a standardized protocol.95MIT
Related MCP Connectors
Manage products, EU Digital Product Passports, operator parties, and GS1 EPCIS supply-chain events.
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Airtable MCP Pack — wraps the Airtable REST API v0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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