# Rocket Chat — Pipedream Connect

> The Ultimate Communication Platform

- API slug: `rocket_chat` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Communication
- Website: https://rocket.chat/
- This page (HTML): https://pipedream.com/apps/rocket-chat
- Tools: 5 actions · 3 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: rocket_chat`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "rocket_chat",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Channel:
const result = await mcp.callTool({
  name: "rocket_chat-create-channel",
  arguments: {
    name: "Room Name",
    members: ["Members"],
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Rocket Chat endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "rocket_chat-create-channel",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    rocket_chat: { authProvisionId: "apn_xxxxxxx" },
    name: "Room Name",
    members: ["Members"],
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (5)

### `rocket_chat-create-channel` — Create Channel (Write)

Creates a new channel. See the documentation

Full schema: https://pipedream.com/apps/rocket-chat/actions/create-channel.md

### `rocket_chat-list-channel-id-options` — List Channel ID Options (Read-only)

Retrieves available options for the Channel ID field.

Full schema: https://pipedream.com/apps/rocket-chat/actions/list-channel-id-options.md

### `rocket_chat-list-username-options` — List Recipient Username Options (Read-only)

Retrieves available options for the Recipient Username field.

Full schema: https://pipedream.com/apps/rocket-chat/actions/list-username-options.md

### `rocket_chat-send-direct-message` — Send Direct Message (Write)

Sends a new direct message to a specific user. See the documentation

Full schema: https://pipedream.com/apps/rocket-chat/actions/send-direct-message.md

### `rocket_chat-set-status` — Set Status (Write)

Updates the user's status. See the documentation

Full schema: https://pipedream.com/apps/rocket-chat/actions/set-status.md

## Triggers (3)

### `rocket_chat-new-channel-created` — New Channel Created (Polling)

Emit new event when a new channel is created in RocketChat.

Full schema: https://pipedream.com/apps/rocket-chat/triggers/new-channel-created.md

### `rocket_chat-new-message-public-channel` — New Message in Public Channel (Polling)

Emit new event when a new message is posted to a specific public channel.

Full schema: https://pipedream.com/apps/rocket-chat/triggers/new-message-public-channel.md

### `rocket_chat-new-user-created` — New User Created (Polling)

Emit new event when a new user is created in RocketChat.

Full schema: https://pipedream.com/apps/rocket-chat/triggers/new-user-created.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
