InstantDB MCP Server
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 权限文件。
Related MCP server: mysql-mcp-server
发展
安装依赖项:
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 服务器操作的工具。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Securely query and analyze business data, dashboards, projections, alerts, and knowledge.
Read-only Kyntrax definitions, claims, evidence status and public provenance.
Query your own databases and Data Sets with read-only SQL, and build hosted dashboards.
Read-only cited financial datasets, bounded research queries and source diagnostics.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceA read-only interface for querying InstantDB that dynamically loads schemas and enables executing queries through pre-defined patterns.-
- AlicenseAqualityDmaintenanceProvides read-only MySQL query execution, database/table browsing, and table structure inspection with SQL safety validation.5MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to securely query databases, list tables, inspect table schemas, and test connections across Oracle, SQL Server, MySQL, PostgreSQL, and SQLite using read-only SQL tools.4MIT
- AlicenseAqualityBmaintenanceEnables an MCP client to answer business questions by running read-only, allow-listed, masked SQL queries against a served database copy, with row/time limits and an audit log.3MIT