Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Facebook Publisher

by anthonyjboloversion 0.1.1i★ 0iRuns on your computer
Registry nameio.github.anthonyjbolo/mcp-fb-publisher

How to install

What it does

Safe Facebook Pages publishing with brand-voice, image-required & anti-duplication checks.

  • Connects Runs on your computer
  • Account or key Needs META_USER_TOKEN
  • Category Marketing & social media

Install

Pick the AI app you use, then copy the settings.

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Facebook Publisher key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Facebook Publisher for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "fb-publisher": { "command": "uvx", "args": [ "mcp-fb-publisher" ], "env": { "META_USER_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For META_USER_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Facebook Publisher tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Facebook Publisher key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Facebook Publisher site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "fb-publisher": {
          "command": "uvx",
          "args": [
            "mcp-fb-publisher"
          ],
          "env": {
            "META_USER_TOKEN": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Facebook Publisher and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Facebook Publisher or shows a Facebook Publisher tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MCP_FB_PUBLISHER_CONFIG Absolute path to your config.yaml (per-page brand voices, banned topics, image policy).
  • MCP_FB_PUBLISHER_CONFIG_JSON Inline JSON config (alternative to file path, useful for serverless deploys).
  • OPENAI_API_KEY OpenAI API key for image generation via gpt-image-1 (optional).
  • FAL_KEY fal.ai API key for image generation via Flux Pro (optional).

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Facebook Publisher yet

Facebook Publisher runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Facebook Publisher

  • You need a Facebook Publisher key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Facebook Publisher key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Facebook Publisher key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Facebook Publisher key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

B · Others in Marketing & social media that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Facebook Publisher key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Facebook Publisher for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user fb-publisher --env META_USER_TOKEN=your-value -- uvx mcp-fb-publisher 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For META_USER_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Facebook Publisher tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Facebook Publisher key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Facebook Publisher site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user fb-publisher --env META_USER_TOKEN=your-value -- uvx mcp-fb-publisher

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Facebook Publisher listed as connected

  6. Try it

    Use Facebook Publisher and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Facebook Publisher or shows a Facebook Publisher tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MCP_FB_PUBLISHER_CONFIG Absolute path to your config.yaml (per-page brand voices, banned topics, image policy).
  • MCP_FB_PUBLISHER_CONFIG_JSON Inline JSON config (alternative to file path, useful for serverless deploys).
  • OPENAI_API_KEY OpenAI API key for image generation via gpt-image-1 (optional).
  • FAL_KEY fal.ai API key for image generation via Flux Pro (optional).

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Facebook Publisher key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Facebook Publisher for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "fb-publisher": { "command": "uvx", "args": [ "mcp-fb-publisher" ], "env": { "META_USER_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For META_USER_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Facebook Publisher tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Facebook Publisher key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Facebook Publisher site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Facebook Publisher settings, META_USER_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Facebook Publisher and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Facebook Publisher or shows a Facebook Publisher tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MCP_FB_PUBLISHER_CONFIG Absolute path to your config.yaml (per-page brand voices, banned topics, image policy).
  • MCP_FB_PUBLISHER_CONFIG_JSON Inline JSON config (alternative to file path, useful for serverless deploys).
  • OPENAI_API_KEY OpenAI API key for image generation via gpt-image-1 (optional).
  • FAL_KEY fal.ai API key for image generation via Flux Pro (optional).

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Facebook Publisher key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Facebook Publisher for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "fb-publisher": { "type": "stdio", "command": "uvx", "args": [ "mcp-fb-publisher" ], "env": { "META_USER_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For META_USER_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Facebook Publisher tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Facebook Publisher key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Facebook Publisher site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Facebook Publisher settings, META_USER_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Facebook Publisher and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Facebook Publisher or shows a Facebook Publisher tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MCP_FB_PUBLISHER_CONFIG Absolute path to your config.yaml (per-page brand voices, banned topics, image policy).
  • MCP_FB_PUBLISHER_CONFIG_JSON Inline JSON config (alternative to file path, useful for serverless deploys).
  • OPENAI_API_KEY OpenAI API key for image generation via gpt-image-1 (optional).
  • FAL_KEY fal.ai API key for image generation via Flux Pro (optional).

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Facebook Publisher💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user fb-publisher --env META_USER_TOKEN=your-value -- uvx mcp-fb-publisher

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "fb-publisher": {
      "command": "uvx",
      "args": [
        "mcp-fb-publisher"
      ],
      "env": {
        "META_USER_TOKEN": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "fb-publisher": {
      "command": "uvx",
      "args": [
        "mcp-fb-publisher"
      ],
      "env": {
        "META_USER_TOKEN": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "fb-publisher": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-fb-publisher"
      ],
      "env": {
        "META_USER_TOKEN": "your-value"
      }
    }
  }
}

Values you fill in

  • META_USER_TOKEN secret required env
    Long-lived Meta Graph API user or page token. Required for publishing.
  • MCP_FB_PUBLISHER_CONFIG env
    Absolute path to your config.yaml (per-page brand voices, banned topics, image policy).
  • MCP_FB_PUBLISHER_CONFIG_JSON env
    Inline JSON config (alternative to file path, useful for serverless deploys).
  • OPENAI_API_KEY secret env
    OpenAI API key for image generation via gpt-image-1 (optional).
  • FAL_KEY secret env
    fal.ai API key for image generation via Flux Pro (optional).

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
11/wk
Connection
Runs on your computer
Latest versioni
0.1.1
Published to registryi
May 9, 2026
Code last changedi
May 9, 2026
Maker
anthonyjbolo
Packages
pypi: mcp-fb-publisher
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 15, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account anthonyjbolo, which owns the repo

  • ! Caution

    Still maintained

    Code last changed 6 months ago, more than 6 months ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

What we check → · JSON

Makers: ask for a re-check or report wrong info

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Marketing & social mediai

  • More stars than 0% of the other 3961 servers in this category
  • Published to the registry more recently than 6% of the other 3961 servers in this category
  • Basic checks equal to or better than 55% of the other 3961 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Facebook Publisher safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: META_USER_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 6 months ago, and the latest version (0.1.1) reached the registry 6 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Relaticle

Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.

by relaticleGrowing★ 1.8KUpdated 2 days ago

Runs in the cloud✓ service owner · relaticle.com

ChatbotX

Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.

by ChatbotXIOGrowing★ 1.1K Stars for the whole repoUpdated 9 days ago

Runs in the cloud✓ service owner · chatbotx.io

Betterlytics

Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.

by betterlyticsGrowing★ 180Updated 3 months ago

Runs in the cloud✓ service owner · betterlytics.io

BibiGPT YouTube Video Summarizer

AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.

by JimmyLvGrowing★ 141Updated 18 days ago

Runs in the cloud✓ service owner · bibigpt.co

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

mcp-fb-publisher

An MCP server that lets Claude (or any MCP-compatible LLM) safely publish posts to multiple Facebook Pages through the Meta Graph API, with built-in guardrails: brand-voice config, banned-topic blocklists, image-required enforcement, and anti-duplication checks across recent feed posts.

Why this exists

Letting an LLM agent post directly to your Facebook Pages is a footgun unless you put guardrails in front. Common failure modes I have hit running 5+ pages:

  1. Token expired silently — post fails at midnight, nobody notices for 3 days.
  2. Same angle posted twice in 14 days — audience tunes out, reach drops.
  3. Text-only post when the brand voice mandates an image — engagement craters.
  4. Banned topic leaked — competitor name, internal codename, or deprecated product mentioned.

mcp-fb-publisher ships an MCP server that wraps the Meta Graph API behind 4 deterministic tools, all driven by a single config.yaml. Every publish call goes through validation by default. Validation is pure-Python (no LLM), reproducible in CI, and runs offline.

What it does

4 MCP tools:

ToolWhat it does
fb_publish_postPublishes (or schedules) a post on a configured page. Runs full validation by default; pass skip_validation=True to bypass.
fb_validate_pre_publishDry-run all guardrails. Returns `verdict: goblock` plus per-check details. Network-optional.
fb_anti_duplicate_checkCompares a candidate message against the page's recent posts using Jaccard similarity over word 4-grams.
fb_generate_post_with_imageGenerates an image via OpenAI (gpt-image-1) or fal.ai (flux-pro) and returns a URL ready for fb_publish_post.

5-minute quickstart

# 1. Install

pip install mcp-fb-publisher

2. Copy and edit the example config

cp config.example.yaml config.yaml

-> set page_id values, brand voices, banned_topics

3. Set required env

export META_USER_TOKEN=" " export MCP_FB_PUBLISHER_CONFIG="$PWD/config.yaml"

4. (Optional) for image generation

export OPENAI_API_KEY="sk-..." # or export FAL_KEY="..."

5. Run the MCP server (stdio transport)

mcp-fb-publisher

Wire it into Claude Desktop / Claude Code

Add to your claude_desktop_config.json:

{

"mcpServers": { "fb-publisher": { "command": "mcp-fb-publisher", "env": { "META_USER_TOKEN": "your_token_here", "MCP_FB_PUBLISHER_CONFIG": "/absolute/path/to/config.yaml", "OPENAI_API_KEY": "sk-..." } } } }

Then ask Claude things like:

*"Post on the marketing page: 'New collection drops Friday'. Generate an image first, validate, then publish."*

Claude will call fb_generate_post_with_image → fb_validate_pre_publish → fb_publish_post.

Architecture

flowchart LR

A[Claude / MCP client] -->|tool call| B[FastMCP server] B --> C{tool} C -->|generate| D[OpenAI / fal.ai] C -->|validate| E[Validator pure Python] C -->|anti-dup| F[Meta Graph API fetch_recent_posts] C -->|publish| G[Meta Graph API POST /feed or /photos] E -.reads.-> H[(config.yaml per-page rules)] G -.reads.-> H F -.reads.-> H

The split between generation, validation and publish is intentional: it lets the LLM iterate on the visual without burning Meta API quota, and it makes the guardrails inspectable in CI without a Meta account.

Anti-duplication strategy

We compare the candidate message against every post within anti_duplicate_lookback_days (per-page, default 14) using Jaccard similarity over word 4-grams:

  1. Normalize: lowercase, strip accents (NFKD), drop URLs, drop punctuation, collapse whitespace.
  2. Build the set of word-level 4-grams for both texts.
  3. similarity = |A ∩ B| / |A ∪ B|
  4. If similarity >= similarity_threshold (default 0.5), block.

Why this and not embeddings: deterministic, free, no extra API key, fast enough for 50 candidates per call. If you want LLM-grade semantic comparison, add another layer on top — the fb_validate_pre_publish tool returns the score so your agent can decide.

Brand voice config

defaults:

language: en brand_voice: | Direct, professional, no fluff. banned_topics: [] image_required: true anti_duplicate_lookback_days: 14

pages: marketing_main: page_id: "0000000000000000" name: "My Brand — Main" brand_voice: | Confident, concise, customer-first. banned_topics:

  • competitor_brand_a
  • leaked_codename image_required: true

community: page_id: "0000000000000002" name: "Community" image_required: false

Note: the brand_voice field is informational — it's surfaced to the calling LLM via the tool description but the server itself does not LLM-validate against it. This is by design (tests must run offline). Layer your own LLM check on top if you want enforcement.

Use cases

1. Multi-page agency

You manage 5 Facebook pages for clients. Each has its own brand voice, banned topics (competitor names), and image policy. Configure them all in one config.yaml, give Claude the tool, and let the agent draft + validate + publish across all of them with safety rails.

2. Solo founder

You run a single product page and want Claude to schedule the next 30 days of posts. Set image_required: true, give the agent your product brief, and use fb_anti_duplicate_check to make sure no two posts land on the same angle within a fortnight.

3. E-commerce

You rotate flash promos. Set anti_duplicate_lookback_days: 7 for the promo page and 14 for the evergreen content page. Combine with scheduled_at to queue a week's worth of posts in one shot.

Development

git clone https://github.com/anthonyjbolo/mcp-fb-publisher.git

cd mcp-fb-publisher

python3.12 -m venv .venv source .venv/bin/activate pip install -e ".[dev,openai,fal]"

Run the test suite (offline, no Meta credentials needed)

pytest

Lint

ruff check .

All tests use httpx.MockTransport and pytest-mock. No real Meta API calls in tests.

Security

  • The Meta token is read from META_USER_TOKEN only. Never hard-code it.
  • Token strings are redacted from error messages (***REDACTED***) before they leave the process.
  • The validator is sync and offline — safe to run in CI without exposing credentials.
  • config.yaml is in .gitignore. Only config.example.yaml is committed.

Roadmap

  • Instagram Graph API support (the validator already works, only the meta_client publish path needs adapting).
  • Optional ntfy webhook on publish failure.
  • LLM-grade brand-voice scoring as an opt-in tool.
  • Token rotation helper (fb_check_token_expiry).

En français — pourquoi ce projet

Construit en Nouvelle-Calédonie pour gérer 5 pages FB en parallèle (auto-école, marketplace de bingo, atelier d'apps, marque de tee-shirts, page média). Tous les écueils ci-dessus sont des bugs que j'ai vraiment vécus. Le serveur MCP est la couche que j'aurais aimé avoir le premier jour — maintenant elle est libre.

License

MIT — see LICENSE.

Contributing

Issues + PRs welcome. Please run pytest and ruff check . before opening a PR. For substantial features, open an issue first to discuss.

#BuiltOnClaudeCode