Cursor DB MCP Server
游标数据库 MCP 服务器
用于访问 Cursor IDE 的 SQLite 数据库的模型上下文协议 (MCP) 服务器。该服务器允许 AI 助手探索并与 Cursor 的项目数据、聊天记录和作曲家信息进行交互。
光标
先决条件
游标 IDE
Related MCP server: ExecuteAutomation Database Server
安装
易于安装
使用提供的安装脚本安装所有依赖项:
python install.py该脚本将安装:
基本 MCP 服务器和依赖项
与 Cursor IDE 一起使用
打开 Cursor 并导航至设置->光标设置->MCP。
点击:添加新的 MCP 服务器
名称:Cursor DB MCP;类型:命令
命令:<完全限定路径>uv run --with mcp[cli] mcp run <完全限定路径>/cursor-db-mcp-server.py

现在您可以询问有关数据库的问题或检索有关历史聊天的信息。


与 Claude Desktop 一起使用
将其添加到您的 claude_desktop_config.json 文件中
"cursor-db-mcp": {
"command": "<fully qualified path to >/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"<fully qualified path to >/cursor-db-mcp-server.py"
]
}
可用资源
cursor://projects- 列出所有可用的 Cursor 项目cursor://projects/detailed- 列出项目的详细信息cursor://projects/{project_name}/chat- 获取特定项目的聊天数据cursor://projects/{project_name}/composers- 获取特定项目的作曲家 IDcursor://composers/{composer_id}- 获取特定作曲家的数据
可用工具
query_table- 查询项目数据库中的特定表refresh_databases- 刷新数据库路径列表
工作原理
服务器会扫描您的 Cursor 安装目录,查找项目数据库(state.vscdb 文件)。然后,它会通过 MCP 资源和工具公开这些数据库,以便 AI 助手查询和分析数据。
笔记
Cursor 将 AI 对话存储在不同位置。聊天记录越来越多地以“composerData”的形式存储在 globalStorage/state.vscdb 下。如果您在查询最近项目的聊天记录时没有得到结果,请尝试查询作曲家。
本文是在 Mac 上编写的。其他操作系统可能有所不同。
无耻的插件
喜欢这个?试试Cursor Journal ,直接从 Cursor 聊天记录创建 DevLog!
执照
麻省理工学院
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.7MIT
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that enables LLMs like Claude to interact with SQLite and SQL Server databases, allowing for schema inspection and SQL query execution.806380MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI assistants with comprehensive access to SQL databases, enabling schema inspection, query execution, and database operations with enterprise-grade security.357MIT
- FlicenseAqualityDmaintenanceA Model Context Protocol server that provides read-only access to Datasette instances, enabling AI assistants to explore, query, and analyze data from Datasette databases through a standardized interface.52-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jbdamask/cursor-db-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server