How maz1n0-zzz/facebook-mcp works
This is a small STDIO MCP server for publishing and managing Facebook Page content through Meta Graph API. An MCP client connects over STDIO, discovers the registered tools, and invokes one; the request handler dispatches it, the handler builds an operation-specific Graph API request, and the API helper supplies configured credentials and returns the response. The tools cover Page information, text/link/photo/video publishing, post management, and comments. All runtime behavior is in one source file, so domain components share its path.
Main entry points: index.ts Graph API helper
Components 12
MCP interface
- STDIO transport
src/index.ts - MCP server
src/index.ts - Tool catalog
src/index.ts - Tool dispatcher
src/index.ts
Page operations
- Page information
src/index.ts - Content publishing
src/index.ts - Post management
src/index.ts - Comment management
src/index.ts
Graph API integration
- Page credentials
src/index.ts - Graph API helper
src/index.ts
Other components
- MCP client
- Meta Graph API
Connections 14
- MCP client → STDIO transport: connects over
src/index.ts - STDIO transport → MCP server: connects transport
src/index.ts - MCP server → Tool catalog: lists tools
src/index.ts - MCP server → Tool dispatcher: dispatches calls
src/index.ts - Tool dispatcher → Page information: handles lookup
src/index.ts - Tool dispatcher → Content publishing: handles publishing
src/index.ts - Tool dispatcher → Post management: handles posts
src/index.ts - Tool dispatcher → Comment management: handles comments
src/index.ts - Page information → Graph API helper: requests data
src/index.ts - Content publishing → Graph API helper: submits content
src/index.ts - Post management → Graph API helper: manages posts
src/index.ts - Comment management → Graph API helper: manages comments
src/index.ts - Graph API helper → Page credentials: reads credentials
src/index.ts - Graph API helper → Meta Graph API: sends HTTP requests
src/index.ts