Install guide · VS Code
Install facebook-mcp for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
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 .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "ivanbbaev-facebook-mcp": { "type": "stdio", "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 | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |