Skip to main content
Glama

InstantDB MCP Server

by Peterl561

instantdb-server MCP Server

An MCP server for interacting with InstantDB.

This server provides a read-only interface for querying InstantDB using a dynamically loaded schema and environment configuration. It includes tools to execute queries and retrieve query examples based on pre-defined patterns.

Features

Tools

  • get_examples
    Returns pre-defined example queries for various categories (e.g., "basic_read", "filtering", "associations").
  • queryDB
    Executes a specific query against InstantDB. Requires a query and a descriptive name parameter.
  • list_queries
    Retrieves the history of executed queries with details such as query ID, name, timestamp, and structure.
  • return_query
    Retrieves a specific query by its unique ID for later reference or implementation.

Schema and Environment Integration

  • Dynamic loading of the InstantDB schema from common file locations relative to a provided project directory (e.g., instant.schema.ts, src/instant.schema.ts, app/instant.schema.ts).
  • Environment variable configuration is loaded from the project’s .env file. Essential variables include:
    • INSTANT_APP_ID
    • INSTANT_APP_ADMIN_TOKEN

Pending Features

  • Dynamic detection of the InstantDB permissions file from common file locations.

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use the server with Claude Desktop, add the following configuration to your Claude Desktop settings:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

Example configuration:

{ "mcpServers": { "instantdb-server": { "command": "node", "args": ["/path/to/instantdb-server/build/index.js"], "env": { "INSTANT_APP_ID": "your_app_id", "INSTANT_APP_ADMIN_TOKEN": "your_admin_token" }, "disabled": false, "autoApprove": [] } } }

Debugging

For debugging MCP server communications, use the MCP Inspector:

npm run inspector

The Inspector will provide a URL to access tools for monitoring MCP server operations.

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A read-only interface for querying InstantDB that dynamically loads schemas and enables executing queries through pre-defined patterns.

  1. Features
    1. Tools
    2. Schema and Environment Integration
    3. Pending Features
  2. Development
    1. Installation
      1. Debugging

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Allows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.
          Last updated -
          1
          732
          Python
          MIT License
          • Linux
          • Apple
        • A
          security
          F
          license
          A
          quality
          Enables AI models to perform MySQL database operations through a standardized interface, supporting secure connections, query execution, and comprehensive schema management.
          Last updated -
          7
          64
          25
          JavaScript
        • -
          security
          A
          license
          -
          quality
          Enables LLMs to interact with MySQL databases by inspecting schemas and executing safe, read-only queries within transactions.
          Last updated -
          2
          8
          JavaScript
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          A server that enables LLMs like Claude to query AWS DynamoDB databases through natural language requests, supporting table management, data querying, and schema analysis.
          Last updated -
          7
          421
          JavaScript
          MIT License
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/Peterl561/instant-mcp-poc'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server