S2 has a Model Context Protocol server.

Endpoints from the REST API are provided as MCP tools via the server, allowing you to read, write, create streams, and so forth.

The server is in the s2-sdk-typescript package, and can be run locally via node, or as a standalone binary. More detailed installation info can be found here.

Quickstart with Claude

The MCP server can be added to Claude Desktop with the following addition to claude_desktop_config.json (or by navigating to Settings > Integrations):

{
  "mcpServers": {
    "S2": {
      "command": "npx",
      "args": [
        "-y", "--package", "@s2-dev/streamstore",
        "--",
        "mcp", "start",
        "--access-token", "MY_ACCESS_TOKEN"
      ]
    }
  }
}

Don’t forget to use an actual access token. You can create a dedicated one for MCP purposes from the S2 dashboard — and even disable particular operations for additional security!

If you use Claude Code, you can import the server directly from your Claude Desktop config with:

claude mcp add-from-claude-desktop

Example

A short example of the MCP server being used from Claude Desktop: