Skip to main content
All connectors
qbash Connectors / Firebase

Firebase MCP serverand Python AI tasks

qbash hosts a Firebase MCP server you can use in Claude, ChatGPT, Codex, Cursor, Grok Bot and Muse. Developers use qbash Tasks to write cloud-hosted Python functions that pair Firebase with models such as Claude and GPT.

Add the qbash MCP

Use Firebase from Claude Code, Codex, Cursor and other MCP clients. Connect Firebase in qbash, and your agent can work with its data and build Tasks that call it.

claude mcp add --transport http qbash https://mcp.qbash.com/mcp

Then run /mcp in Claude Code and sign in with qbash.

  • Read a Firestore document by its path
  • List the documents in a Firestore collection, a page at a time
  • Query a Firestore collection with filters, ordering and a limit
  • Count, sum or average documents that match a Firestore query
  • List the top-level collections, or the subcollections of a document
  • Create a Firestore document with an id you choose or one Firestore assigns
Read the docs

Write a Firebase task in Python

A qbash Task is a Python function hosted in the cloud. Python is the runtime and defines the process, and built-in inline prompts run on leading models such as Claude, GPT, Gemini and Grok.

Run a Task on a schedule, from an HTTP request or when a connected app sends an event. Your agents and chat tools call it over MCP.

Each run is logged with its inputs and results, and you can turn data logging off for any Task. Every Task has version control, and each run is locked to the version it ran.

Triage yesterday's in-app feedback from Firestore

run_query reads the last day of documents from the app's feedback collection. An inline prompt sorts them into bugs, feature requests and praise, and lists the bugs with the app version and screen for each.

main.py
since = (datetime.now(timezone.utc) - timedelta(days=1)).isoformat()
result = qbash.integrations.firebase.run_query(
collection="feedback",
where=[{"field": "created_at", "op": "GREATER_THAN_OR_EQUAL", "value": since}],
order_by=[{"field": "created_at", "direction": "DESCENDING"}],
limit=200,
)
docs = [doc["data"] for doc in result["documents"]]
if docs:
triage = qbash.ai.run_prompt(
slug="firebase-feedback-triage",
variables={"feedback": json.dumps(docs)},
)
qbash.output(triage)
else:
qbash.output("No feedback came in during the last day.")
Sample run_query response
{
"status": "success",
"documents": [
{
"id": "Qm3vX8pLr2",
"path": "feedback/Qm3vX8pLr2",
"data": {
"message": "The app crashes when I rotate the phone on the checkout screen.",
"screen": "checkout",
"app_version": "4.12.0",
"platform": "android",
"rating": 1,
"created_at": "2026-11-11T14:02:51Z"
}
},
{
"id": "a8TkW1nYc0",
"path": "feedback/a8TkW1nYc0",
"data": {
"message": "Please add a dark mode for the reading view.",
"screen": "article",
"app_version": "4.12.0",
"platform": "ios",
"rating": 4,
"created_at": "2026-11-11T18:37:09Z"
}
},
{
"id": "Zp0eH5sJd7",
"path": "feedback/Zp0eH5sJd7",
"data": {
"message": "Saved items disappeared after the last update.",
"screen": "saved",
"app_version": "4.12.0",
"platform": "ios",
"rating": 2,
"created_at": "2026-11-11T21:15:44Z"
}
}
]
}

Custom MCP server

Build a custom MCP server with Firebase

Create a hosted MCP server that combines Firebase tools with your other connectors, Tasks and memory folders. You choose each tool it exposes, so a server can share Firebase reads with write tools left off.

Share the server with your team, and each person adds it to the client they already use.

How to set it up

  1. Connect Firebase on the qbash Connectors page.
  2. Create an MCP server and add the Firebase tools you want to share.
  3. Paste the server URL into your client. It connects with OAuth or an access token.

Firebase MCP questions

Does Firebase have an official MCP server?

Firebase's official MCP server ships in the Firebase CLI and runs on your own machine over stdio, with tools for Firestore, Authentication, Cloud Messaging and other Firebase services. As of November 2026 Firebase does not host one for you. qbash hosts a server for Firestore, Authentication and Cloud Messaging on one URL with your other connectors, and the same methods run in Python Tasks.

What does the Firebase connector need to connect?

A Google Cloud service account key for your Firebase project. Grant it Cloud Datastore User for Firestore, Firebase Authentication Admin for the user methods and Firebase Cloud Messaging API Admin for sending messages, or a viewer role where it should only read.

Do Firestore security rules apply to the connector?

The connector signs in as a service account, and Firestore security rules do not apply to service account access. Its IAM roles decide what it can read and write.

Build a Firebase task

Write it in Python with AI steps, or describe it to your coding agent through the qbash MCP.