social-connect-mcp-poc
Provides Facebook integration testing through the Meta Graph API, including OAuth login, fetching user and page account information, and validating access tokens.
Provides TikTok integration testing through the TikTok API, including OAuth login, retrieving user information, and listing videos when the video.list scope is available.
Social Connect MCP POC
Node.js 22 POC with no npm dependency to test Facebook + TikTok connection, OAuth, and MCP connection tools.
1. Run immediately with mock
cp .env.example .env
npm test
npm startOpen http://localhost:3000, then click Test Facebook, Test TikTok, or Run test-all.
.env.example defaults to MOCK_SOCIAL=true, so the demo works right away without secrets.
Related MCP server: io.github.anthonyjbolo/mcp-fb-publisher
2. Test access to real endpoints
npm run probeAn HTTP 400/401 when there is no token still means the provider endpoint is reachable.
3. Run Facebook LIVE
Create a Meta Developer App, add Facebook Login, and configure:
MOCK_SOCIAL=false
META_GRAPH_VERSION=v26.0
META_APP_ID=...
META_APP_SECRET=...
META_REDIRECT_URI=http://localhost:3000/api/facebook/callbackOAuth scopes for the POC:
pages_show_list
pages_read_engagement
pages_manage_posts
pages_manage_engagement
pages_messagingThen open:
http://localhost:3000/api/facebook/loginThe callback exchanges the authorization code for a user access token, calls /me and /me/accounts, then keeps the token temporarily in memory.
You can also bypass OAuth to test a token/Page directly:
META_USER_ACCESS_TOKEN=...
# hoặc
META_PAGE_ID=...
META_PAGE_ACCESS_TOKEN=...4. Run TikTok LIVE
Create a TikTok Developer App + Login Kit and configure:
MOCK_SOCIAL=false
TIKTOK_CLIENT_KEY=...
TIKTOK_CLIENT_SECRET=...
TIKTOK_REDIRECT_URI=http://localhost:3000/api/tiktok/callback
TIKTOK_SCOPES=user.info.basic,video.listOpen:
http://localhost:3000/api/tiktok/loginThe callback uses the v2 token endpoint and then tests /v2/user/info/. If the app has video.list, the POC also tests /v2/video/list/.
Or test a token directly:
TIKTOK_ACCESS_TOKEN=...5. Internal API
GET /api/health
GET /api/facebook/login
GET /api/facebook/callback
GET /api/facebook/test
GET /api/tiktok/login
GET /api/tiktok/callback
GET /api/tiktok/test
GET /api/test-all6. MCP POC
npm run mcpTools:
social_status
facebook_test_connection
tiktok_test_connectionsrc/mcp-server.js is a minimal stdio MCP server implementation so the POC does not depend on external packages. When upgrading to production, it should be replaced with the official MCP SDK.
7. Production TODO
The POC intentionally keeps OAuth tokens only in memory. Production needs a database/encrypted secret store, refresh-token rotation, Meta/TikTok webhook verification, RBAC, audit log, rate-limit/retry, App Review, and a token revocation flow.
8. Git
The repo is already git init-ed. To push to GitHub after creating the remote repository:
git remote add origin git@github.com:<username>/social-connect-mcp-poc.git
git push -u origin mainThis server cannot be deployed
Maintenance
Related MCP Connectors
OAuth MCP for Google, Meta, X and LinkedIn Ads, Search Console, GA4 and GoHighLevel.
Hosted TikTok ads MCP with OAuth, bounded reads, and prepare/confirm writes.
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Hosted Meta ads MCP with OAuth, bounded reads, and prepare/confirm writes.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables posting text messages to Facebook business pages through MCP. Supports OAuth authentication and manual connection methods for managing Facebook page content.-
- AlicenseAqualityDmaintenanceMCP server to safely publish posts to multiple Facebook Pages via Meta Graph API, with built-in guardrails for brand voice, banned topics, image requirements, and anti-duplication.4MIT
- FlicenseNot gradedqualityCmaintenanceA remote MCP server that provides tools to query live Meta (Facebook+Instagram) and TikTok organic social data, such as follower counts, insights, recent posts, and aggregated overviews.-

@fopost/mcpofficial
AlicenseAqualityBmaintenanceEnables managing social media posts, accounts, and AI-powered content features from any MCP client, including scheduling, publishing, analysis, and AI caption generation.1425 npmMIT