Skip to content
facebook-mcp
Install guide · Cursor

Install facebook-mcp for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "ivanbbaev-facebook-mcp": {      "command": "npx",      "args": [        "-y",        "@ivanbaev/facebook-mcp@0.8.0"      ],      "env": {        "FB_SYSTEM_TOKEN": "YOUR_FB_SYSTEM_TOKEN",        "FB_ACCESS_TOKEN": "YOUR_FB_ACCESS_TOKEN",        "FB_PAGE_TOKEN": "YOUR_FB_PAGE_TOKEN",        "FB_APP_ID": "",        "FB_APP_SECRET": "YOUR_FB_APP_SECRET",        "FB_PAGE_ID": "",        "FB_API_VERSION": "v26.0",        "FB_ADS_API_VERSION": "v26.0",        "FB_REQUEST_TIMEOUT_MS": "60000",        "FB_HOST_CONCURRENCY": "4",        "FB_MAX_RESULT_CHARS": "25000",        "FB_WRITE_MODE": "plan",        "FB_CONFIRM_TOKEN": "YOUR_FB_CONFIRM_TOKEN",        "FB_MEDIA_DIR": "",        "FB_JOURNAL_PATH": "",        "FB_ACTIVITY_STATE_PATH": "",        "FB_EXPORT_DIR": "",        "FB_TOOL_PACKAGES": "",        "FB_PACKAGES_DENY": "",        "FB_PACKAGES_READONLY": "",        "FB_TRANSPORT": "stdio",        "FB_HTTP_TOKEN": "YOUR_FB_HTTP_TOKEN",        "FB_HTTP_PORT": "3000",        "FB_AD_ACCOUNT_ID": "",        "FB_ADS_BUDGET_CEILING": "",        "FB_ADS_CAMPAIGN_SPEND_CAP_MAX": "",        "FB_LOG_LEVEL": "info"      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json