Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
AI-Native No-Code API Development Platform Based on PocketBase, with native PostgreSQL/MySQL/SQLite support, built-in MCP server, hybrid caching (Redis / memory), and 100% PocketBase API compatibility.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Manage databases & data.
MCP server for interacting with MySQL databases with write operations support
Same catalog task: Manage databases & data.
MCP server for DBX — query databases from Claude Code, Cursor, and other AI agents
Same catalog task: Manage databases & data.
Enhanced PostgreSQL MCP server with read and write capabilities. Based on @modelcontextprotocol/server-postgres by Anthropic.
Fetched from the repository for this visit.
PostgreBase 是 AI 原生的无代码 API 开发平台,基于 PocketBase 重构。内置 MCP (Model Context Protocol) 服务器,让 AI 工具(Claude、Cursor、Windsurf)直接操作你的数据。支持 PostgreSQL、MySQL、SQLite 三种数据库,提供即时 REST API + 实时订阅 + Admin UI,5分钟上线你的后端服务。
mysql:// DSN prefix.sqlite:// DSN or .db file path.--redisDsn) — distributed caching for cluster environments; SSE Realtime subscriptions synchronize across nodes via Redis Pub/Sub.list_collections, get_collection, list_records, get_record, create_record, update_record, delete_record, search_records.postgrebase://collections, postgrebase://settings.modernc.org/sqlite (pure Go transpilation of SQLite), builds with CGO_ENABLED=0.git clone https://github.com/zhenruyan/postgrebase.git
cd postgrebase
go build -o pb ./build/
For static builds (no CGO):
CGO_ENABLED=0 go build -o pb ./build/
# Using sqlite:// prefix
./pb serve --dataDsn "sqlite://./pb_data/dev.db"
# Or just pass a .db file path
./pb serve --dataDsn "./pb_data/dev.db"
./pb serve --dataDsn "postgresql://user:password@127.0.0.1:5432/dbname?sslmode=disable"
./pb serve --dataDsn "mysql://user:password@tcp(127.0.0.1:3306)/dbname"
./pb serve --dataDsn "postgres://..." --redisDsn "redis://127.0.0.1:6379/0"
# Build the image
docker build -t postgrebase .
# Run with SQLite
docker run -p 8090:8090 -v pb_data:/pb/pb_data postgrebase serve --dataDsn "sqlite:///pb/pb_data/dev.db"
# Run with PostgreSQL
docker run -p 8090:8090 postgrebase serve --dataDsn "postgres://user:pass@host:5432/db?sslmode=disable"
# Run with Redis
docker run -p 8090:8090 postgrebase serve --dataDsn "postgres://..." --redisDsn "redis://host:6379/0"
On startup the server prints its endpoints:
├─ REST API: http://127.0.0.1:8090/api/
├─ MCP SSE: http://127.0.0.1:8090/api/mcp/sse
└─ Admin UI: http://127.0.0.1:8090/_/
| Flag | Description | Example |
|---|---|---|
--dataDsn | Database connection string | sqlite://pb_data/data.db |
--redisDsn | (Optional) Redis connection string. Falls back to in-memory cache if omitted | redis://localhost:6379/0 |
--dir | Data directory for file uploads, backups, etc. | ./pb_data |
--encryptionEnv | Environment variable name for settings encryption key | PB_ENCRYPTION |
--debug | Enable debug mode with detailed logs | (flag) |
| Engine | Format |
|---|---|
| PostgreSQL | postgres://user:pass@host:port/db?sslmode=disable or postgresql://... |
| MySQL | mysql://user:pass@tcp(host:port)/db |
| SQLite | sqlite:///path/to/file.db, sqlite3://..., or simply ./file.db |
PostgreBase includes a built-in MCP server that allows AI tools to interact with your data via a standardized JSON-RPC 2.0 protocol.
Available when running ./pb serve. Connect to:
GET http://localhost:8090/api/mcp/sse # SSE event stream
POST http://localhost:8090/api/mcp/message # Send JSON-RPC requests
POST http://localhost:8090/api/mcp/stream # Streamable HTTP (single request/response)
Run the MCP server as a standalone process communicating over stdin/stdout:
./pb mcp --dataDsn "sqlite://./dev.db" --mcp-token "YOUR_TOKEN"
# Or disable auth (NOT recommended for production)
./pb mcp --dataDsn "sqlite://./dev.db" --mcp-no-auth
| Flag | Description |
|---|---|
--mcp-token | Admin JWT token or MCP-specific token for authentication |
--mcp-no-auth | Disable authentication (development only) |
{
"mcpServers": {
"postgrebase": {
"command": "/path/to/pb",
"args": ["mcp", "--dataDsn", "sqlite:///path/to/dev.db", "--mcp-no-auth"]
}
}
}
For production use, create dedicated MCP tokens (prefixed with mcp_) from the Admin UI under Settings → MCP Tokens. These tokens:
| Tool | Description |
|---|---|
list_collections | List all collections |
get_collection | Get a collection's schema and settings |
list_records | List records with pagination, filtering, and sorting |
get_record | Get a single record by ID |
create_record | Create a new record |
update_record | Update an existing record |
delete_record | Delete a record |
search_records | Search records using PostgreBase filter expressions |
| URI | Description |
|---|---|
postgrebase://collections | All collections with their schemas |
postgrebase://settings | Application settings (sanitized, no secrets) |
If you modify the Admin UI, rebuild the embedded assets before compiling the Go binary:
cd ui
npm install
npm run build
cd ..
go build -o pb ./build/
postgrebase/
├── build/ # Main server entry point (main.go)
├── core/ # Application logic, DB connection, caching
├── daos/ # Data access objects (CRUD operations)
├── models/ # Data models and schema definitions
├── apis/ # HTTP API handlers (REST + MCP routes)
├── mcp/ # MCP server: protocol, tools, resources, transports
├── migrations/ # Database migrations (Postgres/MySQL/SQLite)
├── cmd/ # CLI commands (serve, mcp, admin)
├── dbx/ # Database query builder (fork of ozzo-dbx)
├── tools/ # Shared utilities (security, types, search, etc.)
├── ui/ # Admin UI (Svelte + Vite)
├── vendor/ # Go dependencies (preserved for offline builds)
└── postgrebase.go # Root package: CLI setup, config, bootstrap
go test ./tools/... ./models/... ./daos/...
git checkout -b feature/amazing-feature).git commit -m 'Add some amazing feature').git push origin feature/amazing-feature).This project is a fork of PocketBase. Special thanks to Gani Georgiev for the original amazing work.
Licensed under the MIT license.
Loading reviews...
GitHub checked 39h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.