프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Fbc Guard

제작자: adsandcode버전 0.1.0i★ –i내 컴퓨터에서 실행
레지스트리 이름io.github.adsandcode/fbc-guard

설치

개요

제작자가 쓴 설명(영어 원문)

Static checks for Meta _fbc, _fbp and fbclid code that cause modified click ID warnings.

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 내 컴퓨터에서 실행
  • 전송 방식: stdio
  • 카테고리: 기타

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

설치하기 전에

  • 기본 점검: 1개 중 1개 통과
  • 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
  • 레지스트리에 입력해야 할 키가 나와 있지 않아요.

필요한 것

  • npmNode.js 설치(npx 명령어용)

어떤 앱을 쓰세요?

위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.

Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요

{
  "mcpServers": {
    "fbc-guard": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-fbc-guard"
      ]
    }
  }
}

터미널에서 이 명령어를 실행하세요

claude mcp add fbc-guard -- npx -y mcp-server-fbc-guard

Cursor에서 열기

또는 설정을 직접 복사하기

프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요

{
  "mcpServers": {
    "fbc-guard": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-fbc-guard"
      ]
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

VS Code에서 열기

또는 설정을 직접 복사하기

프로젝트의 .vscode/mcp.json에 붙여 넣으세요

{
  "servers": {
    "fbc-guard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-fbc-guard"
      ]
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.

선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 6일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 adsandcode 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

기타 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 32466개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 32466개 중 72%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 32466개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Fbc Guard, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.1.0)은 15일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Spec Driven Development, Remote Desktop Commander, HotCodePush

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Spec Driven Development

제작자: formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

내 컴퓨터에서 실행★ 440MIT14개월 전 업데이트
설치

Remote Desktop Commander

제작자: desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

클라우드에서 실행★ 211어제 업데이트
설치

HotCodePush

제작자: hotcodepush-team

Manage over-the-air (OTA) updates for React Native, Expo, Capacitor and Cordova apps.

클라우드에서 실행오늘 업데이트
설치

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

fbc-guard

Static checks for the landing-page code that stores Meta's click ID.

Documentation and background: adsandcode.com/en/open-source/fbc-guard

fbc-guard reads the HTML and JavaScript that turn the fbclid URL parameter into the _fbc cookie (and, if you write it yourself, the _fbp cookie), and flags the known ways that code changes or loses the click ID.

It runs as an MCP server, so an AI assistant can check tracking code while it writes or reviews a page, and as a command-line tool for CI.

The problem it addresses

When someone clicks a Meta ad, the landing page URL carries an fbclid parameter. Your page, or the Meta Pixel, stores it in a first-party _fbc cookie in the form fb. . . , and later events send that value to Meta in the fbc parameter.

Hand-written versions of this code tend to go wrong in a few specific ways:

  • They keep an older click ID when a returning visitor arrives from a different ad, so the conversion is attributed to the earlier ad.
  • They change the click ID on the way through: decode it again, change its case, or cut it short.
  • They write creationTime in seconds instead of milliseconds, or hard-code subdomainIndex.

Advertisers report seeing an Events Manager diagnostic about a modified fbclid in the fbc parameter. Meta's documentation does not list what causes it. The first two mistakes above alter or replace the click ID between the URL and the event, so they are worth ruling out when you see it.

fbc-guard finds these patterns in source code before it ships. It does not run the code and it sends nothing to Meta.

Install

MCP server

Add this to your MCP client configuration (Claude Desktop, Cursor, and other clients that read an mcpServers block):

{

"mcpServers": { "fbc-guard": { "command": "npx", "args": ["-y", "mcp-server-fbc-guard"] } } }

Claude Code:

claude mcp add fbc-guard -- npx -y mcp-server-fbc-guard

Requires Node.js 18 or later.

Command line
npx -y -p mcp-server-fbc-guard fbc-guard https://your-landing-page.example/

or install it

npm install -g mcp-server-fbc-guard fbc-guard ./dist/index.html ./dist/js/tracking.js

As a library
import { checkCode } from "mcp-server-fbc-guard";

const result = checkCode(htmlOrJs); // { status, failed, unknown, warnings, rules }

The package entry point is the rules module only. Importing it does not start the MCP server, read files or touch the network.

MCP tools

ToolInputWhat it does
check_fbc_codecode: HTML or JavaScript; optional kind: auto (default), html or jsRuns every rule on the source you pass. No network access.
check_fbc_urlurl: http or https URLFetches the page and every same-origin it loads, then runs every rule on all of it. Public hosts only, unless the server runs with FBC_GUARD_ALLOW_PRIVATE=1 (see Network safety). Also returns final_url, scanned_scripts and skipped_scripts.

Both return JSON:

{

"status": "fail", "failed": ["FBC-01"], "unknown": [], "warnings": ["FBC-06"], "rules": [ { "id": "FBC-01", "title": "A new fbclid must overwrite an older _fbc cookie", "status": "fail", "evidence": "indexOf('_fbc=')<0", "protects": "If the cookie is only written when it is missing, ...", "basis": "official", "severity": "error", "reference": "https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/fbp-and-fbc" } ] }

Each rule's status is pass, fail, unknown or warn. warn comes only from warning-level rules (FBC-06); it is listed under warnings and never changes the overall status or the exit code.

The overall status is pass, fail, unknown, or not_applicable.

  • unknown means no rule failed, but at least one rule could not decide. Today only FBC-01 can return it, when it cannot tell which variable holds the fbclid from the URL. The rule's evidence says what could not be resolved.
  • not_applicable means the string _fbc does not appear anywhere in what was scanned, so no rule was evaluated. The code may live somewhere the scan cannot see.

Neither is a pass.

In check_fbc_code, kind: "auto" reads the input as HTML when it starts with < and analyses its inline bodies, and reads anything else as JavaScript.

The server runs its own negative tests at startup and refuses to start if any rule no longer fails on the code it is supposed to catch.

Command line

fbc-guard <url|file> [<url|file> ...]   check pages (http/https) or local files

fbc-guard --json [...] print JSON instead of text fbc-guard --allow-private [...] also allow localhost and private-network URLs fbc-guard --selftest run only the negative tests fbc-guard --help | --version

Each target is judged separately. URLs are fetched together with their same-origin scripts. Local files are scanned as they are, without following , so list your JavaScript files as well. A local file is read as JavaScript when its extension is .js, .mjs, .cjs, .jsx, .ts, .mts, .cts or .tsx, as HTML when it is .html, .htm, .xhtml, .shtml or .php, and otherwise by its first character, as in check_fbc_code.

Before judging any target the CLI runs the same negative tests as the server. If they fail, it prints which test failed and exits with code 2 without giving a verdict.

Exit codeMeaning
0No error-level rule failed on any target. This includes targets with warnings only (FBC-06), unknown (a rule could not decide) or not_applicable (no _fbc code); the output marks all three
1At least one rule failed on at least one target
2The negative tests failed, the arguments were invalid (including --selftest with anything else), or a target could not be read or fetched

In CI:

npx -y -p mcp-server-fbc-guard fbc-guard ./public/index.html ./public/js/tracking.js

Rules

Each rule cites Meta's reference page, ClickID and the fbp and fbc Parameters (the older URL under /docs/marketing-api/conversions-api/parameters/fbp-and-fbc/ redirects there). The Basis column says how directly that page supports the rule:

  • Official: the page states the requirement.
  • Derived: the page states a general requirement; applying it to this specific code pattern is our reading.
  • Observed in practice: not stated by Meta; a mistake seen in real implementations.
IDFlagsSeverityBasis
FBC-01The _fbc cookie is written only when it does not exist, or the click ID from the URL is never compared with anything but a literalerrorOfficial
FBC-02decodeURIComponent(fbclid)errorDerived
FBC-03fbclid.toLowerCase() / fbclid.toUpperCase()errorOfficial
FBC-04fbclid.slice(, .substring(, .substr(errorDerived
FBC-05A seconds timestamp in the statement that builds an _fbc=fb. valueerrorOfficial
FBC-06A literal digit as subdomainIndex in an _fbc cookie valuewarningObserved in practice
FBP-01The same as FBC-05, for _fbp=fb.errorOfficial

An error-level rule that fires fails the check (exit code 1). A warning-level rule that fires is reported with status warn and does not change the result or the exit code.

The rules read the source through a small scanner, not a JavaScript parser. Nothing inside a JavaScript comment counts, and neither does markup inside an HTML comment.

  • FBC-02, FBC-03 and FBC-04 read only the JavaScript (inline bodies and fetched script files) and also ignore string contents, so a message such as 'do not call decodeURIComponent(fbclid)' does not trigger them.
  • FBC-06 and the write-only-if-missing check of FBC-01 look for text that lives inside string literals, so they read the whole document with comments removed and string contents kept.
  • FBC-01, FBC-05 and FBP-01 also use the scanner to find where a statement starts and ends.
FBC-01: a new fbclid must overwrite an older _fbc cookie

Code written as "set the cookie if there is none" keeps the first click ID forever. A visitor who returns through a different ad still carries the old one, and the conversion is credited to the earlier ad. Meta's page lists, as a case where the cookie should be set, a URL fbclid that "isn't equal to the corresponding value in the _fbc cookie value".

How the rule decides:

  1. It finds the variables that hold the click ID from the URL: assigned from .get('fbclid'), ['fbclid'] or .fbclid, from a match, split, exec or similar call on text containing fbclid=, or copied from one of those (var f = fbclid || ''). A variable or parameter literally named fbclid also counts.
  2. It looks for a !==, !=, === or == comparison between one of those variables and something that is not a literal. id !== f and if (stored === clickId) return; count; f !== '' and f != null do not.
  3. A comparison passes the rule. That includes "set the cookie if it is missing or different", written as indexOf('_fbc=') < 0 || id !== f.
  4. Without a comparison, the rule fails if it finds the write-only-if-missing pattern indexOf('_fbc=') < 0, or if it found a click ID variable.
  5. If it found neither a click ID variable nor that pattern, the status is unknown, with an explanation. Exit code 0.
FBC-02: do not URL-decode fbclid a second time

URLSearchParams.get() already returns a decoded value. Decoding it again either leaves it unchanged or changes it, and decodeURIComponent throws on a lone %, which stops the rest of the script. Meta's page says to "do not apply any modifications before using" the click ID. It does not mention decoding specifically; treating a second decode as a modification is our reading.

FBC-03: do not change the case of fbclid

Meta's page states "ClickID value is case sensitive" and names lower- and upper-casing as modifications to avoid.

FBC-04: do not truncate fbclid

A shortened click ID is a modified click ID. Meta's page says to "do not apply any modifications before using" it; truncation is not named specifically.

FBC-05: _fbc creationTime must be in milliseconds

Meta's page defines it: "creationTime is the UNIX time since epoch in milliseconds". Date.now() already returns milliseconds; dividing by 1000 writes seconds.

The rule looks at each statement that contains an _fbc=fb. string or template literal and fails if that statement divides a millisecond clock by 1000:

  • clocks: Date.now(), new Date(), (new Date), new Date().getTime(), (new Date).getTime(), new Date().valueOf(), +new Date, and d.getTime() / d.valueOf() on a variable (a new Date(...) built from arguments is a fixed moment, not the clock, and is not matched);
  • divisors: /1000 or /1e3, with or without spaces, whatever wraps it (Math.floor, Math.round, Math.trunc, parseInt, |0, ~~);
  • written directly in the concatenation or template literal, or stored in a variable first and concatenated in. For a variable, the last assignment before the statement is the one that counts.

It does not fire on Date.now() alone, on /1000 in other statements (a countdown timer elsewhere in the file), on a commented-out line, or on a time difference such as (end - Date.now()) / 1000, which is a duration like max-age, not a timestamp.

FBC-06 (warning): check a hard-coded subdomainIndex in the _fbc cookie

Meta's page says "subdomainIndex is which domain the cookie is defined on"

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기