Compatible with every major AI agent and IDE
What is the Liveblocks MCP Server?
Connect your Liveblocks account to any AI agent to orchestrate multiplayer experiences and real-time collaboration features through natural language.
What you can do
- Room Management — List, create, update, and delete rooms to manage your application's collaborative spaces.
- User Authentication — Generate access tokens and identify users with specific permissions using
authorize_userandidentify_user. - Collaborative Storage — Inspect and patch room storage state or manage Yjs documents for shared editing.
- Comments & Threads — Query, create, and resolve comment threads to keep track of team discussions within rooms.
- Real-time Presence — List active users in a room or broadcast custom events to connected clients.
How it works
- Subscribe to this server
- Enter your Liveblocks Secret Key
- Start managing your real-time infrastructure from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Full-stack Developers — quickly debug room storage, manage user permissions, or clear stale rooms without leaving the terminal or IDE.
- Product Managers — monitor active collaboration sessions and review comment threads across different project rooms.
- DevOps Engineers — automate the provisioning of collaborative environments and manage access rules programmatically.
Built-in capabilities (18)
Obtain an access token for a client to enter a room
Broadcast a JSON event to a room
Create a new room
Create a thread and the first comment
Delete a room
Retrieve room details
Get the room's Storage tree
Get a specific thread
Get a JSON representation of the Yjs document
Permissions are managed on the backend. Obtain an ID token for a client
Initialize or reinitialize Storage
List users currently in the room
Can be filtered by metadata or access. List rooms with filtering and pagination
List threads in a room
Apply JSON Patch operations to Storage
Resolve a thread
Update room properties
Send a binary Yjs update
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Liveblocks tool infrastructure. Connect 18 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Liveblocks without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Liveblocks tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Liveblocks in Mastra AI
Liveblocks and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Liveblocks to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Liveblocks in Mastra AI
The Liveblocks MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 18 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
Liveblocks for Mastra AI
Every tool call from Mastra AI to the Liveblocks MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
How can I filter rooms by specific metadata using the AI?
You can ask the agent to use the list_rooms tool and provide a JSON string in the metadata parameter. For example, ask to 'List rooms where the project metadata is alpha'.
Can I generate a temporary access token for a user to join a room?
Yes. Use the authorize_user tool. Provide the Room ID and User ID, and the agent will return a token that grants access to that specific room.
Is it possible to permanently delete a room and its data?
Yes, the delete_room tool allows you to permanently remove a room and all associated storage, comments, and metadata. Use this with caution as it is irreversible.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
IPGeolocation (IP Intelligence & Time)
3 toolsResolve IP addresses via IPGeolocation — get precise location, timezone details, and local astronomy data.

JumpCloud
10 toolsManage users, systems, and directories via JumpCloud API.

Sentry Alternative
15 toolsMonitor errors and application health via Sentry — query issues, inspect events, audit releases and check alert rules directly from any AI agent.

Overpass (OpenStreetMap)
16 toolsSearch OpenStreetMap data — find restaurants, shops, hospitals, schools, parks, ATMs and more worldwide.
