social-connect-mcp-poc
Social Connect MCP POC
Node.js 22 POC без npm-зависимостей для тестирования подключений Facebook + TikTok, OAuth и инструментов подключения MCP.
1. Запуск сразу с mock
cp .env.example .env
npm test
npm startОткройте http://localhost:3000, затем нажмите Test Facebook, Test TikTok или Run test-all.
В .env.example по умолчанию задано MOCK_SOCIAL=true, поэтому демо можно запустить сразу, без секретов.
Related MCP server: io.github.anthonyjbolo/mcp-fb-publisher
2. Проверка доступа к реальному endpoint
npm run probeHTTP 400/401 без токена всё равно означает, что endpoint провайдера доступен.
3. Запуск Facebook LIVE
Создайте Meta Developer App, добавьте Facebook Login и настройте:
MOCK_SOCIAL=false
META_GRAPH_VERSION=v26.0
META_APP_ID=...
META_APP_SECRET=...
META_REDIRECT_URI=http://localhost:3000/api/facebook/callbackOAuth scopes POC:
pages_show_list
pages_read_engagement
pages_manage_posts
pages_manage_engagement
pages_messagingЗатем откройте:
http://localhost:3000/api/facebook/loginCallback обменивает authorization code на user access token, вызывает /me и /me/accounts, а затем временно хранит токен в памяти.
Вы также можете обойти OAuth и протестировать токен/Page напрямую:
META_USER_ACCESS_TOKEN=...
# hoặc
META_PAGE_ID=...
META_PAGE_ACCESS_TOKEN=...4. Запуск TikTok LIVE
Создайте TikTok Developer App + Login Kit и настройте:
MOCK_SOCIAL=false
TIKTOK_CLIENT_KEY=...
TIKTOK_CLIENT_SECRET=...
TIKTOK_REDIRECT_URI=http://localhost:3000/api/tiktok/callback
TIKTOK_SCOPES=user.info.basic,video.listОткройте:
http://localhost:3000/api/tiktok/loginCallback использует token endpoint v2, а затем тестируют /v2/user/info/. Если у приложения есть video.list, POC также тестируют /v2/video/list/.
Или протестируйте токен напрямую:
TIKTOK_ACCESS_TOKEN=...5. Внутренний 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 mcpИнструменты:
social_status
facebook_test_connection
tiktok_test_connectionsrc/mcp-server.js — это минимальная реализация MCP поверх stdio JSON-RPC, чтобы POC не зависел от внешних пакетов. При переходе в production его следует заменить на официальный MCP SDK.
7. Production TODO
POC намеренно хранит OAuth-токены только в памяти. Для production необходимы: база данных/зашифрованное хранилище секретов, ротация refresh-токенов, проверка вебхуков Meta/TikTok, RBAC, журнал аудита, ограничение частоты запросов/повторные попытки, App Review и процедура отзыва токенов.
8. Git
Репозиторий уже проинициализирован (git init). Чтобы отправить его на GitHub, создайте удалённый репозиторий и выполните:
git remote add origin git@github.com:<username>/social-connect-mcp-poc.git
git push -u origin mainThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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
- AlicenseAqualityBmaintenanceEnables publishing and scheduling content across 9 social platforms (X, Instagram, TikTok, YouTube, Facebook, LinkedIn, Pinterest, Threads, Bluesky) through a single MCP tool interface, acting as a stateless proxy to the Solnk API.111MIT
- 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.
Related MCP Connectors
Social media MCP: publish, schedule & analyze posts on TikTok, Instagram, YouTube, LinkedIn & X
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
Create, schedule and publish social posts to TikTok, Instagram, Facebook and YouTube.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/longhdwst1full/social-connect-mcp-poc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server