Cursor AI Configuration

Configure MCP servers in Cursor to monitor AI interactions and enhance your development workflow with comprehensive logging.

New: Cursor Support

Cursor is a powerful AI-first code editor built on VS Code. With Kilometers, you can now monitor all AI interactions, track tool usage, and gain insights into your development workflow.

Setup Requirements
  • 1.Install Kilometers CLI: curl -sSL https://get.kilometers.ai/install.sh | sh
  • 2.Configure your API key: km init
  • 3.Install MCP servers you want to monitor
  • 4.Configure Cursor's MCP settings with km wrapper
Configuration File Location
Cursor stores its MCP server configuration in the following locations:
CONFIG FILE PATH
~/Library/Application Support/Cursor/User/globalStorage/storage.json

Configuration Templates

Choose from these MCP server configurations optimized for Cursor. Each template includes detailed setup instructions and ready-to-use configurations.

GitHub Integration
Connect Cursor AI to your GitHub repositories

Setup Instructions:

  1. 1.Create a GitHub Personal Access Token at https://github.com/settings/tokens
  2. 2.Grant appropriate permissions (repo, read:org, etc.)
  3. 3.Install the GitHub MCP server: npm install -g @modelcontextprotocol/server-github
  4. 4.Replace 'your_github_token_here' with your actual token

Cursor Configuration:

MCP Configuration
{
  "mcpServers": {
    "github": {
      "command": "km",
      "args": [
        "npx",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_token_here"
      }
    }
  }
}

Verify Configuration:

After configuring and restarting Cursor, validate your setup:

km validate

Use Cursor's AI features and check your Kilometers dashboard for monitored events.

Filesystem Access
Allow Cursor AI to read and write files in your workspace

Setup Instructions:

  1. 1.Install the filesystem MCP server: npm install -g @modelcontextprotocol/server-filesystem
  2. 2.Replace '/Users/username/workspace' with your actual workspace path
  3. 3.Use absolute paths for better reliability
  4. 4.Server will have access to the specified directory and subdirectories

Cursor Configuration:

MCP Configuration
{
  "mcpServers": {
    "filesystem": {
      "command": "km",
      "args": [
        "npx",
        "@modelcontextprotocol/server-filesystem",
        "/Users/username/workspace"
      ],
      "env": {}
    }
  }
}

Verify Configuration:

After configuring and restarting Cursor, validate your setup:

km validate

Use Cursor's AI features and check your Kilometers dashboard for monitored events.

Web Search
Enable Cursor AI to search the web for information

Setup Instructions:

  1. 1.Sign up for Brave Search API at https://api.search.brave.com/
  2. 2.Generate an API key from your dashboard
  3. 3.Install the Brave Search MCP server: npm install -g @modelcontextprotocol/server-brave-search
  4. 4.Replace 'your_brave_api_key_here' with your actual API key

Cursor Configuration:

MCP Configuration
{
  "mcpServers": {
    "brave-search": {
      "command": "km",
      "args": [
        "npx",
        "@modelcontextprotocol/server-brave-search"
      ],
      "env": {
        "BRAVE_API_KEY": "your_brave_api_key_here"
      }
    }
  }
}

Verify Configuration:

After configuring and restarting Cursor, validate your setup:

km validate

Use Cursor's AI features and check your Kilometers dashboard for monitored events.

Ready to Monitor Cursor AI?

Start tracking your AI development workflow with comprehensive monitoring and insights.