Install
$ agentstack add mcp-socialapishub-mcp-server β scanned Β· β verified β works with Claude Code, Cursor, and more.
Security review
β PassedNo issues found. Passed automated security review. Β· v1.0.1 How review works β
- β Prompt-injection patterns
- β Secret / credential exfiltration
- β Dangerous shell & filesystem operations
- β Untrusted network calls
- β Known-malicious package signatures
What it can access
- β Network access Used
- β Filesystem access No
- β Shell / process execution No
- β Environment & secrets Used
- β Dynamic code execution No
From automated source analysis of v1.0.1. βUsedβ means the capability is present in the source β more access means more to trust, not that itβs unsafe.
About
SocialAPIs MCP Server
Unified social media API for AI agents
[](https://www.npmjs.com/package/@socialapis/mcp) [](https://opensource.org/licenses/MIT) [](https://github.com/SocialAPIsHub/mcp-server/stargazers)
Website β’ Documentation β’ Discord β’ npm
Official SDKs: Python β’ JavaScript / TypeScript β’ Go
π Quick Start
Installation
npm install -g @socialapis/mcp
Configuration
Add to your Claude Desktop config:
macOS:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
notepad %APPDATA%\Claude\claude_desktop_config.json
π§ Configuration
Method 1: Command Line Argument (Recommended for Claude Desktop)
{
"mcpServers": {
"socialapis": {
"command": "npx",
"args": ["-y", "@socialapis/mcp", "YOUR_API_KEY"]
}
}
}
Method 2: Environment Variable
# Set environment variable
export SOCIALAPIS_API_KEY=your_api_key_here
# Run without argument
npx @socialapis/mcp
Method 3: .env File (For Development)
# 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
Environment Variables
| 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 |
Get API Key
- Sign up at socialapis.io
- Go to Dashboard
- Copy your API key
- Replace
YOUR_API_KEYin config
Test It
Restart Claude Desktop and ask:
Get Nike's Facebook page details
π Features
- π Unified API - One interface for multiple platforms
- π€ AI-First - Built for Claude, Cursor, and AI agents
- π Rich Data - Posts, comments, engagement metrics
- π Advanced Filtering - Time ranges, pagination
- π― Simple Auth - No OAuth complexity
- β‘ Fast - Global edge network
- π Secure - API keys stay local
π οΈ Available Tools
47 tools across Facebook and Instagram. Every tool maps 1:1 to a REST endpoint on api.socialapis.io β pricing notes in each tool description indicate per-call credit cost.
Facebook β Pages
facebook_get_page_idβ Extract page ID from URLfacebook_get_page_detailsβ Page info, followers, likes, category. Setexact_followers_count=truefor the exact integer (charges 5 credits instead of 1)facebook_get_page_postsβ Fetch posts withafter_time/before_timefor date filtering.limit3-9, charges scale perceil(returned / 3)facebook_get_page_videosβ Page videos,limit6-12facebook_get_page_reelsβ Reels / short videos
Facebook β Groups
facebook_get_group_idβ Extract group ID from URLfacebook_get_group_detailsβ Full details (members, description, rules)facebook_get_group_postsβ Group posts, samelimit+ date filtering as page postsfacebook_get_group_videosβ Group videos with pagination
Facebook β Posts
facebook_get_post_idβ Extract post ID from URLfacebook_get_post_detailsβ Reactions, comments count, shares, mediafacebook_get_post_details_extendedβ Extended fields: view counts (essential for reels / video posts), video URLs, music/audio metadata, author verificationfacebook_get_post_attachmentsβ Full media attachments (5 credits per call)facebook_get_video_detailsβ Video post metadata + statsfacebook_get_post_commentsβ Top-level comments,limitup to 30facebook_get_comment_repliesβ Replies to a specific comment
Facebook β Search
facebook_search_pagesβ Search pages by keyword + optional location filterfacebook_search_peopleβ Search public profiles by keywordfacebook_search_locationsβ Look up Facebook location UIDs (for use in other endpoints)facebook_search_postsβ Search posts by keyword, recency, locationfacebook_search_videosβ Search Facebook Watch videos
Facebook β Ads Library (Meta Ad Transparency)
facebook_ads_searchβ Search ads by keyword, country, statusfacebook_ads_page_detailsβ All ads from a specific pagefacebook_ads_archive_detailsβ Full ad archive detailsfacebook_ads_keywordsβ Search ads by keywordfacebook_ads_countriesβ List of supported country codes
Facebook β Marketplace
facebook_marketplace_searchβ Item search with location, price, category, condition filtersfacebook_marketplace_listingβ Single listing detailsfacebook_marketplace_sellerβ Seller profile + their listingsfacebook_marketplace_categoriesβ Browse category hierarchyfacebook_marketplace_city_coordinatesβ Lat/long for a city (for radius search)facebook_marketplace_vehiclesβ Vehicle-specific listing searchfacebook_marketplace_rentalsβ Rental property listings
Facebook β Media
facebook_download_mediaβ Direct download URL for FB media (images, videos)
Instagram β Profile
instagram_get_user_idβ Resolve username β numeric IDinstagram_get_profile_detailsβ Profile info, follower count, bio, post countinstagram_get_profile_postsβ Recent posts from a profileinstagram_get_profile_reelsβ Reels from a profileinstagram_get_profile_highlightsβ Story highlights listinstagram_get_highlight_detailsβ Full content of a specific highlight
Instagram β Posts + Reels
instagram_get_post_idβ Resolve post URL β IDinstagram_get_post_detailsβ Likes, comments, media, captioninstagram_get_reels_feedβ Reels feed for a profileinstagram_get_reels_by_audioβ Reels using a specific audio/music ID
Instagram β Discovery
instagram_popular_searchβ Trending queries / suggestionsinstagram_get_location_postsβ Posts tagged at a specific locationinstagram_get_nearby_locationsβ Nearby location IDs (for use in location-posts)
Coming soon
- TikTok (videos, profiles, hashtags)
- X / Twitter (tweets, profiles, search)
- LinkedIn (company pages, posts, employees)
- YouTube (videos, channels, comments)
Track the platform roadmap at socialapis.io/api-sources.
π‘ Usage examples
Each prompt below is a real Claude Desktop session. Some of these are single-tool-call patterns ("get me X"); some require Claude to chain multiple calls + aggregate the results (noted where).
Single-call patterns (fast, cheap)
What's Nike's follower count on Facebook?
β Uses facebook_get_page_details (1 credit)
Get the latest 9 posts from facebook.com/EngenSA
β Uses facebook_get_page_posts with limit=9 (1-3 credits depending on actual returned count)
Show me the Meta ads currently running for "Apple Vision Pro" in Germany
β Uses facebook_ads_search (1 credit)
Multi-call patterns (Claude orchestrates these β but it's slower + more expensive)
Compare engagement on Nike vs Adidas's last 9 Facebook posts
β Claude calls facebook_get_page_posts twice (~2-6 credits total),
aggregates reactions/comments/shares per post, returns a comparison.
What are people saying in the comments on Coca-Cola's last 3 posts?
β Claude calls facebook_get_page_posts (1 credit) then
facebook_get_post_comments 3 times (3 credits) and summarizes.
Show me marketplace listings for "PlayStation 5" under $400 in Berlin
β Claude calls facebook_marketplace_city_coordinates (1 credit) +
facebook_marketplace_search with filters (1 credit).
What this MCP server does NOT do
Some queries look natural in a chat ("compare engagement over the last month") but require aggregations the API doesn't expose as a single tool yet. Claude can still answer them, but it'll fan out into many tool calls β which is slow + expensive.
| Query shape | Why it's hard | |---|---| | "Engagement rate over the last 30 days" for a page | Requires fetching every post in the date range (paginated, limit capped at 9 per call) and computing engagement per post. Hits the LLM tool-call budget on busy pages. | | "Compare engagement rates between Brand A, B, C over the last month" | Same problem, 3Γ β one paginated fetch per brand, then comparison math. Works for small windows; slow for "last month" on high-volume pages. | | Historical archive older than what Facebook itself serves | We surface what Facebook makes publicly visible. Posts that scrolled off Facebook's visible feed aren't retrievable. | | Server-side time-series (daily engagement, weekly growth) | Not yet β on the roadmap as a future engagement-stats endpoint with built-in aggregation. |
If your use case maps to one of these patterns and you want the aggregation pre-computed instead of LLM-orchestrated, contact support with the specific query β we're prioritizing the aggregation endpoint based on customer demand.
ποΈ Architecture
Claude Desktop
β
@socialapis/mcp (local MCP client)
β
https://mcp.socialapis.io (global proxy)
β
https://api.socialapis.io (data API)
Why this architecture?
- β Low latency (global edge network)
- β High reliability (99.9% uptime)
- β Auto rate limiting
- β Smart caching
- β Your API key stays local
π§ Development
Local Setup
# 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
Project Structure
mcp-server/
βββ src/
β βββ tools.js # Tool definitions
βββ mcp-wrapper.js # MCP client (runs locally)
βββ server.js # HTTP proxy server
βββ package.json
βββ Dockerfile
βββ README.md
Testing
# 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"}}'
π Pricing
| Plan | Requests/Month | Price | |------|----------------|-------| | Free | 200 | $0 | | Starter | 30,000 | $49 | | Pro | 120,000 | $179 | | Enterprise | Unlimited | Custom |
π€ Contributing
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
Quick Contribution Guide
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
π Documentation
π¬ Support
- π§ Email: [support@socialapis.io](mailto:support@socialapis.io)
- π¬ Discord: discord.gg/D5bQskrwV
- π Issues: GitHub Issues
- π Docs: docs.socialapis.io
πΊοΈ Roadmap
Shipped:
- [x] Facebook API support β 31 tools (Pages, Groups, Posts, Search, Ads Library, Marketplace, Media)
- [x] Instagram support β 16 tools (Profiles, Posts, Reels, Highlights, Discovery / Locations)
- [x] MCP server implementation
- [x] HTTP proxy server
- [x] npm package published β
@socialapis/mcp - [x] MCP Registry listing β registry.modelcontextprotocol.io
- [x] Python SDK β
socialapis-sdkon PyPI (51 endpoints, MIT) - [x] JavaScript / TypeScript SDK β
socialapis-sdkon npm (Node 18+, Bun, Deno, browsers) - [x] Go SDK β github.com/SocialAPIsHub/socialapis-go (idiomatic, zero deps)
Upcoming:
- [ ] TikTok support
- [ ] X (Twitter) support
- [ ] LinkedIn support
- [ ] YouTube support
- [ ] Advanced analytics β server-side aggregation endpoints (engagement-over-time, brand comparisons) so multi-call patterns become a single tool call
- [ ] Real-time webhooks β push notifications on new posts / engagement thresholds
- [ ] LangChain integration
Platform priorities shift based on customer demand. The fastest way to push something up the queue is to email [support@socialapis.io](mailto:support@socialapis.io) or DM @socialapis on Telegram with the use case.
π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
π Acknowledgments
- Built with Model Context Protocol
- Powered by Anthropic Claude
- Inspired by the AI agent community
π Star History
[](https://star-history.com/#SocialAPIsHub/mcp-server&Date)
Made with β€οΈ by the SocialAPIs Team
Website β’ Twitter β’ Discord
Python SDK β’ JS SDK β’ Go SDK
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source β we do not rehost the code.
- Author: SocialAPIsHub
- Source: SocialAPIsHub/mcp-server
- License: MIT
- Homepage: https://socialapis.io
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet β be the first.
Write a review
Versions
- v1.0.1 Imported from the upstream source.