Social Media API logo

Social Media API

Query public Facebook and Instagram profiles, posts, ads, Marketplace listings, media, comments, and location data through MCP.

Install Social Media API

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "social-media-api": {
      "command": "npx",
      "args": [
        "-y",
        "@socialapis/mcp"
      ],
      "env": {
        "SOCIALAPIS_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

social-media-api MCP server connects AI agents to SocialAPIs for read-only Facebook and Instagram data access. Its grouped tools cover pages, groups, posts, search, Ads Library, Marketplace, media downloads, profiles, reels, and locations, with pagination and action-specific filters. Run it locally through npx over stdio or connect to the hosted Streamable HTTP endpoint. Reach for it when an agent needs structured public social-media data without separate platform OAuth flows.

Use cases

  • Research Facebook pages and public groups
  • Monitor posts, comments, reactions, and video metrics
  • Search Meta Ads Library campaigns and advertisers
  • Compare Facebook Marketplace listings and rentals
  • Analyze Instagram profiles, reels, hashtags, and places

Key features

  • Facebook pages, groups, posts, comments, and media
  • Meta Ads Library search and advertiser details
  • Facebook Marketplace listings, vehicles, and rentals
  • Instagram profiles, posts, reels, highlights, and locations
  • Cursor-based pagination and date or location filters
  • Read-only structured tool outputs with credit tracking

Tools12

What Social Media API lets your agent do. Expand a tool for its parameters.

Verified live~8.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

23/27 checks healthy over the last 104d

What it can do

From the 12 tools this server returned when we ran it; 12 declare their own safety hints.

Makes network requests · 12Read-only tools · 12
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age307 days
Maintainers1

Observed 2026-10-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @socialapis/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads781Package downloads in the last 30 days.
Last commit24d agoMost recent push to the default branch.
Tools exposed12Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Social Media API works

What social-media-api does

social-media-api exposes SocialAPIs through MCP for retrieving public Facebook and Instagram data. The server organizes related operations into resource-oriented tools, with an action parameter selecting the requested operation. Responses include structured results along with credit usage information, allowing an agent to track the cost of calls.

Facebook coverage includes page and public-group profiles, identifiers, posts, videos, reels, albums, album media, comments, replies, post attachments, video metadata, and downloadable media URLs. Search tools find pages, people, posts, videos, and locations. Additional tools query Meta Ads Library data and Facebook Marketplace listings, vehicles, rentals, sellers, categories, and city coordinates.

Instagram tools retrieve profile details, IDs, posts, reels, highlights, highlight stories, individual post details, trending reels, reels using a specific audio track, keyword results, location-tagged posts, and nearby places.

How it works

Each action maps to a SocialAPIs API endpoint. Many workflows use an identifier from one action as the input to another: resolve a Facebook page or group ID before requesting albums, obtain a post ID before listing attachments, or retrieve Instagram’s long user_id and short pk for the relevant profile operations.

Paginated operations return a cursor for the next request. Date filters are available for Facebook page, group, and search results, while Marketplace searches support location, price, category, condition, radius, vehicle, and rental filters. Tool calls are read-only and expose output schemas.

Usage is credit-based. Most calls cost one credit, while some operations charge by result count or use a higher fixed cost, such as Facebook post attachments and exact follower counts. The tool descriptions expose the applicable pricing.

Setup and configuration

The server can run locally with npm and npx, or remotely through Streamable HTTP. The local package is @socialapis/mcp and can be installed globally with npm:

Terminal
npm install -g @socialapis/mcp

For a local stdio configuration, pass the API key as an argument:

config.json
{
  "mcpServers": {
    "socialapis": {
      "command": "npx",
      "args": ["-y", "@socialapis/mcp", "YOUR_API_KEY"]
    }
  }
}

The key can instead be supplied through SOCIALAPIS_API_KEY or a .env file. The hosted endpoint is https://mcp.socialapis.io/mcp; send the key as an Authorization: Bearer header or with x-api-token. Tool listing works without a key, but tool calls require one.

Optional configuration controls the proxy URL, HTTP port, backend API URL, endpoint catalog location, catalog refresh interval, and whether the live catalog is enabled. The server can update descriptions, parameters, prices, and availability from the catalog without changing tool or action names.

Tools and capabilities

  • Query Facebook pages and public groups, including posts, videos, reels, albums, and comments.
  • Search Facebook pages, people, posts, videos, and places.
  • Inspect Meta Ads Library advertisers, ads, countries, creatives, platforms, and archive details.
  • Search Facebook Marketplace items, vehicles, rentals, sellers, categories, and locations.
  • Resolve Facebook image, video, and audio links to downloadable file URLs.
  • Retrieve Instagram profiles, posts, reels, highlights, audio-based reel results, and location data.
  • Follow cursors for additional results and apply supported date, location, price, and engagement-related filters.

Limitations and notes

Only Facebook and Instagram data sources are live. TikTok, X/Twitter, LinkedIn, and YouTube are planned rather than available through the listed tools. The service returns download URLs for Facebook media instead of file bytes. Some actions require identifiers produced by earlier actions, and credit costs vary by operation and result size.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Social Media API

social-media-api is an MCP server that connects AI agents to SocialAPIs for public Facebook and Instagram data. Its main tools query pages, groups, posts, profiles, reels, comments, Ads Library records, Marketplace listings, searches, locations, and media URLs through structured, read-only actions.

Install the local package with `npm install -g @socialapis/mcp`, then configure an MCP client to run `npx -y @socialapis/mcp YOUR_API_KEY`. You can also use the hosted endpoint at `https://mcp.socialapis.io/mcp` with an API-key header.

It needs a SocialAPIs API key. Pass it as the local command argument, set `SOCIALAPIS_API_KEY`, or send it to the hosted endpoint as `Authorization: Bearer YOUR_API_KEY` or `x-api-token: YOUR_API_KEY`.

Yes, social-media-api works with Cursor. The repository provides a Cursor installation link, and Cursor can run the local npx configuration or connect to the hosted MCP endpoint with the required API-key header.

No, the available live tools cover Facebook and Instagram only. TikTok, X/Twitter, LinkedIn, and YouTube are listed as roadmap platforms and are not available through the current tool set.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSocial Media API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/social-media-api?style=directory)](https://allmcps.com/mcp/social-media-api)
HTML Embed
<a href="https://allmcps.com/mcp/social-media-api"><img src="https://allmcps.com/api/badge/social-media-api?style=directory" alt="Social Media API on AllMCPs" /></a>