A unified API wrapper that lets Claude pull data from Facebook pages, groups, and posts without dealing with OAuth complexity. You get tools to extract page IDs from URLs, fetch follower counts and engagement metrics, retrieve posts with time filters, and pull comments with pagination. The MCP client runs locally while routing requests through their hosted proxy to api.socialapis.io. Useful when you need to monitor brand mentions, compare competitor engagement rates, or analyze comment sentiment across Facebook properties. Requires a SocialAPIs API key with a free tier of 200 requests per month. Instagram, TikTok, and YouTube support are on the roadmap but not yet available.
npm install -g @socialapis/mcp
Add to your Claude Desktop config:
macOS:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
notepad %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"socialapis": {
"command": "npx",
"args": ["-y", "@socialapis/mcp", "YOUR_API_KEY"]
}
}
}
# Set environment variable
export SOCIALAPIS_API_KEY=your_api_key_here
# Run without argument
npx @socialapis/mcp
# Copy example file
cp .env.example .env
# Edit with your values
nano .env
.env file:
SOCIALAPIS_API_KEY=your_api_key_here
MCP_PROXY_URL=https://mcp.socialapis.io
| Variable | Description | Default |
|---|---|---|
SOCIALAPIS_API_KEY | Your SocialAPIs API key | None (required) |
MCP_PROXY_URL | MCP proxy server URL | https://mcp.socialapis.io |
PORT | HTTP server port | 3001 |
API_BASE_URL | Backend API URL | https://api.socialapis.io |
YOUR_API_KEY in configRestart Claude Desktop and ask:
Get Nike's Facebook page details
facebook_get_page_id - Extract page ID from URLfacebook_get_page_details - Get page info, followers, likesfacebook_get_page_posts - Fetch posts with time filteringfacebook_get_page_reels - Get reels/short videosfacebook_get_group_id - Extract group ID from URLfacebook_get_group_details - Get group metadatafacebook_get_group_posts - Fetch group postsfacebook_get_post_id - Extract post ID from URLfacebook_get_post_details - Get reactions, comments, sharesfacebook_get_post_attachments - Get media attachmentsfacebook_get_video_details - Get video metadatafacebook_get_post_comments - Fetch comments with paginationMore platforms coming soon: Instagram, TikTok, YouTube, Twitter
Monitor Nike's Facebook page and alert me if engagement drops below average
Compare engagement rates between Nike, Adidas, and Puma over the last month
What types of posts get the most engagement on Coca-Cola's Facebook page?
Analyze comments on our recent posts and identify common themes
Claude Desktop
↓
@socialapis/mcp (local MCP client)
↓
https://mcp.socialapis.io (global proxy)
↓
https://api.socialapis.io (data API)
Why this architecture?
# Clone repository
git clone https://github.com/SocialAPIsHub/mcp-server.git
cd mcp-server
# Install dependencies
npm install
# Run MCP client
npm start YOUR_API_KEY
# Run HTTP proxy server
npm run serve
mcp-server/
├── src/
│ └── tools.js # Tool definitions
├── mcp-wrapper.js # MCP client (runs locally)
├── server.js # HTTP proxy server
├── package.json
├── Dockerfile
└── README.md
# Test MCP client locally
node mcp-wrapper.js YOUR_API_KEY
# Test HTTP proxy
curl http://localhost:3001/health
curl http://localhost:3001/tools
# Test specific tool
curl -X POST http://localhost:3001/proxy \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tool":"facebook_get_page_details","arguments":{"link":"https://facebook.com/nike"}}'
| Plan | Requests/Month | Price |
|---|---|---|
| Free | 200 | $0 |
| Starter | 30,000 | $49 |
| Pro | 120,000 | $179 |
| Enterprise | Unlimited | Custom |
We welcome contributions! Please see CONTRIBUTING.md for details.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
SOCIALAPIS_API_KEY*secretYour SocialAPIs API key. Get yours at https://socialapis.io/dashboard
MCP_PROXY_URLdefault: https://mcp.socialapis.ioMCP proxy server URL (optional)
io.github.xpaysh/social-media
com.thenextgennexus/youtube-media-mcp-server
io.github.ludmila-omlopes/youtube-video-analyzer
csoai-org/social-media-ai-mcp
com.ezbizservices/social-media
io.github.wolflangis/video-loom