Data Sources Beginner

InstantDB MCP Integration

2 min read Updated May 21, 2026
Real-time client-side database (Firebase-style) — apps, schemas, permissions, and data exploration via the official hosted MCP server with OAuth.

InstantDB is the open-source real-time client database that many small teams use as a Firebase alternative — instantaneous writes, durable persistence, multiplayer-by-default. Connecting InstantDB to clariBI surfaces every app, schema, and dataset into your AI analyses.

Why connect InstantDB

Real-time data questions ("how many writes did the prod app see in the last hour?") usually require Postgres-side telemetry tools.

With InstantDB connected, you can ask "List apps in our org", "Show me the schema for the chat app", or "How many users are currently active on app X?" and the AI engine pulls the answer.

How the connection works

clariBI talks to InstantDB through its hosted MCP server at https://mcp.instantdb.com/mcp. Authentication uses an OAuth flow that clariBI registers itself for (no developer console setup on your side). Tokens stay encrypted server-side and never leave clariBI in clear form.

sequenceDiagram
    actor U as You
    participant C as clariBI
    participant V as InstantDB
    U->>C: Click Authorize with InstantDB
    C->>V: Open OAuth authorization
    V-->>U: Grant read access?
    U->>V: Approve
    V-->>C: Authorization code
    C->>V: Exchange code for tokens
    V-->>C: Access + refresh tokens
    C->>C: Encrypt and store credentials
    C-->>U: Connection ready

Available tools

clariBI exposes the read-only InstantDB tools that the vendor's MCP server publishes at connection time. Write operations (create, update, delete, send, refund) are filtered out by a name-pattern blocklist before any tool reaches the analysis engine, so connecting InstantDB cannot modify data on the vendor side.

The exact tool inventory depends on the InstantDB features your account has access to. After connecting, try a few natural-language questions to see what InstantDB data clariBI can pull.

Data flow during analysis

When you ask a question that maps to InstantDB, the AI engine routes to the right tool, reads the result, and pairs the answer with a chart you can pin to a dashboard.

sequenceDiagram
    actor U as You
    participant C as clariBI
    participant AI as AI engine
    participant V as InstantDB
    U->>C: Ask a question about real-time client-database state and metadata
    C->>AI: Plan the analysis
    AI->>V: Call the right tool
    V-->>AI: Tool result
    AI->>AI: Summarize and chart
    C-->>U: Answer plus visual

Setting up the connection

  1. Open Data Sources in the clariBI sidebar.
  2. Click Add data source.
  3. Open the MCP Servers tab.
  4. Click the InstantDB card.
  5. Click Authorize with InstantDB.
  6. Sign in to InstantDB in the popup window and grant the requested read scopes.
  7. Back in clariBI, give your data source a name.
  8. Click Finish.

Permissions and data access

OAuth scoping is granted at authorize time. clariBI requests read access to apps + schemas. Disconnect from your InstantDB account or from clariBI Settings.

Troubleshooting

ErrorCauseFix
"App not found"The app handle was renamed in InstantDB.Use the current app handle in the question; the catalog refreshes on the next call.

Related articles

Related Articles

Data Sources Intermediate

Morningstar MCP Integration

Investment research, fund data, ratings, fair-value estimates, and 200,000+ global securities from …

5 min read
Data Sources Intermediate

Keboola MCP Integration

Data pipelines, transformations, tables, and project metadata from the Keboola data-platform — for …

5 min read
Data Sources Intermediate

Logfire (EU) MCP Integration

OpenTelemetry traces, metrics, and logs from Pydantic Logfire (EU region) — for EU-resident custome…

5 min read

Still Need Help?

Can't find what you're looking for? Our support team is here to help you succeed with clariBI.