Polarbase
FreeNot checkedExtensible Open-source Data Backend for PostgreSQL. Features a multi-view UI (Spreadsheet, Dashboard, Calendar), AI-Agent integration via MCP, and zero vendor l
About
Extensible Open-source Data Backend for PostgreSQL. Features a multi-view UI (Spreadsheet, Dashboard, Calendar), AI-Agent integration via MCP, and zero vendor lock-in.
README
PolarBase
Multi-view UI • Agent-ready • Zero Lock-in • Postgre-native
1. Introduction
Polarbase is an open-source Extensible Data Backend built directly on the PostgreSQL core. It empowers developers to architect, manage, and scale complex databases with ease, combining enterprise-grade reliability with a modern, developer-centric experience.
Architect your database with an intuitive UI and deploy data-driven solutions in minutes.
Explore Demo • View Roadmap • Changelog
Why Polarbase?
- Multi-View Workspace: Go beyond standard tables. Structure your data through specialized interfaces—Spreadsheet for rapid editing, Dashboards for real-time insights, and Operational Views (Forms/Calendars/Maps) for seamless workflows.
- Built for Extensibility: Designed as a core foundation, not a closed silo. With upcoming SDKs and native MCP (Model Context Protocol) support, Polarbase is engineered to power both custom frontends and autonomous AI Agents.
- Pure PostgreSQL, Zero Lock-in: We respect your data. By using SQLite exclusively for metadata, your PostgreSQL database remains clean, independent, and free from platform-specific overhead.
- Developer-Centric & Agile: Optimized for data-intensive applications that demand high performance and minimal backend overhead without sacrificing the power of a professional-grade engine.
Polarbase is currently in Public Beta. > We are actively building the future of extensible backends. Please Star and Watch the repo for updates!
2. Screenshots
Spreadsheet UI (Data View)
|
Calendar View
|
Map View
|
AI Agent Interface
|
Diversity of Data Types
|
API Keys Management
|
3. Key Features
- REST API for DB: Secure and efficient API endpoints to interact with your PostgreSQL database.
- AI Agent for DB: Intelligent agent to assist with database operations. Focuses on data reasoning and operational assistance.
- MCP Server for DB: Model Context Protocol server for streamlined administration.
- Realtime for DB: Real-time updates and synchronization for dynamic data handling (via WebSocket or SSE).
- Multi-View: User-friendly spreadsheet-style interface for data visualization and manipulation, besides calendar, map views, etc.
- API Key Management: Generate API keys to grant controlled access to key features.
4. Tech Stack
- Database: PostgreSQL (>= 14.0)
- Runtime: Bun (>= 1.0)
- Backend Framework: Elysia (>= 1.0)
- Frontend Framework: Angular (>= 17.0)
- AI Integration: Google Gemini (default) or OpenAI
- Languages: TypeScript (>= 5.0), HTML, SCSS
5. Getting Started
Cloud Version (Quick Try)
Visit our hosted demo to explore without installation.
Install Bun
Bun is a fast all-in-one JavaScript runtime that significantly outperforms Node.js in startup time, HTTP throughput, and package installation—often 2-4x faster (see benchmarks: Bun.sh, Strapi comparison, and Better Stack guide).
Install it quickly by following the official instructions: https://bun.sh/docs/installation
Local Development
Clone the repository:
git clone https://github.com/polarbase-team/polarbase.git cd polarbaseInstall dependencies using Bun:
bun installCopy the example environment file:
cp server/.env.example server/.envThen edit
server/.envto add your configuration (API keys, database credentials, etc.).Run the development servers:
- Both server and client from root:
bun start - Or separately:
- Server (backend):
Runs oncd server bun run devhttp://localhost:3000 - Client (frontend):
Runs oncd client bun starthttp://localhost:4200
- Server (backend):
Access the app at
http://localhost:4200(frontend).- Both server and client from root:
Build for Production
bun run build
Docker Support
Deploy easily with Docker Compose (recommended for production):
docker compose up --build
- Access at
http://localhost. - Customize with environment variables in
docker-compose.yml.
For a custom setup:
docker run -e GEMINI_API_KEY=<YOUR_GEMINI_KEY> -p 3000:3000 polarbase-team/polarbase:latest
6. Configuration
- API Keys for AI: Polarbase supports multiple AI providers (Gemini, OpenAI, Anthropic, xAI). Add your keys (e.g.,
GEMINI_API_KEY=your_key) to the.envfile in theserverfolder. - Local Models (LM Studio): Run models locally using LM Studio:
- Install LM Studio and download your preferred model.
- Start the Local Server in LM Studio (default port:
1234). - Polarbase defaults to
http://localhost:1234/v1. Customize viaLOCAL_LLM_BASE_URLin.envif needed. - In the Polarbase UI, open the Chatbot and select Local from the model menu.
- PostgreSQL Connection: Configured in the
server/.envfile. Set yourPOSTGRES_HOST,POSTGRES_USER,POSTGRES_PASSWORD, etc., to match your database setup. - Super Admin Key: Use the super admin key for initial login and administration. Generate or set it in the
.envfile asSUPER_ADMIN_API_KEY=your_secure_key_here. This key is required to access admin features and manage API keys. - API Key Generation: Once logged in as super admin, generate API keys via the interface to control access to features like REST API or AI agent.
Privacy Note: Polarbase does not store your database credentials. All operations run locally or in your controlled environment.
7. Try It Out
- Go to the app.
- Connect your PostgreSQL database.
- Use the REST API or AI agent for operations.
- Explore realtime features and spreadsheet-UI for data management.
- Generate API keys to manage access.
8. Libraries & Technologies Used
- Knexjs: For type-safe database querying and migrations.
- ai-sdk: Integration for AI agents and providers (Gemini, OpenAI).
- fastmcp: Efficient implementation of the Model Context Protocol server.
- PrimeNG: Rich set of UI components for Angular.
- Tailwind CSS: Utility-first CSS framework for rapid styling.
- Leaflet: Open-source JavaScript library for mobile-friendly interactive maps.
- FullCalendar: The most popular JavaScript Calendar.
- Other dependencies: WebSocket libraries for realtime updates, Angular modules for frontend, and more (see
package.jsonfiles inclientandserverfor the full list).
9. Community & Support
- GitHub Issues: Report bugs or request features.
10. Contributing
We welcome contributions! Whether it's fixing bugs, adding features, or improving docs.
- See our Contributing Guide for details.
- Follow the Code of Conduct.
Fork the repo, create a branch, and submit a Pull Request—we'll review it ASAP.
11. License
Polarbase is licensed under the MIT License.
Made with ❤️ by the polarbase-team.
If you like the project, give it a ⭐ on GitHub! 😊
Installing Polarbase
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/polarbase-team/polarbaseFAQ
Is Polarbase MCP free?
Yes, Polarbase MCP is free — one-click install via Unyly at no cost.
Does Polarbase need an API key?
No, Polarbase runs without API keys or environment variables.
Is Polarbase hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Polarbase in Claude Desktop, Claude Code or Cursor?
Open Polarbase on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgres
Query your database in natural language
by AnthropicPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolCompare Polarbase with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
