JUHE API Marketplace
fadlee avatar
MCP Server

PocketBase MCP Server

Enables MCP-compatible applications to directly interact with PocketBase databases for collection management, record operations, schema generation, and data analysis.

0
GitHub Stars
11/22/2025
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. pocketbase-mcp

README Documentation

PocketBase MCP Server

Seamless integration between PocketBase and MCP clients through the Model Context Protocol (MCP). This server enables MCP-compatible applications to directly interact with PocketBase databases for collection management, record operations, schema generation, and data analysis.

โœจ Key Features

  • ๐Ÿ—„๏ธ Collection Management: Create, migrate, and manage collections with custom schemas
  • ๐Ÿ“ Record Operations: Full CRUD operations with advanced querying and filtering
  • ๐Ÿ”„ Schema Generation: Bidirectional conversion between TypeScript interfaces and PocketBase schemas
  • ๐Ÿ“Š Data Analysis: Intelligent insights and analytics for your collections
  • ๐Ÿ” Authentication: User management and authentication workflows
  • โšก Performance: Optimized for speed with built-in caching and connection pooling

๐Ÿš€ Quick Start

Installation

npm install -g pocketbase-cursor-mcp

MCP Client Setup

For Cursor AI

  1. Open Cursor AI Settings (Cmd+, / Ctrl+,)
  2. Navigate to AI โ†’ Model Context Protocol Servers
  3. Add new server:
    • Name: pocketbase
    • Command: npx
    • Args: pocketbase-cursor-mcp --url=http://127.0.0.1:8090

For Other MCP Clients

Refer to your MCP client's documentation for server configuration. Use:

  • Server Command: npx pocketbase-cursor-mcp
  • Arguments: --url=http://127.0.0.1:8090

Basic Configuration

# Using command line
pocketbase-cursor-mcp --url=http://127.0.0.1:8090

# Using environment variables
export POCKETBASE_URL=http://127.0.0.1:8090
pocketbase-cursor-mcp

๐Ÿ’ก Usage Examples

Create Collections from TypeScript

// Describe your interface to your MCP client
interface User {
  username: string;
  email: string;
  isActive: boolean;
  profile: UserProfile;
}

Generate TypeScript from PocketBase

Generate TypeScript interfaces from my PocketBase collections

Data Analysis

Analyze the "products" collection and provide insights

๐Ÿ› ๏ธ Available Tools

Collection Management: create_collection, list_collections, delete_collection, get_collection_schema, update_collection, truncate_collection, migrate_collection

Record Operations: create_record, list_records, update_record, delete_record, query_collection

Authentication: authenticate_user, create_user

Code Generation: generate_pb_schema, generate_typescript_interfaces

Analysis: analyze_collection_data, backup_database, import_data

File Management: upload_file, download_file, upload_file_from_url

Advanced: manage_indexes

๐Ÿ“– Complete API Reference โ†’

๐Ÿ“š Documentation

  • Getting Started - Installation and configuration guide
  • Developer Guide - How to extend the server with new tools
  • API Reference - Complete tool reference and examples
  • Architecture - System design and architectural decisions
  • Contributing - Guidelines for contributors

๐Ÿ—๏ธ Architecture

Built with a modular, extensible architecture:

src/
โ”œโ”€โ”€ tools/          # Modular tool system
โ”‚   โ”œโ”€โ”€ schemas/    # Input validation
โ”‚   โ””โ”€โ”€ handlers/   # Business logic
โ”œโ”€โ”€ utils/          # Shared utilities
โ”œโ”€โ”€ types/          # TypeScript definitions
โ””โ”€โ”€ config/         # Configuration management

Key Benefits:

  • ๐Ÿ”ง Extensible: Easy to add new tools
  • ๐Ÿ›ก๏ธ Type-Safe: Full TypeScript coverage
  • โšก Performance: Optimized for speed
  • ๐Ÿงช Testable: Comprehensive test coverage

Contributing

Contributions are always welcome! Please create an issue or pull request.

License

MIT

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright ยฉ 2025 - All rights reserved