Access and query Cursor IDE's SQLite project databases, chat history, and composer data through a Model Context Protocol server that enables AI assistants to explore, retrieve, and analyze development project information efficiently.
Unlock the full potential of Cursor DB MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
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
Cursor IDE
Use the provided installation script to install all dependencies:
python install.py
This script will install:
!Cursor DB MCP
Now you can ask questions about the database or retrieve info about historical chats.
!DB structure
!DB keys
Installing MCP servers for Claude Desktop
Add this to your claude_desktop_config.json file
"cursor-db-mcp": {
"command": "/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/cursor-db-mcp-server.py"
]
}
!Cursor DB fuzzy search
cursor://projects
- List all available Cursor projectscursor://projects/detailed
- List projects with detailed informationcursor://projects/{project_name}/chat
- Get chat data for a specific projectcursor://projects/{project_name}/composers
- Get composer IDs for a specific projectcursor://composers/{composer_id}
- Get data for a specific composerquery_table
- Query a specific table in a project's databaserefresh_databases
- Refresh the list of database pathsThe 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.
Like this? Try Cursor Journal to create DevLogs directly from Cursor chat history!
MIT
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!