Firestore MCP Server

Firestore MCP 서버

Google Firestore와 직접 상호 작용하는 MCP(Model Context Protocol) 서버입니다. 이 서버는 Claude Desktop을 통해 Firestore 문서를 생성, 읽기, 업데이트 및 삭제할 수 있는 깔끔한 인터페이스를 제공합니다.

특징

  • Firestore 컬렉션에서 문서 만들기
  • Firestore 컬렉션에서 문서 읽기
  • 기존 문서 업데이트
  • 문서 삭제
  • 필터링, 순서 지정 및 제한을 사용하여 문서 쿼리
  • 사용 가능한 컬렉션 나열

설정

  1. 종속성 설치 :지엑스피1
  2. 프로젝트 빌드 :
    npm run build
  3. Claude Desktop 구성 : claude_desktop_config.json 에 다음을 추가합니다.
    "firestore-mcp": { "command": "node", "args": [ "/path/to/firestore-mcp/build/index.js" ], "env": { "GOOGLE_CLOUD_PROJECTS": "project-id" } }
    args의 경로를 index.js의 실제 경로로 바꾸세요.GOOGLE_CLOUD_PROJECTS에 프로젝트 ID를 쉼표로 구분하여 정의합니다. 예: google-project-id1,google-project-id2 첫 번째로 나열된 프로젝트가 기본값입니다.애플리케이션은 각 프로젝트의 키 폴더에서 .json 자격 증명 파일을 찾을 것으로 예상합니다. 예: keys/google-project-id1.json, keys/google-project-id2.json 클라우드 서비스 계정에 Cloud Firestore와 상호 작용할 수 있는 적절한 권한(예: Cloud Datastore Owner 또는 그보다 낮은 권한)이 있는지 확인하세요.

사용 가능한 도구

  • getDocument : 컬렉션에서 ID로 문서를 가져옵니다.
  • createDocument : 컬렉션에 새 문서를 만듭니다.
  • updateDocument : 기존 문서 업데이트
  • deleteDocument : 문서 삭제
  • queryDocuments : 필터, 순서 및 제한을 사용하여 문서 쿼리
  • listCollections : 사용 가능한 모든 컬렉션을 나열합니다.

Claude Desktop에서의 사용 예

다음은 Claude Desktop에서 각 도구를 사용하는 방법에 대한 예입니다.

문서를 받으세요

Get the document with ID "user123" from the "users" collection

문서 만들기

Create a new document in the "users" collection with the following data: { "name": "John Doe", "email": "john@example.com", "age": 30 }

문서 업데이트

Update the document with ID "user123" in the "users" collection to change the age to 31

문서 삭제

Delete the document with ID "user123" from the "users" collection

문서 쿼리

Find all users over 25 years old, ordered by name

컬렉션 목록

List all available Firestore collections

개발

  • 시청 모드 : npm run dev
-
security - not tested
-
license - not tested
-
quality - not tested

Claude Desktop을 통해 Google Firestore 데이터베이스와 직접 상호 작용할 수 있는 인터페이스로, 컬렉션 전반에서 문서를 만들고, 읽고, 업데이트하고, 쿼리하는 등의 작업을 지원합니다.

  1. Features
    1. Setup
      1. Available Tools
        1. Example Usage in Claude Desktop
          1. Get a Document
          2. Create a Document
          3. Update a Document
          4. Delete a Document
          5. Query Documents
          6. List Collections
        2. Development
          ID: cjfanupx45