cursor-db-mcp

cursor-db-mcp

19

The Cursor DB MCP Server is a Model Context Protocol server that facilitates interaction with SQLite databases in the Cursor IDE. It allows AI assistants to access project data, chats, and other information stored in Cursor. The server is primarily intended for developers utilizing Cursor to enhance database management and AI interactions.

Cursor DB MCP Server

A Model Context Protocol (MCP) server designed to access Cursor IDE's SQLite databases, enabling AI assistants to explore and interact with project data, chat history, and composer information.### Prerequisites

  • Cursor IDE

Installation

  • Use the provided installation script to install all dependencies: basic MCP server and dependencies.

Using with Cursor IDE

  • Navigate to Settings->Cursor Settings->MCP, add a new MCP server, and configure it to run the server script.
  • Ask questions to retrieve database insights or historical chats.

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.

Available Tools

  • query_table: Query a specific table.
  • refresh_databases: Refresh the list of databases.### Architecture
  • Uses MCP to expose databases to AI assistants with key components like CursorDBManager and various tools and resources.