social
Facebook MCP Integration for OpenAI Agents SDK
Connect Facebook to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Facebook to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Facebook MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-facebook": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=facebook",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=facebook --write=deny Why Use KosmoKrator Here
Expose only Facebook instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Facebook Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Facebook integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__facebook__facebook_list_pages | facebook.facebook_list_pages | Read | List all Facebook Pages the authenticated user manages. Returns page IDs, names, and access tokens for further operations. |
integration__facebook__facebook_get_page | facebook.facebook_get_page | Read | Get details for a specific Facebook Page by its ID. Returns page name, category, follower count, and other metadata. |
integration__facebook__facebook_list_posts | facebook.facebook_list_posts | Read | List posts published by a Facebook Page. Returns post IDs, messages, creation times, and engagement metrics. |
integration__facebook__facebook_create_post | facebook.facebook_create_post | Write | Publish a new post on a Facebook Page. The post will appear on the Page's timeline immediately unless scheduled. |
integration__facebook__facebook_get_post | facebook.facebook_get_post | Read | Get details for a specific Facebook post by its ID. Returns the post content, creation time, and engagement metrics. |
integration__facebook__facebook_list_insights | facebook.facebook_list_insights | Read | Get engagement and performance metrics (insights) for a Facebook Page. Supports metrics like page_impressions, page_engaged_users, page_post_engagements, and more. |
integration__facebook__facebook_get_current_user | facebook.facebook_get_current_user | Read | Get the authenticated user's Facebook profile information, including name and user ID. |