Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Data Favor Server

БесплатноНе проверен

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

GitHubEmbed

Описание

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

README

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).

from github.com/party-developer/data-favor-mcp

Установка Data Favor Server

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/party-developer/data-favor-mcp

FAQ

Data Favor Server MCP бесплатный?

Да, Data Favor Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Data Favor Server?

Нет, Data Favor Server работает без API-ключей и переменных окружения.

Data Favor Server — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Data Favor Server в Claude Desktop, Claude Code или Cursor?

Открой Data Favor Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Data Favor Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development