SuperAPIAI Directory

mcp-server

github.com · AI developer platforms

SocialAPIs MCP Server is a Facebook and Instagram public data interface for AI agents, offering both local (npx) and hosted (remote MCP) access methods. It covers 50 operations through 12 read-only tools, spanning data such as Pages, Posts, Groups, Ads Library, Marketplace, Profiles, and Reels. Tool calls require a SocialAPIs API key, return structured results with credit consumption information, and are suitable for use in MCP-capable clients such as Claude Desktop, Cursor, and Cline.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose: This MCP Server wraps Facebook and Instagram public data as tools callable by AI agents, enabling clients such as Claude and Cursor to query content including Pages, Posts, Groups, Ads Library, Marketplace, Profiles, and Reels. Currently only Facebook and Instagram are supported; TikTok, X/Twitter, LinkedIn, and YouTube are on the roadmap, but no definite timeline is provided.

Main capabilities: Provides 12 read-only tools covering 50 operations. Each tool is grouped by resource, with the specific operation selected via the action parameter, and each operation corresponds to a REST endpoint on api.socialapis.io. Facebook supports 7 tools and 37 operations (Pages, Groups, Posts, Search, Ads Library, Marketplace, Media); Instagram supports 5 tools and 13 operations (Profiles, Posts, Reels, Highlights, Discovery/Locations). All tools are marked with readOnlyHint, so clients can skip confirmation prompts; each tool declares an output schema and returns { result, creditsCharged, creditsRemaining }, making it easy for agents to track credit consumption.

Usage: Two access methods are supported. Hosted method (remote MCP, Streamable HTTP) requires no installation; point a client that supports remote MCP to https://mcp.socialapis.io/mcp,并在请求头中携带 SocialAPIs API key (x-api-token: YOUR_API_KEY also works); the tool list can be retrieved without a key, but calling tools requires a key. Local method (npx, stdio) can be added to the Claude Desktop configuration, with the key configured via command-line arguments, environment variables, or a .env file. Cursor provides a one-click install button; after installation, replace YOUR_API_KEY in the configuration with your actual key. Before use, register at socialapis.io, go to the Dashboard to copy the API key, and restart the client. Example call: facebook_page with {"action": "posts", "link": "https://www.facebook.com/nike", "limit": 9}. After upgrading from 1.x, the old endpoint-named tools (such as facebook_get_page_details, instagram_get_profile_posts) can still be called directly but are no longer listed; if the client auto-approves tools by name, the new names need to be added.

Configuration and catalog sync: On startup, the server reads the public endpoint catalog (3-second timeout), then reads it every 10 minutes thereafter, comparing it with src/catalogBaseline.json and applying only changes: new prices replace the Pricing sentence in tool descriptions, description or parameter changes replace the original content, added or removed parameters are synced accordingly, and the action of a disabled endpoint displays "Currently unavailable." Tool and action names remain unchanged; new endpoints become tools only after a new version is released. If the catalog cannot be read or a change causes two action parameters to conflict, the last valid definition is retained. GET /health displays catalog: { source, version, fetchedAt, routes }. The npm client re-reads the tool list every 10 minutes and sends notifications/tools/list_changed when it changes. After updating tools.js, you can use node scripts/snapshot-catalog.mjs --from https://auth.socialapis.io/api/public/endpoints Refresh baseline.

Use cases: suitable for scenarios where an AI agent needs to obtain public Facebook/Instagram data and perform a single query or multi-step orchestration, such as querying page posts, retrieving profiles, searching the ad library, etc. Some natural-language queries (such as "compare engagement over the past month") require aggregation, but the API does not yet provide a single-tool aggregation endpoint; Claude can still answer, but it will split the request into multiple tool calls, which is slower and more costly; if precomputed aggregation is needed, contact support.

Limitations: only Facebook and Instagram are supported; all tools are read-only; calls require an API key; most tools consume 1 credit per call, with specific pricing in each tool description and the current plan at socialapis.io/pricing; the hosted service claims 99.9% availability, a global edge network, automatic rate limiting, and intelligent caching, but no independently verified information is provided. The project uses the MIT License.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools