InstantDB MCP Server

Integrations

  • Loads environment variables from .env files to configure the InstantDB connection with essential variables like INSTANT_APP_ID and INSTANT_APP_ADMIN_TOKEN.

  • Supports installation on macOS systems with specific configuration paths for Claude Desktop integration.

  • Uses npm for package management, installation of dependencies, and running build and development scripts.

instantdb-server MCP 服务器

用于与 InstantDB 交互的 MCP 服务器。

该服务器提供了一个只读接口,用于使用动态加载的架构和环境配置来查询 InstantDB。它包含一些工具,用于执行查询并根据预定义的模式检索查询示例。

特征

工具

  • 获取示例
    返回各种类别的预定义示例查询(例如“basic_read”、“filtering”、“associations”)。
  • 查询数据库
    对 InstantDB 执行特定查询。需要一个查询和一个描述性的名称参数。
  • 列表查询
    检索已执行查询的历史记录,包括查询 ID、名称、时间戳和结构等详细信息。
  • 返回查询
    通过唯一 ID 检索特定查询以供以后参考或执行。

架构和环境集成

  • 从相对于提供的项目目录的公共文件位置动态加载 InstantDB 模式(例如,instant.schema.ts、src/instant.schema.ts、app/instant.schema.ts)。
  • 环境变量配置从项目的 .env 文件加载。必需的变量包括:
    • 即时应用 ID
    • 即时应用管理员令牌

待定功能

  • 从常见文件位置动态检测 InstantDB 权限文件。

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

安装

要将服务器与 Claude Desktop 一起使用,请将以下配置添加到您的 Claude Desktop 设置中:

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

示例配置:

{ "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": [] } } }

调试

要调试 MCP 服务器通信,请使用 MCP Inspector:

npm run inspector

检查器将提供一个 URL 来访问用于监控 MCP 服务器操作的工具。

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

提供用于查询 InstantDB 数据的只读界面,并提供工具来执行查询并根据预定义模式检索示例。

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