FireCMS Cloud

v3.5.3
co.firecms/mcp Checked 1 day ago Published 17 days ago

Manage FireCMS Cloud from an AI agent: Firestore data, collections, schemas and users.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

firecms_get_current_user Current user

Get the currently authenticated FireCMS user

list_firebase_projects List Firebase projects

List the Google Cloud / Firebase projects the signed-in user can access, and whether each one is ready to be connected to FireCMS Cloud. Each entry reports: - `fireCMSProject`: true if it is already connected to FireCMS Cloud - `cloudProjectConfigurationStatus.firebaseEnabled` / `firestoreEnabled` / `apisEnabled` / `authEnabled`: what connecting requires Connecting needs Firebase, Firestore and Firebase Authentication enabled.

get_project_setup_status Check project setup

Get the detailed FireCMS readiness status of a single Google Cloud project: whether Firebase, Firestore, Storage, Auth and the required APIs are enabled, and so what is still missing before it can be connected.

ParameterTypeDescription
projectId *stringThe Google Cloud / Firebase project ID

list_firestore_locations List Firestore locations

List the locations available for a new Firestore database, as location IDs such as 'eur3' or 'us-central'.

enable_project_apis Enable required APIs

Enable the Google Cloud APIs that FireCMS requires on a project (reported as `apisEnabled` in its setup status). Safe to run more than once.

ParameterTypeDescription
projectId *stringThe Google Cloud / Firebase project ID

enable_firestore Create Firestore database

Create the default Firestore database in a Google Cloud project, in the given location. The location is permanent and cannot be changed later.

ParameterTypeDescription
locationId *stringFirestore location, e.g. 'eur3' or 'us-central'. Permanent.
projectId *stringThe Google Cloud / Firebase project ID

connect_project_to_firecms Connect a Firebase project

Connect an existing Firebase project to FireCMS Cloud. It creates a delegated service account in the project with the permissions FireCMS needs, registers the signed-in user as an admin, creates the FireCMS project on the free plan, and by default adds FireCMS's access rule to the project's Firestore and Storage security rules. Firebase, Firestore and Firebase Authentication must already be enabled on the project. Authentication cannot be enabled through any API: it is switched on once in the Firebase console. Fails if the project is already connected.

ParameterTypeDescription
projectId *stringThe Firebase project ID to connect
applySecurityRulesbooleanAdd FireCMS's Firestore and Storage access rule as part of connecting (default true). The CMS cannot open any collection without it.
creationTypestring'existing' (default) for a project that already has data; 'new' for a freshly created one

apply_firestore_security_rules Apply FireCMS security rules

Add FireCMS's access rule to a project's Firestore and Storage security rules. Requires admin. FireCMS Cloud reads the customer's Firestore from the browser using the signed-in user's own token, so it needs a rule granting access to users carrying the `fireCMSUser` claim: match /{document=**} { allow read, write: if request.auth.token.fireCMSUser; } Without it the CMS shows "Missing Firestore Security Rules" and no collection opens, although this server keeps working: it reads through the backend's service account, which bypasses security rules. The rule is injected into the existing ru…

ParameterTypeDescription
projectId *stringThe Firebase project ID

create_firecms_webapp Create FireCMS web app

Create the FireCMS web app inside the client's Firebase project, or reuse the one already there. Connecting a project normally does this; this repairs a project where that step failed. Requires admin.

ParameterTypeDescription
projectId *stringThe Firebase project ID

list_projects List projects

List all FireCMS Cloud projects accessible by the authenticated user

get_root_collections List root collections

List all Firestore root-level collections in a FireCMS project — the paths that can be turned into CMS collections. Read live from Firestore, so collections created moments ago are included.

ParameterTypeDescription
projectId *stringThe Firebase project ID
databaseIdstringFirestore database ID, if not '(default)'

list_subcollections List subcollections

List the subcollections of a specific document, with their full paths: nested data that can be turned into CMS collections.

ParameterTypeDescription
parentDocumentPath *stringFull path of the parent document, e.g. 'users/abc123'
projectId *stringThe Firebase project ID
databaseIdstringFirestore database ID, if not '(default)'

list_users List users

List all users that have access to a FireCMS project, including their roles (admin, editor, viewer)

ParameterTypeDescription
projectId *stringThe Firebase project ID

add_user Invite a user

Invite a new user to a FireCMS project. Sends an invitation email. Admin-only. If the email already belongs to a user of the project, their roles are replaced by these.

ParameterTypeDescription
email *stringEmail address of the user to invite
projectId *stringThe Firebase project ID
roles *arrayRoles to assign

update_user_roles Change user roles

Update the roles of an existing user in a FireCMS project. Admin-only.

ParameterTypeDescription
projectId *stringThe Firebase project ID
roles *arrayNew roles
userId *stringThe user ID to update

remove_user Remove a user

Remove a user from a FireCMS project, revoking their access. Admin-only.

ParameterTypeDescription
projectId *stringThe Firebase project ID
userId *stringThe user ID to remove

