FireConfigMCP
fire_config_mcp
设置
1.安装依赖项
bun install2.创建并放置serviceAccount.json
要允许服务器访问 Firebase 远程配置,您需要一个 Google Cloud 服务帐户密钥文件:
A. Google Cloud Console(点击式)
在拥有您的 Firebase 应用的同一 GCP 项目内打开IAM 和管理 → 服务帐户。
单击**“创建服务帐户”**
名称:
mcp-remote-config(任何名称都可以)描述:“MCP 服务器 – 远程配置访问”
授予此服务帐号访问权限:
在角色选择器中,搜索远程配置查看器或远程配置管理员(根据需要)并选择它。
如果您的模板条件引用 GA4 受众,则可以选择添加Firebase Analytics Viewer 。
完成→完成。
在列表中,单击帐户 →密钥选项卡 →添加密钥→创建新密钥→ JSON 。
下载 JSON 文件并将其作为
serviceAccount.json放在项目根目录中。
注意: 请勿将
serviceAccount.json提交到版本控制。它已在.gitignore中。
3.运行服务器
bun run index.ts默认情况下,服务器将在端口 3000 上启动。
Related MCP server: Firebase Realtime Database API MCP Server
用法
将此 MCP 服务器添加到客户端(例如,Cursor、Claude Desktop 或您自己的 MCP 客户端)
在光标中:
打开光标设置 → 功能 → 添加新的 MCP 服务器。
对于命令,使用:
npx -y 超级网关 --sse http://localhost:3000/mcp
"fire-config-mcp": { "command": "npx", "args": [ "-y", "supergateway", "--sse", " http://localhost:3000/mcp " ] } ```(或者使用您环境中配置的路径/命令。)3.保存并连接。
在您自己的 MCP 客户端中(TypeScript 示例):
您可以使用@modelcontextprotocol/sdk客户端连接到此服务器:
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
const client = new Client({ name: "my-client", version: "1.0.0" });
const transport = new SSEClientTransport("http://localhost:3000/mcp");
await client.connect(transport);
// Now you can list tools, call tools, etc.
const tools = await client.listTools();有关更多详细信息,请参阅MCP TypeScript SDK 文档。
该项目是使用 bun v1.2.7 中的bun init创建的。Bun 是一个快速的一体化 JavaScript 运行时。
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Appcircle mobile CI/CD platform.
- SupabaseOAuthcom.supabase
MCP server for interacting with the Supabase platform
Remote MCP server for the Hackle Admin API: experiments, feature flags, remote config, messaging.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceThe Firebase MCP server provides a standardized interface to interact with Firebase services, including Firebase Authentication, Firestore, and Firebase Storage.1,148 npm247MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that provides natural language access to Google's Firebase Realtime Database API, enabling database operations and management through conversation.-
- FlicenseNot gradedqualityDmaintenanceAn MCP Server providing access to Google's Firebase API, allowing natural language interaction with Firebase services and resources.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables interaction with the Firebase App Check API, allowing users to verify and manage the authenticity of requests to Firebase backend services through natural language.-