Data Favor MCP Server

Data Favor MCP Server

A read-only MCP server for securely querying MongoDB and Firestore to access customer and order data.

Category
Visit Server

README

Data Favor MCP Server

This is a custom, read-only Model Context Protocol (MCP) server for Favor OS. It allows AI assistants (like Claude) to securely query the MongoDB database and Firebase Firestore for customer and order data without any risk of data modification.

🔒 Security & Architecture

This MCP server is designed to be hosted on the Munchie Server. By running it on the Munchie server, we achieve maximum security:

  1. No Local Credentials: The co-founder connecting to this server does not need database credentials on their laptop.
  2. Static IPs: We do not need to whitelist dynamic home IP addresses in MongoDB Atlas. The Munchie server's IP is already whitelisted.
  3. Encrypted Tunnel: The connection from the local AI client to the Munchie server happens entirely over Tailscale and SSH.

🛠️ Tools Available

MongoDB (Prisma)

  • mongodb_get_user_by_phone: Fetch a user and their addresses by phone number.
  • mongodb_get_recent_orders: Fetch the most recent orders across the platform.
  • mongodb_get_user_orders: Fetch past orders for a specific user ID.

Firestore (Firebase Admin)

  • firestore_get_customer: Fetch a customer document by their Firebase UID.
  • firestore_search_customers: Search for customers by email or phone number.

🚀 Deployment (Munchie Server)

  1. SSH into the Munchie server (via Tailscale).
  2. Pull the latest code and navigate to this directory.
  3. Install dependencies and build the server:
    npm install
    npm run build
    
  4. Provide the required environment variables in a .env file (see Configuration below).

⚙️ Configuration (Environment Variables)

Create a .env file in this directory on the Munchie server with the following:

# MongoDB Connection String (must be read-only or the same one the backend uses)
DATABASE_URL="mongodb+srv://..."

# Path to the Firebase Service Account JSON file for Firestore access
GOOGLE_APPLICATION_CREDENTIALS="/absolute/path/to/firebase-service-account.json"

💻 Client Setup (For Co-Founder)

To use this MCP server, the co-founder must:

  1. Be connected to the Tailscale network.
  2. Have SSH access to the Munchie server configured.

Then, add the following configuration to claude_desktop_config.json (or Cursor's MCP settings):

{
  "mcpServers": {
    "data-favor": {
      "command": "ssh",
      "args": [
        "user@munchie-server",
        "node",
        "/absolute/path/to/PF/data-favor-mcp/build/index.js"
      ]
    }
  }
}

(Replace user@munchie-server with the correct SSH user and Tailscale hostname/IP, and update the absolute path to the build directory).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured