커서 DB MCP 서버
Cursor IDE의 SQLite 데이터베이스에 접근하기 위한 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버를 통해 AI 어시스턴트는 Cursor의 프로젝트 데이터, 채팅 기록 및 작성자 정보를 탐색하고 상호작용할 수 있습니다.
커서
필수 조건
커서 IDE
설치
간편한 설치
제공된 설치 스크립트를 사용하여 모든 종속성을 설치하세요.
지엑스피1
이 스크립트는 다음을 설치합니다.
- 기본 MCP 서버 및 종속성
커서 IDE와 함께 사용
- 커서를 열고 설정->커서 설정->MCP로 이동합니다.
- 클릭: 새 MCP 서버 추가
- 이름: 커서 DB MCP; 유형: 명령
- 명령어: <정규화된 경로>uv run --with mcp[cli] mcp run <정규화된 경로>/cursor-db-mcp-server.py
이제 데이터베이스에 대한 질문을 하거나 과거 채팅에 대한 정보를 검색할 수 있습니다.
Claude Desktop과 함께 사용
이것을 claude_desktop_config.json 파일에 추가하세요.
사용 가능한 리소스
cursor://projects
- 사용 가능한 모든 커서 프로젝트 나열cursor://projects/detailed
- 자세한 정보가 포함된 프로젝트 목록cursor://projects/{project_name}/chat
- 특정 프로젝트에 대한 채팅 데이터를 가져옵니다.cursor://projects/{project_name}/composers
- 특정 프로젝트에 대한 작곡가 ID를 가져옵니다.cursor://composers/{composer_id}
- 특정 작곡가에 대한 데이터를 가져옵니다.
사용 가능한 도구
query_table
- 프로젝트 데이터베이스의 특정 테이블 쿼리refresh_databases
- 데이터베이스 경로 목록을 새로 고칩니다.
작동 원리
서버는 Cursor 설치 디렉터리를 스캔하여 프로젝트 데이터베이스(state.vscdb 파일)를 찾습니다. 그런 다음 MCP 리소스와 도구를 통해 이러한 데이터베이스를 공개하여 AI 비서가 데이터를 쿼리하고 분석할 수 있도록 합니다.
노트
- 커서는 AI 대화를 여러 곳에 저장합니다. 점점 더 많은 채팅이 globalStorage/state.vscdb 아래의 "composerData"로 저장됩니다. 최근 프로젝트에 대한 채팅에 대해 문의해도 결과가 나오지 않으면 composers를 입력해 보세요.
- 이 글은 Mac에서 작성되었습니다. 다른 OS에서는 다를 수 있습니다.
뻔뻔한 플러그
이런 게 마음에 드시나요? Cursor Journal을 사용해 Cursor 채팅 기록에서 바로 DevLog를 만들어 보세요!
특허
MIT
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
AI 어시스턴트가 Cursor IDE의 SQLite 데이터베이스를 탐색하고 상호 작용할 수 있도록 하는 모델 컨텍스트 프로토콜 서버로, 프로젝트 데이터, 채팅 기록 및 작성자 정보에 대한 액세스를 제공합니다.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that integrates with Linear, enabling AI assistants to create, update, search, and comment on issues for project management and issue tracking.Last updated -56PythonApache 2.0
- AsecurityFlicenseAqualityA starter template for building Model Context Protocol servers that can be integrated with Cursor or Claude Desktop, allowing developers to create custom tools and extensions for AI assistants.Last updated -169TypeScript
- -securityAlicense-qualityA Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.Last updated -6TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants like Claude to interact with Outline document services, supporting document searching, reading, creation, editing, and comment management.Last updated -2519PythonMIT License