list_databases List Firestore databases

List the Firestore databases of a project. Only needed for projects using more than the '(default)' database — the resulting database IDs can be passed to the other introspection and document tools.

ParameterTypeDescription
projectId *stringFirebase project ID

preview_inferred_schema Preview inferred schema

Read a sample of real documents from a Firestore path and infer a FireCMS collection schema from them, without saving anything. Works for any path, subcollections included. Inference is structural only: it derives data types, enum candidates and validation from the sampled values. The result is a complete collection schema that can be edited and saved as it is.

ParameterTypeDescription
path *stringFirestore collection path, e.g. 'products' or 'users/{userId}/orders'
projectId *stringFirebase project ID
databaseIdstringFirestore database ID, if not '(default)'
sampleSizenumberHow many documents to sample (default 30, max 200). More samples give better enum and optionality detection.

infer_collections_from_data Create collections from data

Infer collections from the existing Firestore data at the given paths, and save them to the project. Requires admin. For each path the backend samples documents, infers the property types, then uses an LLM to pick display names, a singular name, an icon, a navigation group and field widgets. Paths already mapped to a collection, and paths with no documents, are skipped.

ParameterTypeDescription
paths *arrayThe collection paths to infer and save
projectId *stringFirebase project ID

setup_all_collections Set up all collections

Discover every Firestore root collection in the project that is not yet mapped to a collection, infer a collection schema for each (display names and widgets picked by an LLM), and save them all. Requires admin. Covers every database of the project. Collections that already exist are left alone, so it is safe to run again later to pick up new Firestore collections. Can take a while on large projects.

ParameterTypeDescription
projectId *stringFirebase project ID
databaseIdstringFirestore database ID, if not '(default)'

get_project_config Get project settings

Get the full configuration for a FireCMS project, including: - Project name, logo, and brand colors (primary/secondary) - Subscription plan and trial status - Feature toggles (text search, entity history, App Check) - Default locale settings - Customization revision info

ParameterTypeDescription
projectId *stringFirebase project ID

update_project_name Rename project

Update the display name of a FireCMS project.

ParameterTypeDescription
name *stringNew project name
projectId *stringFirebase project ID

update_project_colors Change brand colors

Update the primary and/or secondary brand colors for the CMS UI. Colors should be hex values (e.g., '#0070F4').

ParameterTypeDescription
projectId *stringFirebase project ID
primaryColorstringPrimary color hex, #rgb or #rrggbb (e.g., '#0070F4')
secondaryColorstringSecondary color hex, #rgb or #rrggbb (e.g., '#FF5B79')

update_default_locale Change default locale

Change the default locale for the CMS (affects date formatting, etc.).

ParameterTypeDescription
locale *stringFireCMS locale for dates (e.g., 'en', 'es', 'de', 'fr', 'it', 'enUS', 'ptBR'); 'en-US' and 'en_US' are read as 'enUS'
projectId *stringFirebase project ID

toggle_entity_history Turn entity history on or off

Enable or disable entity history tracking (audit log of document changes) for a project.

ParameterTypeDescription
enabled *booleantrue to enable, false to disable
projectId *stringFirebase project ID

list_collection_schemas List collections

List all persisted collection schemas for a FireCMS project. Returns the collection configurations (name, path, properties, etc.) that define how data is displayed and edited in the CMS.

ParameterTypeDescription
projectId *stringFirebase project ID

get_collection_schema Get a collection

Get the full schema definition for a specific collection, including all properties, validation rules, display configuration, and subcollection definitions.

ParameterTypeDescription
collectionId *stringCollection ID (usually same as the Firestore path, e.g., 'products')
projectId *stringFirebase project ID

save_collection_schema Save a collection

