# LogRocket MCP

```json
{
  "name": "LogRocket MCP",
  "slug": "logrocket_mcp",
  "url": "https://composio.dev/toolkits/logrocket_mcp",
  "markdown_url": "https://composio.dev/toolkits/logrocket_mcp.md",
  "logo_url": "https://logos.composio.dev/api/logrocket",
  "categories": [
    "developer tools & devops"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-28T05:46:05.199Z"
}
```

![LogRocket MCP logo](https://logos.composio.dev/api/logrocket)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with LogRocket MCP or direct API to search session recordings, inspect network requests, analyze issues, and review product analytics through natural language.

## Summary

LogRocket MCP is a hosted interface for LogRocket session recordings, issues, network requests, and product analytics.
It gives AI agents a structured way to access product experience data.

## Categories

- developer tools & devops

## Toolkit Details

- Tools: 9

## Images

- Logo: https://logos.composio.dev/api/logrocket

## Authentication

- **Dcr Oauth**
  - Type: `custom`
  - Description: Dcr Oauth authentication for LogRocket MCP.
  - Setup:
    - Configure Dcr Oauth credentials for LogRocket MCP.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Find checkout errors in recent sessions
- Summarize slow network requests by endpoint
- Compare product metrics across recent releases

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `LOGROCKET_MCP_BUILD_METRIC` | Build metric | Use this to query LogRocket analytics data. This tool translates your natural language query into a LogRocket metric (e.g., timeseries, table, conversion funnel) that is then used to find relevant data. It's best used for performing aggregate analysis (e.g., session totals over time, browser or country breakdowns, conversion rates between steps). Returns an object with a `metricDefinition` field indicating the LogRocket metric that was used to find the data and a `metricQueryResult` field containing the corresponding analytics data. The result may also contain a `sessionDefinitions` field listing a sample of relevant sessions. Queries can reference the project's saved user segments and definitions by name. Example queries include: - "How many sessions in the last 24 hours?" - "Session count by browser over the last 30 days" - "Conversion rate from landing page to checkout in the last 7 days" - "Timeseries of sessions where users clicked "Start free trial" and then saw an error in the last week" - "Top countries by session count in the last 30 days" - "Sessions from my Enterprise Users segment that reached checkout in the last 7 days" |
| `LOGROCKET_MCP_FIND_ISSUES` | Find issues | Use this to list a LogRocket project's issues. This includes error signals detected in session recordings, specifically JavaScript exceptions, network errors, rage clicks, dead clicks, frustrating network requests, error states, and mobile crash reports. Issues can be filtered by severity, triage status, issue type, and time range, and optionally refined with a natural language query. Returns an object with an `issues` field listing matching issues, each with its issue type, platform, event count (an approximation of the number of affected sessions), first/last seen dates, `triageStatus` ("untriaged", "highImpact", "lowImpact", or "ignored"), a `url` linking to the issue's detail page in the LogRocket dashboard, and an AI-generated `issueDescription` when one exists. If a LogRocket AI issue analysis already exists for an issue, it is attached inline in the issue's `issueAnalysis` field with the analysis' summary, severity verdict, user impact, reproduction steps, and suggested next steps. Example uses: - "List the severe untriaged issues from the last week" - "Show high impact network errors this month" - "Any checkout-related exceptions in the last 24 hours?" |
| `LOGROCKET_MCP_FIND_SESSIONS` | Find sessions | Use this to find LogRocket sessions matching a natural language query. This tool translates your natural language query into LogRocket filters that are then used to find relevant sessions. It's best used for filtering sessions based on user ID or email, custom user traits, visited page or URL, custom events, text inputs, clicked on text or CSS selector, network errors, IP address, user location (e.g., country), and/or other basic metadata, in addition to over a specific date range (e.g., last week). Returns an object with a list of relevant sessions in the `sessionDefinitions` field, each with recording ID, session ID, session URL, date of recording as a Unix timestamp in milliseconds, and other basic metadata. The returned object will also include a `metricDefinition` field indicating which LogRocket filters were used to find the sessions. Example queries include: - "Sessions where user email ends with @example.com in the last 7 days" - "Sessions where users visited /checkout and clicked "Place order" in the last 24 hours" - "Sessions from Chrome on Windows in the last 14 days" - "Sessions from users in Germany who hit a network error on /api/payment this week" - "Sessions where users submitted the signup form but did not reach /welcome in the last 3 days" - "Sessions for user ID abc123 that include rage clicks on pricing pages this month" |
| `LOGROCKET_MCP_GET_METRIC` | Get metric | Use this to fetch the data for an existing, saved LogRocket metric (timeseries, funnel, table, retention, or session count) over a specific time range. Unlike build_metric, this runs the saved metric's own definition rather than generating one from a natural language query, so results are deterministic. Prefer this tool whenever the user provides a link to a saved metric. Heatmap and path analysis metrics are not supported. Returns an object with: - `metricDefinition`: the saved metric's configuration (name, type, filters, grouping, time interval, and, for funnels, the ordered steps in `funnel.steps`), with its time range replaced by the requested one. - `metricQueryResult`: the metric's data. Timeseries return `buckets` keyed by time bucket (and `fullRangeValues` or `fullRangeUniqueUsers` when values can't be summed across buckets). Funnels return `sessionCountTotal` and `funnelStepSessionCounts`, one count per step in `funnel.steps` order (users rather than sessions for cross-session funnels), or `groupedFunnelStepSessionCounts` when the funnel is grouped. Tables return ranked `buckets` with `totalBucketCount`. Retention returns `buckets` per retention interval. Session metrics return `sessionCountTotal`. - `sessionDefinitions`: when `sessionLimit` is set, a sample of sessions behind the metric, each with a `sessionURL` linking to its replay. For timeseries and session count metrics these are sessions matching the metric's filters; for funnels they are sessions in the cohort selected by `funnelStep` and `funnelSessions`. Always null for table and retention metrics, and when `sessionLimit` is omitted. |
| `LOGROCKET_MCP_GET_NETWORK_ENTRIES` | Get network entries | Use this to retrieve raw network request and response pairs recorded during a single LogRocket session, identified by its recording ID and session ID, as a HAR 1.2 document. Prefer this tool over watch_sessions when you only need network data. To gather network data across many sessions (e.g., all sessions that called a given endpoint over a date range), first locate sessions with find_sessions, then call this tool for each session. The response is an object with `total` (the number of entries matching your filters), `offset`, `limit`, and `har`. Entries are sorted by request start time and paginated: if `offset + limit < total`, call the tool again with a higher offset to fetch the next page. The `har` value is a HAR document that can be written directly to a .har file; its `log.entries` contain the request method, URL, query string, headers, and body, and the response status, headers, and body. Multi-tab sessions are merged into one log: `log.pages` has one entry per browser tab and each entry's `pageref` identifies its tab. Large bodies and header values may be truncated (denoted by "[TRUNCATED]"), cookies and timing breakdowns are not collected by the LogRocket SDK, and headers and bodies are omitted entirely if the caller lacks the required permissions - none of this indicates a problem with the recorded application. |
| `LOGROCKET_MCP_LIST_ORGANIZATIONS` | List organizations | List organizations the user has access to. Returns organization IDs and their human-readable names. |
| `LOGROCKET_MCP_LIST_PROJECTS` | List projects | List projects the user has access to. Returns project IDs and their human-readable names. |
| `LOGROCKET_MCP_USE_LOGROCKET` | Use logrocket | Run a natural language query against LogRocket. Use this to query sessions, metrics, issues, or other app data unless dedicated tools that would be a better fit are available. If the user references a specific session by providing a session URL, include the full URL in your query, not just part of it. Optionally pass a chatID to continue an existing conversation. Queries may take as long as 10 minutes to complete. If the result you get back has status: completed, the query is done. If the result you get back has status: thinking, the query is still running in the background. In this case, any messages in the result are meant to convey progress and should be shared with the user so they know work is still being done. You should then continue calling this tool with the chatID from the result and pollForResult: true until the query completes. Completed results may include links to specific sessions, metrics, issues, or other app data. These act as citations. Include them in your reply so the user can trace any claim back to the underlying LogRocket data. |
| `LOGROCKET_MCP_WATCH_SESSIONS` | Watch sessions | Use this to analyze one or more LogRocket sessions, each identified by its recording ID and session ID. You can use this tool to understand user behavior in the session or to extract additional information about the session (e.g., metadata, console logs, network requests and responses). Provide a separate natural language query describing what you want to know for each session to be analyzed. Sessions are analyzed in parallel, independently of each other. The tool returns an object with two properties, pendingResults and completedResults. The contents of pendingResults indicate which of your session watching requests are still running in the background, if any. Session watching can take several minutes to complete. When session watching requests are submitted - each combo of query, recordingID, and sessionID is treated as separate request - the requests are each assigned a unique fingerprint identifying the request. If there are entries in pendingResults, continue calling this tool with pollForResults: true and any pending fingerprints until all requests are complete. The contents of completedResults indicate which of your session watching requests have completed. Each object in completedResults will contain an `ok` field indicating whether the request succeeded or failed. Objects for successful requests will also contain a `content` field with the response to your query about the session and a `keyFrames` field citing specific frames from the session that ground the response. Cite relevant key frames in your own response to the user to provide evidence for your statements. You can choose to link to provided screenshots, fetch and display screenshot image content inline, and/or use the `videoTime` field to construct links to specific moments in the corresponding session (LogRocket session URLs have the structure `https://app.logrocket.com///s//?t=`; the `t` param is where you put the video time value you want to jump to). |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to LogRocket MCP
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["logrocket_mcp"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["logrocket_mcp"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run LogRocket MCP tools with your agent

Send a request, execute the LogRocket MCP tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Find sessions with checkout errors in the last 24 hours and summarize the most common network failures."}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Find sessions with checkout errors in the last 24 hours and summarize the most common network failures." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to LogRocket MCP and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["logrocket_mcp"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["logrocket_mcp"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a LogRocket MCP request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to LogRocket MCP tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Find sessions with checkout errors in the last 24 hours and summarize the most common network failures.")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Find sessions with checkout errors in the last 24 hours and summarize the most common network failures.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native LogRocket MCP Integration

- Supports both LogRocket MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your LogRocket MCP data

### 2. Managed Auth

- Built-in OAuth handling with automatic token refresh and rotation
- Central place to manage, scope, and revoke LogRocket MCP access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access LogRocket MCP
- Scoped, least privilege access to LogRocket MCP resources
- Full audit trail of agent actions to support review and compliance

## Use LogRocket MCP with any AI Agent Framework

Choose a framework you want to connect LogRocket MCP with:

- [ChatGPT](https://composio.dev/toolkits/logrocket_mcp/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/logrocket_mcp/framework/claude-cowork)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [1password](https://composio.dev/toolkits/_1password) - 1Password is a password manager and digital vault for storing logins, secrets, notes, and secure documents. It helps individuals and teams protect credentials, share access safely, and reduce password risk.
- [21st MCP](https://composio.dev/toolkits/21st_mcp) - 21st MCP is a hosted design resource service for React/shadcn components, themes, templates, and SVG logos. It gives teams a fast way to discover, organize, and reuse polished interface assets.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Agent37](https://composio.dev/toolkits/agent37) - Agent37 is a control API for managed agent sandboxes, templates, networking, and execution. It gives teams built-in scheduling, observability, budgets, and workspace administration.
- [Aikido Security](https://composio.dev/toolkits/aikido) - Aikido Security is a security platform for workspace, code, cloud, and application protection. It helps teams find vulnerabilities, manage compliance, and reduce security risk.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Anakin](https://composio.dev/toolkits/anakin_io) - Anakin is a web automation platform offering scraping, crawling, search, and browser automation. Use it to extract structured data, automate site tasks, and monitor web changes reliably.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [Anchor Browser MCP](https://composio.dev/toolkits/anchor_browser_mcp) - Anchor Browser MCP is a hosted browser automation service for running cloud browser sessions and web tasks. It provides secure, reusable browser identities and managed authentication for reliable agent workflows.
- [AnyAPI](https://composio.dev/toolkits/anyapi) - AnyAPI is a marketplace of utility APIs for validation, currency conversion, holidays, documents, and web data. It brings common application workflows together through one practical API platform.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [APIVerve MCP](https://composio.dev/toolkits/apiverve_mcp) - APIVerve MCP is a hosted utility API server for lookups, validation, conversion, and data enrichment. It gives developers one MCP connection to access APIVerve's utility APIs.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.

## Frequently Asked Questions

### Do I need my own developer credentials to use LogRocket MCP with Composio?

Yes, LogRocket MCP requires you to configure your own OAuth credentials. Once set up, Composio handles token storage, refresh, and lifecycle management for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
