Skip to main content
Glama
rfd-mcp
by carteakey

rfd-mcp

rfd-mcp is a standalone local stdio MCP server for searching and monitoring RedFlagDeals topics.

It has no source or package dependency on the RFD frontend repository. It references RFD only through the cached JSON feed configured with RFD_TOPICS_URL or RFD_TOPICS_FILE. By default it reads the deployed rfd-fyi feed at:

https://github.com/carteakey/rfd

The default data endpoint is:

https://rfd-fyi.pages.dev/topics.json

For local development, set RFD_TOPICS_FILE to a JSON file or set RFD_TOPICS_URL to a local Pages/Wrangler endpoint.

Install and build

From this repository root:

npm ci
npm run build

The compiled server is dist/index.js.

Related MCP server: Shopping Deals MCP Server

Configure an MCP client

For Claude Code:

claude mcp add rfd -- node /absolute/path/to/rfd-mcp/dist/index.js

Or add an entry like this to an MCP client configuration. The environment variables are optional.

{
  "mcpServers": {
    "rfd": {
      "command": "node",
      "args": ["/absolute/path/to/rfd-mcp/dist/index.js"],
      "env": {
        "RFD_TOPICS_URL": "https://rfd-fyi.pages.dev/topics.json",
        "RFD_MCP_DATA_DIR": "/absolute/path/to/rfd-mcp-data"
      }
    }
  }
}

Tools

  • search_deals searches topic titles and retailer names. It supports additional filter chips, /regular expression/ filters, retailer filtering, score bounds, the same six sort keys as the frontend, and a result limit.

  • get_deal returns the complete cached topic record plus the forum and direct-offer links for a topic_id.

  • monitor_search saves a search and keeps the latest 500 seen topic IDs.

  • check_monitors checks one or all saved searches and returns only unseen deals.

  • list_monitors lists saved searches and their last-check state.

  • delete_monitor removes a saved search.

RFD's cached topic schema does not contain Marketplace-style location, price, or category fields. Those filters are intentionally not exposed; the server uses the fields the RFD scraper actually stores.

Configuration

Variable

Default

Purpose

RFD_TOPICS_URL

https://rfd-fyi.pages.dev/topics.json

Cached topics endpoint

RFD_TOPICS_FILE

unset

Read topics from a local JSON file instead of HTTP

RFD_FORUM_BASE_URL

https://forums.redflagdeals.com

Base URL for thread links

RFD_MCP_CACHE_TTL_MS

30000

In-memory topics cache lifetime

RFD_MCP_DATA_DIR

~/.rfd-mcp

Directory for monitor state

RFD_MCP_MONITORS_FILE

$RFD_MCP_DATA_DIR/monitors.json

Exact monitor state path

Tests

npm test
npm run build

The server uses MCP stdio transport, so stdout is reserved for protocol traffic. Diagnostics are returned as tool errors or written by dependencies to stderr.

Available Tools

6 tools
check_monitorsA

Check saved RFD searches and return only unseen deals

Inputs: monitor_name.

delete_monitorB

Delete a saved RFD search monitor

Inputs: name (required).

get_dealA

Get the complete cached topic data for a RedFlagDeals deal

Inputs: topic_id (required).

list_monitorsB

List all saved RFD search monitors

Inputs: no named parameters.

search_dealsA

Search cached RedFlagDeals topics by text, retailer, score, and sort order

Inputs: sort, limit, query, dealer, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose: searching deals, retrieving a specific deal, creating a monitor, checking monitors, deleting, and listing. No two tools overlap or create ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern: search_deals, get_deal, monitor_search, check_monitors, delete_monitor, list_monitors. The convention is uniform and predictable.

    Tool Count5/5

    Six tools is a well-scoped set for the RedFlagDeals domain, covering search, retrieval, and monitor lifecycle without excess or deficiency.

    Completeness4/5

    The coverage is solid: search and get for deal access, plus full monitor CRUD (create, read, check, delete) and list. A monitor update operation is absent, but that is a minor gap not essential to core workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that aggregates and compares deals from multiple sources including Slickdeals, RapidAPI marketplace, and web scraping, enabling users to search, filter, and compare deals through a chat interface.
      6
      8
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for finding, comparing, and ranking the cheapest real offers across eBay, Amazon, Craigslist, OfferUp, and Google Shopping, with tax estimation and exact-model filtering.
      6
      1
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      MCP server for Groupon that enables searching and browsing local, goods, and travel deals via natural language. No API key required for reading deals.
      7
      125 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for pelando.com.br, the Brazilian community deal board. It enables searching and browsing deals, retrieving deal details and comments, and assessing crowd quality verdicts.
      9
      BSD 2-Clause "Simplified"