Skip to main content
Glama

커서 DB MCP 서버

Cursor IDE의 SQLite 데이터베이스에 접근하기 위한 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버를 통해 AI 어시스턴트는 Cursor의 프로젝트 데이터, 채팅 기록 및 작성자 정보를 탐색하고 상호작용할 수 있습니다.

커서커서 GIF

필수 조건

커서 IDE

설치

간편한 설치

제공된 설치 스크립트를 사용하여 모든 종속성을 설치하세요.

지엑스피1

이 스크립트는 다음을 설치합니다.

  • 기본 MCP 서버 및 종속성

커서 IDE와 함께 사용

  1. 커서를 열고 설정->커서 설정->MCP로 이동합니다.

  2. 클릭: 새 MCP 서버 추가

  3. 이름: 커서 DB MCP; 유형: 명령

  4. 명령어: <정규화된 경로>uv run --with mcp[cli] mcp run <정규화된 경로>/cursor-db-mcp-server.py

커서 DB MCP

이제 데이터베이스에 대한 질문을 하거나 과거 채팅에 대한 정보를 검색할 수 있습니다.

DB 구조

DB 키

Claude Desktop과 함께 사용

Claude Desktop용 MCP 서버 설치

이것을 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" ] }

커서 DB 퍼지 검색

사용 가능한 리소스

  • 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 비서가 데이터를 쿼리하고 분석할 수 있도록 합니다.

노트

  1. 커서는 AI 대화를 여러 곳에 저장합니다. 점점 더 많은 채팅이 globalStorage/state.vscdb 아래의 "composerData"로 저장됩니다. 최근 프로젝트에 대한 채팅에 대해 문의해도 결과가 나오지 않으면 composers를 입력해 보세요.

  2. 이 글은 Mac에서 작성되었습니다. 다른 OS에서는 다를 수 있습니다.

뻔뻔한 플러그

이런 게 마음에 드시나요? Cursor Journal을 사용해 Cursor 채팅 기록에서 바로 DevLog를 만들어 보세요!

특허

MIT

-
security - not tested
F
license - not found
-
quality - not tested

Related MCP Servers

  • -
    security
    -
    license
    -
    quality
    A Model Context Protocol server that integrates with Cursor IDE, providing real-time communication, modern web dashboards, and extensible tools via SSE and WebSocket connections.
  • A
    security
    -
    license
    A
    quality
    A Model Context Protocol (MCP) server for Cursor IDE that simplifies the installation and configuration of other MCP servers.
    Last updated -
    3
    95
    70
    MIT License
    • Apple
    • Linux
  • -
    security
    -
    license
    -
    quality
    A Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.
    Last updated -
    7
    MIT License
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that enables AI assistants (Cursor, Windsurf, Claude Code) to interact with Microsoft SQL Server databases by providing connectivity through environment-configurable connections.
    Last updated -
    8
    19
    4
    MIT License

View all related MCP servers

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