Install guide · Claude Desktop
Install facebook-mcp for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
Add to Cursor: facebook-mcpInstall in VS Code: facebook-mcpInstall in VS Code Insiders: facebook-mcp
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "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
| System | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |