MCP · AI Autofill · DataTalk

AI & Agents

Let AI agents read, write, and manage your data autonomously. Rebase is the bridge between your database and the agentic future.

Model Context Protocol

MCP Server

The @rebasepro/mcp-server package exposes your entire Rebase project to AI assistants like Cursor, Claude, and Windsurf via the Model Context Protocol standard.

AI agents can autonomously manage your data, run migrations, generate SDKs, and control the dev server — all through a standardized, secure interface.

Configuration
// .cursor/mcp.json
{
  "mcpServers": {
    "rebase": {
      "command": "npx",
      "args": ["@rebasepro/mcp-server"],
      "env": {
        "REBASE_BASE_URL": "http://localhost:3001"
      }
    }
  }
}

Available Tools

📝 Data Tools

List, get, create, update, and delete documents in any collection with filtering and pagination.

👤 Admin Tools

List users, create users, assign roles, delete users, and list roles — all programmatically.

🗄️ Schema & DB Tools

schema_generate, db_push, db_pull, db_generate, db_migrate, generate_sdk

🖥️ Dev Server

Start, stop, and read logs from the dev server without leaving your AI assistant.

📁 Resources

Collection definitions and generated Drizzle schema exposed as MCP resources for context-aware AI assistance.

Schema-Aware AI

AI Data Enhancement

The data enhancement plugin analyzes your collection schema and uses AI to auto-fill fields, suggest descriptions, generate SEO metadata, and translate content — all from within the admin UI.

  • One-click autofill based on existing field values
  • Schema-aware prompts (knows your field types and constraints)
  • Inline AI completions in the rich text editor
  • Works with any OpenAI-compatible API
import { useDataEnhancementPlugin } from
  "@rebasepro/data_enhancement";

const plugin = useDataEnhancementPlugin({
  getConfigForPath: ({ path }) => ({
    suggestions: true,
    autofill: true,
  })
});

// Drop into your Rebase app:
<Rebase
  plugins={[plugin]}
  ...
/>
Natural Language → SQL

DataTalk

Ask questions about your data in plain English. DataTalk converts natural language to SQL, executes it against your Postgres database, and renders the results in charts and tables.

  • Schema-aware query generation
  • Auto-generated visualizations
  • Conversation history and follow-ups
  • Integrated as a Rebase admin view
You

Show me the top 10 users by order count this month

AI

Here are the top 10 users:

SELECT u.display_name, COUNT(o.id)
FROM users u JOIN orders o ON ...
WHERE o.created_at >= ...
GROUP BY u.id ORDER BY count DESC
LIMIT 10;

Works With Your AI Stack

Rebase integrates with the tools developers are already using.

Cursor

MCP integration

Claude Desktop

MCP integration

Windsurf

MCP integration

OpenAI API

Data enhancement