Fbc Guard MCP server
Static checks for Meta _fbc, _fbp and fbclid code that cause modified click ID warnings.
0 stars275 downloads/wk
Reviews
Write oneNobody has reviewed Fbc Guard yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Fbc Guard tools (2)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
check_fbc_codeStatically check HTML or JavaScript that reads `fbclid` from the URL and writes Meta's `_fbc` click ID cookie (and optionally `_fbp`).
check_fbc_urlFetch a landing page and run the same checks as check_fbc_code on its HTML plus every same-origin <script src> it loads, so tracking code kept in an external file is included.
Public scan report
scanner v0.1.10 · 2026-10-25 · same rubric, same numbers if you re-run it
- Code scan13 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 2 days ago15/15
- Maintainer identityregistry namespace matches repository owner6/10
How Fbc Guard compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 89/100
- higher than 80% of 48,291 servers
- Tools
- 2
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 275
- more than 80% of 11,571 servers with a package
What its tools let an agent do: 2 read
Install Fbc Guard in Claude Code, Cursor or VS Code
Runs npx -y mcp-server-fbc-guard on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add fbc-guard -- npx -y mcp-server-fbc-guard
What the publisher says
From the Fbc Guard repository's README, as published. We do not edit it. Read it on GitHub
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:
ad, so the conversion is attributed to the earlier ad.
- They keep an older click ID when a returning visitor arrives from a different
case, or cut it short.
- They change the click ID on the way through: decode it again, change its
subdomainIndex.
- They write creationTime in seconds instead of milliseconds, or hard-code
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-guardRequires 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.jsAs 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
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.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Fbc Guard: common questions
- Is Fbc Guard MCP server safe?
- Yes, by our scan: it is graded A (89/100). Read the Fbc Guard safety report
- How do I install Fbc Guard?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Fbc Guard need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Fbc Guard maintained?
- The last commit was 9 days ago (2026-10-23). The latest release is v0.1.0.
- How does Fbc Guard compare with other MCP servers?
- safety score 89/100 (higher than 80% of 48,291 servers); tools 2 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.