What is Pb?
Pb is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for pb
MCP server for pb
This server falls under the APIs category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server for pb
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx pbConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Pb
The PocketBase MCP server connects AI assistants directly to a self-hosted PocketBase backend, exposing full CRUD operations on collections and records, user account management, and custom HTTP requests to any PocketBase API endpoint. It supports flexible filtering, sorting, pagination, and field expansion, and can reduce token usage by 30-60% using its 'toon' output format. Developers building apps on PocketBase use it to manage data, debug collection schemas, and automate backend operations through natural language without switching to the PocketBase admin UI.
Prerequisites
- Node.js 18+ with npm installed for building the server
- A running PocketBase instance accessible at a known URL (default: http://127.0.0.1:8090)
- PocketBase admin credentials (email/password) or a pre-generated admin token
- An MCP client such as Claude Desktop configured to run stdio MCP servers
Clone and build the PocketBase MCP server
Clone the repository and build the TypeScript source into the dist directory.
git clone https://github.com/ssakone/pocketbase-mcp-server.git
cd pocketbase-mcp-server
npm install
npm run buildConfigure environment variables
Set the PocketBase connection details. You can use environment variables or create a pocketbase.config.json file in the project root.
# Option 1: environment variables
export POCKETBASE_URL=http://127.0.0.1:8090
export [email protected]
export POCKETBASE_ADMIN_PASSWORD=yourpassword
# Option 2: config file (pocketbase.config.json)
{
"pocketbaseUrl": "http://127.0.0.1:8090",
"pocketbaseAdminToken": "your_admin_token_here"
}Test the server starts correctly
Run the built server to confirm it connects to your PocketBase instance before configuring your MCP client.
POCKETBASE_URL=http://127.0.0.1:8090 \
[email protected] \
POCKETBASE_ADMIN_PASSWORD=yourpassword \
node dist/index.jsAdd the server to your MCP client configuration
Edit your claude_desktop_config.json to register the PocketBase MCP server with your connection details.
{
"mcpServers": {
"pocketbase": {
"command": "node",
"args": ["/path/to/pocketbase-mcp-server/dist/index.js"],
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_ADMIN_EMAIL": "[email protected]",
"POCKETBASE_ADMIN_PASSWORD": "yourpassword"
}
}
}
}Restart your MCP client
Restart Claude Desktop or your MCP client to load the new server. PocketBase tools for collections, records, and user management will appear in the tool list.
Pb Examples
Client configuration
Claude Desktop config for the PocketBase MCP server with admin credentials.
{
"mcpServers": {
"pocketbase": {
"command": "node",
"args": ["/Users/you/pocketbase-mcp-server/dist/index.js"],
"env": {
"POCKETBASE_URL": "http://127.0.0.1:8090",
"POCKETBASE_ADMIN_EMAIL": "[email protected]",
"POCKETBASE_ADMIN_PASSWORD": "yourpassword",
"MCP_OUTPUT_FORMAT": "toon"
}
}
}
}Prompts to try
Example prompts to use with the PocketBase MCP server once connected.
- "List all collections in my PocketBase instance and describe their schemas"
- "Fetch the 10 most recent published posts from the posts collection, sorted by created date"
- "Create a new user account with email [email protected] in the users collection"
- "Find all records in the orders collection where status is 'pending' and total is greater than 100"
- "Delete all records in the sessions collection older than 30 days"Troubleshooting Pb
Authentication fails with 'invalid credentials' or 403 error
Verify POCKETBASE_ADMIN_EMAIL and POCKETBASE_ADMIN_PASSWORD match the admin account configured in your PocketBase instance. Alternatively, use POCKETBASE_ADMIN_TOKEN with a token generated from the PocketBase admin dashboard under Settings → Tokens.
Server cannot reach PocketBase at the configured URL
Confirm PocketBase is running and listening on the expected port (default 8090). If PocketBase runs in Docker, use the container's network address rather than 127.0.0.1. Test connectivity with: curl http://127.0.0.1:8090/api/health
npm run build fails with TypeScript compilation errors
Ensure you are using Node.js 18+ (node --version). Run npm install again to confirm all dependencies are present. If errors persist, try deleting node_modules and package-lock.json then re-running npm install.
Frequently Asked Questions about Pb
What is Pb?
Pb is a Model Context Protocol (MCP) server that mcp server for pb It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Pb?
Follow the installation instructions on the Pb GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Pb?
Pb works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Pb free to use?
Yes, Pb is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Pb Alternatives — Similar APIs Servers
Looking for alternatives to Pb? Here are other popular apis servers you can use with Claude, Cursor, and VS Code.
Kong
★ 43.4k🦍 The API and AI Gateway
API Mega List
★ 5.4kThis GitHub repo is a powerhouse collection of APIs you can start using immediately to build everything from simple automations to full-scale applications. One of the most valuable API lists on GitHub—period. 💪
Fetch
★ 5.4kFetch web content and convert to markdown for AI consumption
Fusio
★ 2.1kSelf-Hosted API Management for Builders
Korean Law
★ 1.8k국가법령정보MCP v4.0 | 법제처 41개 API → 17개 MCP 도구. 법령·판례·조례 검색 + LLM 환각 방지 인용검증 + 조문 영향 그래프(impact_map) + 시점 비교 자동 diff(time_travel) + 시민 5단계 실행 가이드(action_plan) | 41 Korean legal APIs → 17 MCP tools
RuleGo
★ 1.5k⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
Browse More APIs MCP Servers
Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Pb in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Pb?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.