Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Cursor Db Mcp

    Model Context Protocol server for querying Cursor chat history

    21 stars
    Python
    Updated Sep 12, 2025

    Table of Contents

    • Prerequisites
    • Installation
    • Easy Installation
    • Using with Claude Desktop
    • Using with Cursor IDE
    • Using with Claude Desktop
    • Available Resources
    • Available Tools
    • Listing Projects
    • Viewing Chat History
    • Querying Database Tables
    • Analyzing Chat Data

    Table of Contents

    • Prerequisites
    • Installation
    • Easy Installation
    • Using with Claude Desktop
    • Using with Cursor IDE
    • Using with Claude Desktop
    • Available Resources
    • Available Tools
    • Listing Projects
    • Viewing Chat History
    • Querying Database Tables
    • Analyzing Chat Data

    Documentation

    Cursor DB MCP Server

    A Model Context Protocol (MCP) server for accessing Cursor IDE's SQLite databases. This server allows AI assistants to explore and interact with Cursor's project data, chat history, and composer information.

    __Cursor__

    In Cursor GIF

    Prerequisites

    Cursor IDE

    Installation

    Easy Installation

    Use the provided installation script to install all dependencies:

    bash
    python install.py

    This script will install:

    • Basic MCP server and dependencies

    Using with Cursor IDE

    1. Open Cursor and navigate to Settings->Cursor Settings->MCP.

    2. Click: Add new MCP server

    3. Name: Cursor DB MCP; Type: Command

    4. Command: \uv run --with mcp[cli] mcp run \/cursor-db-mcp-server.py

    Cursor DB MCP

    Now you can ask questions about the database or retrieve info about historical chats.

    DB structure

    DB keys

    Using with Claude Desktop

    Installing MCP servers for Claude Desktop

    Add this to your claude_desktop_config.json file

    code
    "cursor-db-mcp": {
          "command": "/uv",
          "args": [
            "run",
            "--with",
            "mcp[cli]",
            "mcp",
            "run",
            "/cursor-db-mcp-server.py"
          ]
        }

    Cursor DB fuzzy search

    Available Resources

    • cursor://projects - List all available Cursor projects
    • cursor://projects/detailed - List projects with detailed information
    • cursor://projects/{project_name}/chat - Get chat data for a specific project
    • cursor://projects/{project_name}/composers - Get composer IDs for a specific project
    • cursor://composers/{composer_id} - Get data for a specific composer

    Available Tools

    • query_table - Query a specific table in a project's database
    • refresh_databases - Refresh the list of database paths

    How It Works

    The server scans your Cursor installation directory to find project databases (state.vscdb files). It then exposes these databases through MCP resources and tools, allowing AI assistants to query and analyze the data.

    Notes

    1. Cursor stores AI conversations in different places. Increasingly, chats are stored as "composerData" under globalStorage/state.vscdb. If you don't get results when asking about chats for recent projects, try asking for composers.

    2. This was written on a Mac. YMMV with other OS

    Shameless Plug

    Like this? Try Cursor Journal to create DevLogs directly from Cursor chat history!

    License

    MIT

    Similar MCP

    Based on tags & features

    • PE

      Personalizationmcp

      Python·
      12
    • MA

      Mayamcp

      Python·
      27
    • BI

      Biothings Mcp

      Python·
      25
    • GG

      Gget Mcp

      Python·
      17

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • PE

      Personalizationmcp

      Python·
      12
    • MA

      Mayamcp

      Python·
      27
    • BI

      Biothings Mcp

      Python·
      25
    • GG

      Gget Mcp

      Python·
      17

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k