MCP Firestore Server
MCP server by markhilton Verified · npm:@nerd305
MCP Firestore Server gives AI assistants tools to read and write Firestore documents. It works with the local Firestore emulator, production Firestore, or both at once. It is for developers who work with Firebase data.
Install MCP Firestore Server
Built from the published package, never by AI.
claude mcp add mcp-firestore-server -- npx -y @nerd305/mcp-firestore-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-firestore-server": {
"args": [
"-y",
"@nerd305/mcp-firestore-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install MCP Firestore Server in Claude Desktop
{
"mcpServers": {
"mcp-firestore-server": {
"args": [
"-y",
"@nerd305/mcp-firestore-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-firestore-server": {
"args": [
"-y",
"@nerd305/mcp-firestore-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-firestore-server -- npx -y @nerd305/mcp-firestore-server{
"mcpServers": {
"mcp-firestore-server": {
"args": [
"-y",
"@nerd305/mcp-firestore-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install MCP Firestore Server in Antigravity CLI
gemini mcp add mcp-firestore-server npx -y @nerd305/mcp-firestore-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-firestore-server block.
About
MCP Firestore Server is a Model Context Protocol server for Firestore database operations. It is published on npm as @nerd305/mcp-firestore-server and is installed by running npx with that package name. It connects to a Firestore emulator, to production, or to both endpoints at the same time, and the default target is the emulator.
The server exposes tools for querying collections, filtering with where clauses, counting documents, fetching documents in batch, listing collections, and creating, updating and deleting documents. Writes to production require confirm: true, and setting MCP_FIRESTORE_READONLY can hide and reject write tools. Large results can be limited with field projection, compaction and a response budget. It is aimed at developers who use an AI assistant with Firebase projects.
Written from the project's README and checked against it.
Tools it gives your assistant
query_collectionQuery documents from a Firestore collection with pagination support.get_documentGet a specific document by ID.query_with_whereQuery documents with where conditions, including multiple clauses.list_collectionsList top-level collections or subcollections of a specific document.count_documentsCount documents using Firestore's native aggregation, with optional where conditions.batch_getFetch multiple documents by ID in a single request.create_documentCreate a new document. Production writes need confirm: true.update_documentUpdate an existing document. Production writes need confirm: true.delete_documentDelete a document. Production deletes need confirm: true.
What you need
- Node.js (the setup uses npx and npm)
- A Firebase or Google Cloud project ID
- A Firestore emulator address or a service account key file
Try asking
- Query the users collection where status is active, limit 20.
- Count documents in the orders collection where total is above 100.
- Update the profile document in the users collection on the emulator.
Good to know
- At least one of FIRESTORE_EMULATOR_HOST or GOOGLE_APPLICATION_CREDENTIALS must be set.
- Writes to production require confirm: true, otherwise the tool returns an error.
- Numeric arrays over 64 items and strings over 4000 characters are compacted unless raw is true.
- Setting MCP_FIRESTORE_READONLY to 1 or all hides and rejects write tools.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to MCP Firestore Server
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
MCP Firestore Server: common questions
How do I make the Firestore MCP server read-only?
Set MCP_FIRESTORE_READONLY to 1 or all to hide and reject write tools. Setting it to production rejects writes to the production target only.
How does the server prevent accidental production writes?
Create, update and delete calls against the production target require confirm: true. Without it, the tool returns an error and makes no change. Emulator writes never need confirmation.
What happens when query results are too large?
Queries drop trailing documents to fit the response budget and set truncated: true. You can continue with startAfter set to the lastDocId from the previous response.
How do I install MCP Firestore Server?
In Claude Code run claude mcp add mcp-firestore-server -- npx -y @nerd305/mcp-firestore-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is MCP Firestore Server the official server?
MCP Firestore Server is published by npm:@nerd305 from its verified domain in the official MCP Registry.
Is MCP Firestore Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is MCP Firestore Server safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to MCP Firestore Server?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does MCP Firestore Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
