cursor-db-mcp

MCP.Pizza Chef: jbdamask

Cursor-db-mcp is a Model Context Protocol server that enables AI assistants to access and query Cursor IDE's SQLite databases. It provides structured access to project data, chat history, and composer information, allowing seamless integration of Cursor's development environment context into AI workflows. This server facilitates real-time interaction with Cursor's stored data, enhancing AI-driven coding and collaboration experiences.

Unmaintained · No commits in 17 months.

Use This MCP server To

Query Cursor IDE chat history for context-aware AI responses Access project data stored in Cursor's SQLite databases Retrieve composer information for enhanced coding assistance Enable AI assistants to explore Cursor IDE environment data Integrate Cursor project context into AI-driven workflows Support multi-turn reasoning using Cursor chat logs Facilitate debugging by querying historical chat and project states

README

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:

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: <fully qualified path to>uv run --with mcp[cli] mcp run <fully qualified path to>/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

cursor-db-mcp FAQ

How do I install cursor-db-mcp?
Use the provided install.py script to install all dependencies and the MCP server easily.
What prerequisites are needed to run cursor-db-mcp?
You need the Cursor IDE installed to use this MCP server effectively.
Can cursor-db-mcp be used with multiple LLM providers?
Yes, it supports integration with OpenAI, Claude, Gemini, and other MCP-compatible LLMs.
How does cursor-db-mcp access Cursor data?
It queries Cursor IDE's SQLite databases to provide structured data access to AI models.
Is cursor-db-mcp suitable for real-time AI interactions?
Yes, it enables real-time querying of chat history and project data for dynamic AI workflows.
Can I test cursor-db-mcp locally?
Yes, you can install MCP CLI tools optionally for local testing and development.
Does cursor-db-mcp expose sensitive project data?
It exposes data scoped to the Cursor IDE environment with secure, scoped access principles.
What kind of data can AI retrieve using cursor-db-mcp?
AI can retrieve chat history, project files metadata, and composer information from Cursor.