Skip to main content

Search events with Cursor

You can use Cursor to query Imply Lumi events from within your development environment. The MCP integration connects Lumi to Cursor through the Model Context Protocol (MCP), enabling natural language queries, generating the SQL to send to Lumi, and returning the results in context.

Prerequisites

To query Lumi events with Cursor, you need the following:

  • Access to Lumi with the Data manager role or higher. For information on roles and permissions, see Manage roles.
  • Lumi IAM key. See Create an IAM key for details.

You also need a Cursor account. Before you begin, install Cursor and log in. See Cursor quickstart for details.

Obtain Lumi authentication details

To obtain the details you need from Lumi:

  1. Go to the Model Context Protocol (MCP) integration page in Lumi and select your IAM key.
  2. Select the Cursor AI agent. Cursor integration
  3. Copy the code snippet in Configure Cursor. You'll need it in the next step.

Configure Cursor

To register your Lumi MCP server with Cursor:

  1. Open the Cursor configuration file at ~/.cursor/mcp.json. Create the file if it doesn't exist.

  2. Add the snippet you saved in Obtain Lumi authentication details to include the Lumi mcpServers object. For example:

    {
    "mcpServers": {
    "imply-lumi": {
    "url": "https://mcp.lumi.imply.io",
    "headers": {
    "X-Lumi-Auth": "0b8d890e-0bc4-4208-ab68-c195c00d76b0"
    }
    }
    }
    }
  3. Restart Cursor.

Query Lumi from Cursor

You can now query Lumi from Cursor using natural language. For example, "@imply-lumi What were the top 5 uri paths accessed in the past week?" Cursor displays the SQL it uses to run the query and the result.

Example response:

Cursor example query

Learn more

See the following topics for more information: