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:
- Go to the Model Context Protocol (MCP) integration page in Lumi and select your IAM key.
- Select the Cursor AI agent.
- 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:
-
Open the Cursor configuration file at
~/.cursor/mcp.json
. Create the file if it doesn't exist. -
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"
}
}
}
} -
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:
Learn more
See the following topics for more information:
- Search Lumi events for all options to search events.
- Search events with AI agents for other AI agents that integrate with Lumi.
- Installing MCP with Cursor for details on connecting to Cursor with MCP.