Sponsored by Deepsite.site

Firebase Docs MCP Server Setup

Created By
nohe4278 months ago
This is a sample for showing how to do FIrebase Docs as an MCP server (including indexing documents)
Content

Firebase Docs MCP Server Setup

Directory Layout

docs-mcp

This corresponds to the indexer for Firebaes docs. This is a Go project that goes and indexes the Firebase documents contained within the listed filepaths.

docs-mcp-server

This is the model context protocol server that serves content over a stdio transport.

genkit-mcp-tester

This is a genkit implementation of an MCP client to test using the docs-mcp-server.

How to use

Start with indexing

  1. Set the API Key. We are using the Gemini embedding model for the documents so getting an API key from AI Studio is required. To set the API key, call export genaikey="APIKEY" in your terminal

  2. Ensure that the output directory is empty. We are writing files to your home directory in a folder called .indexResp. As go fetches documents from the Firebase documentation site, it writes the files to disk in markdown format and also indexes them in a SQL lite database in this directory. If indexing fails, it performes a retry strategy to reindex the documents into a markdown format.

  3. From the docs-mcp folder, call go run . This will start the indexing process on the files listed near line 291 in the main.go file.

Test the indexer

  1. Set the API Key. We are using the Gemini embedding model for the documents so getting an API key from AI Studio is required. To set the API key, call export genaikey="APIKEY" in your terminal

  2. Switch into the docs-mcp-server folder.

  3. Copy the indexed database to the local docs-mcp-server folder. This can be done by calling cp $HOME/.indexResp/db.sqlite .

  4. Install the dependencies and build the project. npm ci and then npm run build. Once the project is built, you can then test the project by calling npm run build && npx @modelcontextprotocol/inspector node build/index.js. This starts the inspector and should print a URL for you to view the STDIO server with.

  5. Click on Connect in the inspector view, and then click on tools -> List Tools -> find-firebase-doc and then type in for your request that you would want to use. NOTE: The author has had trouble using the terminal built into VSCode for running this step, so if you run into a similar issue, try the system terminal.

Use Genkit for testing

  1. Set the API key in the code by changing this line in embedding.ts from : const genAiKey = process.env.genaikey || ""; to const genAiKey = process.env.genaikey || "MYAPIKEY";

  2. Switch into the genkit-mcp-tester directory.

  3. Copy the indexed database to the local genkit-mcp-tester folder. This can be done by calling cp $HOME/.indexResp/db.sqlite .

  4. Install the dependencies and build the project. npm ci and then npm run build. Once the project is built, you can then test the project by calling npx genkit start -- npx tsx --watch src/index.ts. This starts the Genkit DevUI where you can interact with the flow and tool directly. Open the DevUI, generally http://localhost:4000 and visit the Tools -> find-firebase-doc/find-firebase-doc tool and make a request here. You can see that the request is then returning the results we see in the modelcontextprotocol/inspector.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
Serper MCP ServerA Serper MCP Server
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
Tavily Mcp
Amap Maps高德地图官方 MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.