1.0.1 • Published 10 months ago
@aegntic/firebase-studio-mcp v1.0.1
Firebase Studio MCP Server
This server provides access to Firebase Studio and Google Cloud services through an MCP interface. It allows AI assistants to interact with Firebase projects programmatically.
Features
- Full Firebase CLI integration
- Google Cloud SDK access
- Firebase Admin SDK capabilities
- Project management
- Firestore database operations
- Firebase Authentication
- Firebase Hosting deployment
- Firebase Storage operations
- Firebase Emulator Suite
- Realtime Database operations
- Firebase Extensions
Installation
# Install from npm
npx @aegntic/firebase-studio-mcp
# Or install globally
npm install -g @aegntic/firebase-studio-mcpSetup
Run the setup script:
./setup.shThis will install and configure:
- Firebase CLI
- Google Cloud SDK
Start the server:
npm startIn Claude, add the server using the MCP toolbox:
https://localhost:3000
Available Methods
Firebase Admin SDK
initializeFirebase: Initialize Firebase Admin SDK with service account
Firebase CLI
firebaseCommand: Execute any Firebase CLI command directlylistProjects: List all Firebase projectsuseProject: Set the current Firebase projectcreateProject: Create a new Firebase project
Firebase Hosting
deployHosting: Deploy to Firebase Hosting
Firestore Database
getDocument: Get a document from FirestoresetDocument: Set a document in FirestorequeryDocuments: Query documents from Firestore
Firebase Auth
createUser: Create a new Firebase Auth usergetUser: Get a Firebase Auth user by ID or email
Firebase Storage
listFiles: List files in Firebase Storage
Google Cloud SDK
gcloudCommand: Execute any Google Cloud CLI command
Firebase Emulator Suite
startEmulators: Start Firebase emulators
Firebase Studio
openFirebaseConsole: Get link to Firebase Console for current or specified project
Firebase Extensions
listExtensions: List available Firebase ExtensionsinstallExtension: Install a Firebase Extension
Firebase Performance
getFirebasePerformance: Get Firebase performance metrics
Firebase A/B Testing
createABTest: Create Firebase A/B Test via gcloud
Firebase Realtime Database
getDatabaseValue: Get value from Firebase Realtime DatabasesetDatabaseValue: Set value in Firebase Realtime Database
Google Auth
login: Login to Firebase and Google Cloud
Examples
Initialize Firebase Admin SDK
initializeFirebase({
serviceAccountPath: "path/to/service-account.json",
databaseURL: "https://your-project-id.firebaseio.com"
})Deploy to Firebase Hosting
deployHosting({
projectPath: "/path/to/project",
only: true
})Query Firestore Documents
queryDocuments({
collection: "users",
where: [
["status", "==", "active"],
["age", ">", 18]
],
orderBy: {
field: "created",
direction: "desc"
},
limit: 10
})Execute Google Cloud Command
gcloudCommand({
service: "compute",
command: "instances list",
project: "your-project-id",
json: true
})Requirements
- Node.js 14 or higher
- Firebase CLI
- Google Cloud SDK
License
MIT
1.0.1
10 months ago