Social MCP Connector
Provides tools to retrieve Facebook Page insights, impressions, post engagements, and fan count.
Provides tools to get Instagram account overview, insights (reach, profile views, follower growth), and recent media with per-post interactions.
Provides integration with Meta's Graph API to access Facebook and Instagram organic social data, including page insights, account overview, and recent media.
Provides tools to fetch TikTok user information (followers, following, likes, video count) and recent videos with view, like, comment, and share counts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Social MCP Connectorshow me my Instagram insights for last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Social MCP Connector
A remote Model Context Protocol server that exposes your Meta (Facebook + Instagram) and TikTok organic social data as MCP tools, so you can ask Claude Desktop or ChatGPT things like "how did my Instagram account grow this week?" or "list my latest TikToks with their view counts."
It hits the live Meta Graph API and TikTok Display API using access tokens you provide as environment variables — there is no mock data.
Transport: Streamable HTTP + SSE via the Vercel
mcp-handleradapter (@vercel/mcp-adapter).Stack: Next.js (App Router) + TypeScript, deploys to Vercel.
Endpoint: a single route handler at
app/api/[transport]/route.ts.
Connector URLs
Once deployed to https://<your-app>.vercel.app:
Transport | URL |
Streamable HTTP (recommended) |
|
SSE (legacy clients) |
|
SSE resumability across serverless invocations needs Redis. It is optional — leave
REDIS_URLunset and the Streamable HTTP path (/api/mcp) works fully without it.
TikTok OAuth helper endpoints
Endpoint | Purpose |
| Redirects to TikTok to authorize and generate a token. |
| Shows the resulting |
Start here to get your token: https://<your-app>.vercel.app/api/tiktok/auth
Related MCP server: meta-mcp
Tools
See tools.md for full parameter and return details.
Tool | What it does |
| IG followers, media count, name, bio, profile picture |
| IG reach, profile views, follower growth over a period |
| Recent IG posts with per-post likes / comments / reach |
| FB Page impressions, post engagements, fan count |
| TikTok followers, following, likes, video count |
| Recent TikTok videos with views / likes / comments / shares |
| Aggregated headline numbers across IG + FB + TikTok |
Environment variables
Copy .env.example to .env.local for local dev, or set these in
Vercel → Project → Settings → Environment Variables.
Variable | Required? | Description |
| for Meta/IG tools | Long-lived Meta access token with the permissions below. |
| for IG tools | Instagram Business/Creator account id (numeric, not the |
| for FB tool | Facebook Page id linked to the IG account. |
| optional | App id — only for token debugging / |
| optional | App secret — only for token debugging / |
| for TikTok tools | User access token from TikTok Login Kit OAuth. |
| for OAuth helper | TikTok app client key. Used by |
| for OAuth helper | TikTok app client secret. Used by |
| optional | Override the OAuth redirect URI. Defaults to |
| optional | If set, the MCP endpoint requires |
| optional | Enables SSE resumability. Not needed for Streamable HTTP. |
The build never reads tokens.
npm run buildmakes no API calls and passes with no env vars set; tokens are only used at request time.
Meta prerequisites
An Instagram Business or Creator account, linked to a Facebook Page.
A Meta app with these permissions granted on the token:
instagram_basic,instagram_manage_insights,pages_read_engagement,pages_show_list,read_insights(andbusiness_managementif using a Business portfolio).A long-lived token (short-lived tokens expire in ~1 hour). Exchange via:
GET https://graph.facebook.com/v21.0/oauth/access_token?grant_type=fb_exchange_token&client_id=<APP_ID>&client_secret=<APP_SECRET>&fb_exchange_token=<SHORT_LIVED_TOKEN>You usually only need
META_ACCESS_TOKEN. The server auto-discovers the rest: it callsGET /me/accountsto find the Page you manage (and its Page access token, which Page insights require) and the linked Instagram Business account id.META_PAGE_ID/META_IG_USER_IDare optional overrides — if set and valid they win; if missing or wrong they are auto-resolved. Each tool's output reports which id was used and itssource(env vs discovered). To set them explicitly:GET https://graph.facebook.com/v21.0/me/accounts?access_token=<TOKEN>(Page id), thenGET https://graph.facebook.com/v21.0/<PAGE_ID>?fields=instagram_business_account&access_token=<TOKEN>(IG user id).
TikTok prerequisites
The TikTok portal only gives you a Client Key + Client Secret — the access token must come from the Login Kit OAuth flow. This app includes a helper to do that for you:
A TikTok developer app with Login Kit and the Display API enabled.
Set
TIKTOK_CLIENT_KEYandTIKTOK_CLIENT_SECRETin Vercel (+ optionallyTIKTOK_REDIRECT_URI) and deploy.In your TikTok app, register the Redirect URI:
https://social-mcp-connector.vercel.app/api/tiktok/callback(it must match exactly — including https and no trailing slash differences).Add the scopes:
user.info.basic,user.info.profile,user.info.stats,video.list.Sandbox mode: add your TikTok account as a target user in the app's sandbox, otherwise authorization fails with a scope/permission error.
Visit
https://social-mcp-connector.vercel.app/api/tiktok/authin a browser. It redirects you to TikTok to authorize, then the callback page displays youraccess_token,refresh_token,expires_in, andopen_id.Copy the
access_tokeninto Vercel asTIKTOK_ACCESS_TOKENand redeploy.
The OAuth helper never logs or stores tokens — it only renders them once on the callback page for you to copy.
Deploy to Vercel
Push this repo to GitHub (already done if you cloned it from
davolu).In Vercel, Add New → Project and import the repo. Framework preset: Next.js (auto-detected). No build settings to change.
Add the environment variables above under Settings → Environment Variables (Production + Preview).
Deploy. Your MCP endpoints are then:
https://<your-app>.vercel.app/api/mcphttps://<your-app>.vercel.app/api/sse
Local dev (optional): npm install then npm run dev (do not commit .env.local).
Add the connector in Claude Desktop
Open Claude Desktop → Settings → Connectors.
Click Add custom connector.
Name:
Social MCP(anything).URL: paste your Streamable HTTP endpoint:
https://<your-app>.vercel.app/api/mcpIf you set
MCP_AUTH_TOKEN, add an Authorization header with the valueBearer <your-MCP_AUTH_TOKEN>(in Claude Desktop's connector auth field, or the OAuth/headers section). IfMCP_AUTH_TOKENis unset, leave auth empty.Save / Connect. The seven tools above will appear and you can start asking questions like "Give me a social_overview" or "Show my recent Instagram media."
ChatGPT: use Settings → Connectors → Create / Add custom connector and paste the same
/api/mcpURL (plus the bearer token if configured).
Robustness notes
Every tool checks for its required token first and returns a clear message (e.g.
❌ TIKTOK_ACCESS_TOKEN is not set...) rather than throwing.A small fetch helper (
lib/fetcher.ts) adds a 20s timeout and normalises Meta and TikTok API error shapes (expired token, missing permission, rate limit) into readable messages.A single tool/API failure never crashes the server;
social_overviewreturns partial results with per-platform errors inline.
Security
Tokens are read from server-side env vars only and are never sent to the browser or included in responses.
.env*is git-ignored (except.env.example); no secrets are committed.Set
MCP_AUTH_TOKENto require a shared-secret bearer token on the endpoint.
This 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.
Latest Blog Posts
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/davolu/social-mcp-connector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server