facebook mcp for VS Code
io.github.ivanbbaev/facebook-mcp
Facebook Pages MCP server for the Meta Graph API — publishing, insights, moderation, messaging
client:VS Code
transport:stdio
runtime:npm
Install facebook mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "fb-system-token",
"description": "FB_SYSTEM_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "fb-access-token",
"description": "FB_ACCESS_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "fb-page-token",
"description": "FB_PAGE_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "fb-app-id",
"description": "FB_APP_ID",
"password": true
},
{
"type": "promptString",
"id": "fb-app-secret",
"description": "FB_APP_SECRET",
"password": true
},
{
"type": "promptString",
"id": "fb-page-id",
"description": "FB_PAGE_ID",
"password": true
},
{
"type": "promptString",
"id": "fb-api-version",
"description": "FB_API_VERSION",
"password": true
},
{
"type": "promptString",
"id": "fb-request-timeout-ms",
"description": "FB_REQUEST_TIMEOUT_MS",
"password": true
},
{
"type": "promptString",
"id": "fb-host-concurrency",
"description": "FB_HOST_CONCURRENCY",
"password": true
},
{
"type": "promptString",
"id": "fb-max-result-chars",
"description": "FB_MAX_RESULT_CHARS",
"password": true
},
{
"type": "promptString",
"id": "fb-write-mode",
"description": "FB_WRITE_MODE",
"password": true
},
{
"type": "promptString",
"id": "fb-confirm-token",
"description": "FB_CONFIRM_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "fb-media-dir",
"description": "FB_MEDIA_DIR",
"password": true
},
{
"type": "promptString",
"id": "fb-journal-path",
"description": "FB_JOURNAL_PATH",
"password": true
},
{
"type": "promptString",
"id": "fb-tool-packages",
"description": "FB_TOOL_PACKAGES",
"password": true
},
{
"type": "promptString",
"id": "fb-packages-deny",
"description": "FB_PACKAGES_DENY",
"password": true
},
{
"type": "promptString",
"id": "fb-packages-readonly",
"description": "FB_PACKAGES_READONLY",
"password": true
},
{
"type": "promptString",
"id": "fb-transport",
"description": "FB_TRANSPORT",
"password": true
},
{
"type": "promptString",
"id": "fb-http-token",
"description": "FB_HTTP_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "fb-http-port",
"description": "FB_HTTP_PORT",
"password": true
},
{
"type": "promptString",
"id": "fb-ad-account-id",
"description": "FB_AD_ACCOUNT_ID",
"password": true
},
{
"type": "promptString",
"id": "fb-ads-budget-ceiling",
"description": "FB_ADS_BUDGET_CEILING",
"password": true
},
{
"type": "promptString",
"id": "fb-log-level",
"description": "FB_LOG_LEVEL",
"password": true
}
],
"servers": {
"facebook-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ivanbaev/facebook-mcp"
],
"env": {
"FB_SYSTEM_TOKEN": "${input:fb-system-token}",
"FB_ACCESS_TOKEN": "${input:fb-access-token}",
"FB_PAGE_TOKEN": "${input:fb-page-token}",
"FB_APP_ID": "${input:fb-app-id}",
"FB_APP_SECRET": "${input:fb-app-secret}",
"FB_PAGE_ID": "${input:fb-page-id}",
"FB_API_VERSION": "${input:fb-api-version}",
"FB_REQUEST_TIMEOUT_MS": "${input:fb-request-timeout-ms}",
"FB_HOST_CONCURRENCY": "${input:fb-host-concurrency}",
"FB_MAX_RESULT_CHARS": "${input:fb-max-result-chars}",
"FB_WRITE_MODE": "${input:fb-write-mode}",
"FB_CONFIRM_TOKEN": "${input:fb-confirm-token}",
"FB_MEDIA_DIR": "${input:fb-media-dir}",
"FB_JOURNAL_PATH": "${input:fb-journal-path}",
"FB_TOOL_PACKAGES": "${input:fb-tool-packages}",
"FB_PACKAGES_DENY": "${input:fb-packages-deny}",
"FB_PACKAGES_READONLY": "${input:fb-packages-readonly}",
"FB_TRANSPORT": "${input:fb-transport}",
"FB_HTTP_TOKEN": "${input:fb-http-token}",
"FB_HTTP_PORT": "${input:fb-http-port}",
"FB_AD_ACCOUNT_ID": "${input:fb-ad-account-id}",
"FB_ADS_BUDGET_CEILING": "${input:fb-ads-budget-ceiling}",
"FB_LOG_LEVEL": "${input:fb-log-level}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs