SocialAPIs

v2.2.0
io.github.SocialAPIsHub/social-media-api Checked 4 days ago Published 1 month ago

Facebook & Instagram data for AI agents: pages, posts, groups, ads, Marketplace, profiles, reels.

Values you need

VariableWhat it is
SOCIALAPIS_API_KEYrequired secret Your SocialAPIs API key. Get yours at https://socialapis.io/dashboard
MCP_PROXY_URLoptional MCP proxy server URL (optional) Default: https://mcp.socialapis.io

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add social-media-api -e 'SOCIALAPIS_API_KEY=<SOCIALAPIS_API_KEY>' -- npx -y --package=@socialapis/mcp@2.2.0 socialapis-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "social-media-api": {
      "args": [
        "-y",
        "--package=@socialapis/mcp@2.2.0",
        "socialapis-mcp"
      ],
      "command": "npx",
      "env": {
        "SOCIALAPIS_API_KEY": "<SOCIALAPIS_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "social-media-api": {
      "args": [
        "-y",
        "--package=@socialapis/mcp@2.2.0",
        "socialapis-mcp"
      ],
      "command": "npx",
      "env": {
        "SOCIALAPIS_API_KEY": "<SOCIALAPIS_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SOCIALAPIS_API_KEY",
      "id": "socialapis-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "social-media-api": {
      "args": [
        "-y",
        "--package=@socialapis/mcp@2.2.0",
        "socialapis-mcp"
      ],
      "command": "npx",
      "env": {
        "SOCIALAPIS_API_KEY": "${input:socialapis-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.social-media-api]
command = "npx"
args = ["-y", "--package=@socialapis/mcp@2.2.0", "socialapis-mcp"]
env = { "SOCIALAPIS_API_KEY" = "<SOCIALAPIS_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http social-media-api https://mcp.socialapis.io/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "social-media-api": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.socialapis.io/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "social-media-api": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://mcp.socialapis.io/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "social-media-api": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://mcp.socialapis.io/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.social-media-api]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.socialapis.io/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: SOCIALAPIS_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json