This MCP server allows AI to use a number of functions from our REST API. For example, it can create, modify, and delete different aspects of Liveblocks such as rooms, threads, comments, notifications, and more. It also has read access to Storage and Yjs. Learn more in our docs.
To install automatically, copy your Liveblocks secret key from a project in your dashboard and run one of the following commands, replacing [key]
with your secret key.
npx -y @smithery/cli install @liveblocks/liveblocks-mcp-server --client cursor --key [key]
npx -y @smithery/cli install @liveblocks/liveblocks-mcp-server --client claude --key [key]
npx -y @smithery/cli install @liveblocks/liveblocks-mcp-server --client vscode --key [key]
Find installation information for other clients on Smithery.
Read more
- Clone this repo.
git clone https://github.com/liveblocks/liveblocks-mcp-server.git
- Build the project.
npm install
npm run build
- Get your Liveblocks secret key from the dashboard.
sk_dev_Ns35f5G...
-
Go to File → Cursor Settings → MCP → Add new server.
-
Add the following, with the full path to the repo and your secret key:
{
"mcpServers": {
"liveblocks-mcp-server": {
"command": "node",
"args": ["/full/path/to/the/repo/liveblocks-mcp-server/build/index.js"],
"env": {
"LIVEBLOCKS_SECRET_KEY": "sk_dev_Ns35f5G..."
}
}
}
}
- Check it's enabled in the MCP menu.
-
Go to File → Settings → Developer → Edit Config.
-
Open the JSON file,
claude_desktop_config.json
. -
Add the following, with the full path to the repo and your secret key:
{
"mcpServers": {
"liveblocks-mcp-server": {
"command": "node",
"args": ["/full/path/to/the/repo/liveblocks-mcp-server/build/index.js"],
"env": {
"LIVEBLOCKS_SECRET_KEY": "sk_dev_Ns35f5G..."
}
}
}
}