Create or fully replace a collection schema. This defines how a Firestore collection is displayed and edited in FireCMS. Requires at minimum: id, path, and name. Example schema: { "id": "products", "path": "products", "name": "Products", "singularName": "Product", "icon": "ShoppingCart", "description": "Product catalog", "group": "Shop", "properties": { "name": { "dataType": "string", "name": "Name", "validation": { "required": true } }, "price": { "dataType": "number", "name": "Price", "validation": { "required": true, "min": 0 } }, "status": { "dataType": "stri…

ParameterTypeDescription
collectionId *stringCollection ID (e.g., 'products')
projectId *stringFirebase project ID
schema *objectComplete collection schema definition

update_collection_schema Update a collection

Partially update an existing collection schema. Only the top-level fields given are changed (merged with the existing schema): for example the name, group, display settings or properties.

ParameterTypeDescription
collectionId *stringCollection ID to update
data *objectFields to update (merged with existing schema)
projectId *stringFirebase project ID

delete_collection_schema Delete a collection

Delete a collection schema from FireCMS. This removes the collection configuration from the CMS — it does NOT delete the underlying Firestore data. The collection will simply no longer appear in the FireCMS UI.

ParameterTypeDescription
collectionId *stringCollection ID to delete
projectId *stringFirebase project ID

save_property Save a property

Add or update a single property in a collection schema, leaving the other properties as they are. A new property is added at the end of the display order. Example property: { "dataType": "string", "name": "Description", "description": "Product description", "multiline": true, "validation": { "required": true, "max": 500 } }

ParameterTypeDescription
collectionId *stringCollection ID
projectId *stringFirebase project ID
property *objectProperty definition
propertyKey *stringProperty field key (e.g., 'description', 'price')
namespacestringDot-separated path of an existing map property to put this property inside (e.g., 'address' for address.street, 'meta.address' for a map within a map)

delete_property Delete a property

Remove a property from a collection schema. This removes the field definition from the CMS configuration — it does NOT delete the field from existing Firestore documents.

ParameterTypeDescription
collectionId *stringCollection ID
projectId *stringFirebase project ID
propertyKey *stringProperty key to remove
namespacestringDot-separated path of the map property the property is inside (e.g., 'address' for address.street)

generate_collection Generate a collection with AI

Generate a new FireCMS collection schema using AI. Provide a natural language description of the collection you want (e.g., "A blog with posts that have title, body, author, tags, and a featured image"). Returns a complete FireCMS collection configuration.

ParameterTypeDescription
prompt *stringNatural language description of the collection to generate
existingCollectionsarrayOptional existing collection schemas for context

modify_collection Modify a collection with AI

Modify an existing FireCMS collection schema using AI. Describe the changes you want (e.g., "Add a priority enum with low/medium/high" or "Make title required with max 100 chars"). Returns the updated schema and a list of operations performed.

ParameterTypeDescription
existingCollection *objectThe current collection schema to modify
prompt *stringDescription of the modifications
existingCollectionsarrayOptional list of all collection schemas for context

list_documents List documents

List documents from a Firestore collection, with optional filters, ordering and a limit.

ParameterTypeDescription
collectionPath *stringCollection path (e.g., 'products', 'users', 'blog/posts')
projectId *stringFirebase project ID
databaseIdstringFirestore database ID (default: '(default)')
filtersarrayOptional filters to apply
limitnumberMax number of documents to return (default: 20)
orderBystringField to order by
orderDirectionstringSort direction

get_document Get a document

Get a specific document by its collection path and ID. Returns all fields of the document.

ParameterTypeDescription
collectionPath *stringCollection path (e.g., 'products', 'users')
documentId *stringDocument ID
projectId *stringFirebase project ID
databaseIdstringFirestore database ID (default: '(default)')

create_document Create a document

Create a new document in a Firestore collection. Provide the field values as a JSON object.

ParameterTypeDescription
collectionPath *stringCollection path (e.g., 'products')
data *objectDocument fields as a JSON object
projectId *stringFirebase project ID
databaseIdstringFirestore database ID (default: '(default)')
documentIdstringOptional document ID. If not provided, Firestore generates one. If a document with this ID exists, it is replaced.

update_document Update a document

Update fields of an existing document. Only the specified fields are modified (partial update / merge).

ParameterTypeDescription
collectionPath *stringCollection path (e.g., 'products')
data *objectFields to update as a JSON object
documentId *stringDocument ID to update
projectId *stringFirebase project ID
databaseIdstringFirestore database ID (default: '(default)')

delete_document Delete a document

Delete a document from Firestore. This action is permanent.

ParameterTypeDescription
collectionPath *stringCollection path (e.g., 'products')
documentId *stringDocument ID to delete
projectId *stringFirebase project ID
databaseIdstringFirestore database ID (default: '(default)')

count_documents Count documents

Count the total number of documents in a Firestore collection.

ParameterTypeDescription
collectionPath *stringCollection path (e.g., 'products')
projectId *stringFirebase project ID
databaseIdstringFirestore database ID (default: '(default)')

export_collection Export a collection

Export documents from a Firestore collection as JSON. Useful for data backups, analysis, or migration. For large collections, use the limit parameter.

ParameterTypeDescription
collectionPath *stringCollection path to export (e.g., 'products')
projectId *stringFirebase project ID
databaseIdstringFirestore database ID (default: '(default)')
limitnumberMax documents to export (default: 100, max: 500)

import_documents Import documents

Bulk import documents into a Firestore collection, for seeding data, migrations or restoring a backup. Each document can specify an ID; without one, Firestore generates it. By default a document with an existing ID is overwritten; with merge: true its fields are merged instead. At most 500 documents per call.

ParameterTypeDescription
collectionPath *stringTarget collection path (e.g., 'products')
documents *arrayArray of documents to import (max 500)
projectId *stringFirebase project ID
databaseIdstringFirestore database ID (default: '(default)')
mergebooleanIf true, merge with existing documents instead of overwriting (default: false)

firecms_login Sign in to FireCMS

Sign in to FireCMS Cloud. Opens a browser window for Google OAuth authentication. Required before using any other tools.

firecms_logout Sign out of FireCMS

Sign out of FireCMS Cloud. Revokes the current session.