Pb

v1.0.0APIsstable

MCP server for pb

pbmcpai-integration
Share:
59
Stars
0
Downloads
0
Weekly
0/5

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

Pb service integration
ssakone

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx pb

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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 build
2

Configure 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"
}
3

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.js
4

Add 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"
      }
    }
  }
}
5

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.

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.

Quick Config Preview

{ "mcpServers": { "pb": { "command": "npx", "args": ["-y", "pb"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides