Firestore MCP Server logo

Firestore MCP Server

by gitskyflux

An MCP server for interacting with Google Firestore directly. It provides a clean interface for creating, reading, updating, and deleting Firestore documents through Claude Desktop.

View on GitHub

Last updated: N/A

What is Firestore MCP Server?

The Firestore MCP Server is a Model Context Protocol (MCP) server designed to facilitate direct interaction with Google Firestore. It acts as a bridge between Claude Desktop and Firestore, enabling users to manage Firestore documents using a simplified interface.

How to use Firestore MCP Server?

To use the server, first install dependencies and build the project using npm install and npm run build. Then, configure Claude Desktop by adding the server configuration to your claude_desktop_config.json, specifying the path to the built index.js file and the Google Cloud project ID(s). Ensure the service account has the necessary permissions and that credential files are located in the 'keys' folder.

Key features of Firestore MCP Server

  • Create documents in Firestore collections

  • Read documents from Firestore collections

  • Update existing documents

  • Delete documents

  • Query documents with filtering, ordering, and limits

  • List available collections

Use cases of Firestore MCP Server

  • Managing user profiles in Firestore through Claude Desktop

  • Creating and updating product catalogs in an e-commerce application

  • Storing and retrieving sensor data for IoT devices

  • Implementing a content management system (CMS) with Firestore as the backend

FAQ from Firestore MCP Server

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for communication between applications.

What permissions are required for the service account?

The service account needs appropriate permissions to interact with Cloud Firestore, such as Cloud Datastore Owner or lesser permission(s).

Where should I store the service account credentials?

The application expects to find .json credential file(s) in the keys folder for each project. Example: keys/google-project-id1.json, keys/google-project-id2.json

How do I specify multiple Google Cloud project IDs?

Define a comma-separated list of project ids in GOOGLE_CLOUD_PROJECTS. Example: google-project-id1,google-project-id2

How do I run the server in development mode?

Use the command npm run dev to start the server in watch mode.