Firestore Advanced MCP
Provides comprehensive access to Firestore databases, enabling CRUD operations, complex queries with multiple filters, transactions, batch operations, special data types handling, TTL management, and advanced search capabilities across collections.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Firestore Advanced MCPshow me the 10 most recent orders from the electronics category"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🔥 Firestore Advanced MCP
Advanced MCP (Model Context Protocol) server for Firebase Firestore, allowing large language models like Claude to fully interact with your Firebase databases.
✨ Features
📝 Full Firestore support : CRUD, compound queries, multiple filters
⚡ Advanced operations : Transactions, atomic operations, batch updates
🔄 Special data types : GeoPoint, document references, timestamps
⏱️ TTL Management : Time-To-Live Configuration for Documents
🔍 Smart Missing Index Detection : Automatic instructions to create the necessary indexes
🎯 Advanced search : Queries on collection groups, complex filters
Related MCP server: MCP Firebase Server
📋 Prerequisites
Node.js >= 16.0.0
A Firebase project with Firestore enabled
A Firebase service account key (JSON file)
🚀 Installation
Via npm
npm install -g firestore-advanced-mcpVia GitHub
git clone https://github.com/diez7lm/firestore-advanced-mcp.git
cd firestore-advanced-mcp
npm install🔧 Configuration
Get your Firebase service account key :
Go to the Firebase console
Select your project
Project Settings > Service Accounts
Generate a new private key and upload the JSON file
Set the environment variable :
export SERVICE_ACCOUNT_KEY_PATH="/chemin/vers/votre/serviceAccountKey.json"🖥️ Use
With npm global
SERVICE_ACCOUNT_KEY_PATH="/chemin/vers/votre/serviceAccountKey.json" firestore-advanced-mcpWith npx
SERVICE_ACCOUNT_KEY_PATH="/chemin/vers/votre/serviceAccountKey.json" npx firestore-advanced-mcpFrom the cloned directory
SERVICE_ACCOUNT_KEY_PATH="/chemin/vers/votre/serviceAccountKey.json" node index.jsConfiguration in Claude
To use this MCP server with Claude, add the following configuration to your claude_desktop_config.json file:
"firebase-mcp": {
"command": "npx",
"args": ["firestore-advanced-mcp"],
"env": {
"SERVICE_ACCOUNT_KEY_PATH": "/chemin/vers/votre/serviceAccountKey.json"
}
}Or for a locally installed version:
"firebase-mcp": {
"command": "node",
"args": ["/chemin/vers/firestore-advanced-mcp/index.js"],
"env": {
"SERVICE_ACCOUNT_KEY_PATH": "/chemin/vers/votre/serviceAccountKey.json"
}
}🛠️ Available tools
The server provides the following tools to Claude:
Basic operations
firestore_get- Retrieve a documentfirestore_create- Create a new documentfirestore_update- Update an existing documentfirestore_delete- Delete a documentfirestore_query- Run a query with filtersfirestore_list_collections- List available collections
Advanced queries
firestore_collection_group_query- Collection group queryfirestore_composite_query- Query with multiple filters and sortsfirestore_count_documents- Count documents without retrieving everything
Special Types and Advanced Features
firestore_special_data_types- Manage GeoPoints and Referencesfirestore_set_ttl- Configure automatic document expirationfirestore_transaction- Execute a transaction consisting of multiple operationsfirestore_batch- Execute batch operationsfirestore_field_operations- Atomic operations (increment, arrayUnion, etc.)firestore_full_text_search- Full text search in documents
📝 Examples
Retrieve a document
{
"collection": "users",
"id": "user123"
}Create a document with reference to another document
{
"collection": "orders",
"data": {
"product": "Laptop",
"price": 999.99,
"fields": [
{
"fieldPath": "user",
"type": "reference",
"value": "users/user123"
}
]
}
}Configure TTL on a document
{
"collection": "temporaryData",
"id": "session123",
"expiresIn": 86400000,
"fieldName": "expires_at"
}Run a query with multiple filters
{
"collection": "products",
"filters": [
{
"field": "category",
"operator": "==",
"value": "electronics"
},
{
"field": "price",
"operator": "<",
"value": 1000
}
],
"orderBy": {
"field": "price",
"direction": "asc"
},
"limit": 10
}📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
👨🏽💻 Author
Diez7lm
🙏 Acknowledgments
🦾 Contribution
Contributions are welcome! Feel free to submit a pull request or report issues via GitHub issues.
📚 Additional documentation
For more information on using Firestore with Firebase, see the official Firebase documentation .
To learn more about the Model Context Protocol (MCP) and its use with Claude, see the Anthropic documentation .
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 Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude AI to interact with Xano databases, providing comprehensive database operations, file management, and request history tracking through a standardized interface.1MIT
- FlicenseNot gradedqualityDmaintenanceA bridge that enables Large Language Models to read from and write to Firebase Firestore collections through Model Context Protocol (MCP) tools.1
- AlicenseBqualityDmaintenanceProvides secure, permission-controlled access to Firebase Firestore databases with full CRUD operations, advanced queries, batch operations, and transactions through a standardized MCP interface.239MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents and LLMs to securely interact with Firestore databases through complete CRUD operations (get, set, add, delete, query) while respecting Firestore Security Rules via the Firebase Client SDK.1MIT
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
Butterbase MCP server — manage your backend: schemas, auth, functions, storage, RAG, deploys.
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/diez7lm/firestore-advanced-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server