InstantDB管理控制协议

Instant MCP是一个围绕Instant平台SDK的封装工具,用于在编辑器中创建、管理和更新InstantDB应用程序。

  • by instantdb
  • TypeScript
  • 本地部署
  • 1.1万 星标
  • 更新于
在 GitHub 查看 instantdb/instant

使用说明

@instantdb/mcp

Get Started · Examples · Docs · Discord

欢迎来到 Instant's MCP服务器。

即时MCP

此MCP是围绕Instant Platform SDK的包装器。将此MCP添加到您的 编辑器,用于创建、管理和更新InstantDB应用程序。

远程MCP服务器

Instant在以下位置托管最新版本的服务器 https://mcp.instantdb.com.

适用于支持流式HTTP使用的现代客户端 https://mcp.instantdb.com/mcp.

适用于需要SSE使用的传统客户 https://mcp.instantdb.com/sse.

有关更多特定于编辑器的说明,请参阅 公共文档.

本地MCP服务器

如果你还没有,一定要得到一个 即时仪表板中的个人访问令牌.

在stdio模式下运行服务器 npx -y @instantdb/mcp --token <token>.

有关更多特定于编辑器的说明,请参阅 公共文档.

贡献

快速开始

克隆此仓库并使用MCP检查器 @modelcontextprotocol/inspector 调试和 在本地针对此服务器进行开发。

# Clone this repo
git clone ..

# Navigate to the cloned directory and build the MCP server
cd ..
npm run build

# Run the server
npx @modelcontextprotocol/inspector node ./dist/index.js --token <token>

# Or alternatively via environment variable
INSTANT_ACCESS_TOKEN=<token> npx @modelcontextprotocol/inspector node ./build/index.js

# You can also specify a url to connect to a local instance of your instant server
npx @modelcontextprotocol/inspector node ./dist/index.js --token <token> --api-url
http://localhost:8888

如果你使用的是Claude Code,你可以在构建后直接添加mcp服务器:

claude mcp add --transport stdio instant-local -- node <path-to-your-cloned-repo>/dist/index.js --token <token>

然后,您可以直接删除服务器:

claude mcp remove instant-local

您还可以配置编辑器以连接到本地MCP。以下是MacOS/Linux的示例配置:

{
  "mcpServers": {
    "instant": {
      "command": "node",
      "args": [
        "<path-to-your-cloned-repo>/dist/index.js",
        "--token",
        "<token>",
        "--api-url",
        "http://localhost:8888"
      ]
    }
  }
}

远程MCP

cp .env.example .env

为您的新项目填写所有环境变量 .env 文件。

pnpm run dev

访问服务器 http://localhost:3123.

工作在 stdio 代码库的版本,更新您的 .env 文件包含 SERVER_TYPE=stdio.