npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@andrewlwn77/social-media-mcp

v1.0.0

Published

MCP server for downloading content from social media platforms

Downloads

16

Readme

Social Media MCP

A Model Context Protocol (MCP) server for downloading content from social media platforms.

Features

  • Download videos, images, and audio from major social media platforms
  • Support for TikTok, Instagram, Facebook, Twitter, YouTube, Pinterest, and LinkedIn
  • In-memory caching to reduce API calls
  • Comprehensive error handling
  • URL validation for supported platforms

Installation

npm install @andrewlwn77/social-media-mcp

Configuration

Set up your environment variables:

export SOCIAL_DOWNLOAD_API_KEY="your-rapidapi-key-here"
export CACHE_ENABLED="true"                 # Optional, default: true
export CACHE_TTL_SECONDS="300"             # Optional, default: 300 (5 minutes)
export CACHE_MAX_ENTRIES="100"             # Optional, default: 100

Get your API key from RapidAPI - Social Download All In One

MCP Configuration

Add to your Claude Code .mcp.json:

{
  "mcpServers": {
    "social-media-mcp": {
      "command": "npx",
      "args": ["-y", "@andrewlwn77/social-media-mcp"],
      "transport": {
        "type": "stdio"
      },
      "env": {
        "SOCIAL_DOWNLOAD_API_KEY": "your-rapidapi-key-here",
        "CACHE_ENABLED": "true",
        "CACHE_TTL_SECONDS": "300",
        "CACHE_MAX_ENTRIES": "100"
      }
    }
  }
}

Supported Platforms

  • TikTok: https://www.tiktok.com/@username/video/123456789
  • Instagram: https://www.instagram.com/p/ABC123/
  • Facebook: https://www.facebook.com/user/posts/123456789
  • Twitter/X: https://twitter.com/user/status/123456789 or https://x.com/user/status/123456789
  • YouTube: https://www.youtube.com/watch?v=ABC123 or https://youtu.be/ABC123
  • Pinterest: https://www.pinterest.com/pin/123456789
  • LinkedIn: https://www.linkedin.com/posts/user-123456789

Usage

The MCP server provides one tool:

download_social_content

Download content from social media URLs.

Parameters:

  • url (string, required): Social media URL to download content from

Example:

{
  "url": "https://www.tiktok.com/@username/video/123456789"
}

Response: Returns formatted text with:

  • Platform information (TikTok, Instagram, etc.)
  • Content title and author
  • High-quality thumbnail URL
  • Multiple download options with quality levels:
    • HD videos without watermarks
    • Standard quality videos
    • Audio-only versions
  • File sizes in MB
  • Content duration

Example Response:

**Social Media Content Download**

**Platform**: Tiktok
**Source URL**: https://www.tiktok.com/@username/video/123456789

**Title**: Amazing video title #hashtag
**Thumbnail**: https://thumbnail-url.jpg

**Available Downloads**:
1. **VIDEO** (hd_no_watermark) (14.22MB): https://download-link-hd.mp4
2. **VIDEO** (no_watermark) (10.09MB): https://download-link-standard.mp4
3. **AUDIO** (audio): https://audio-download-link.mp3

**Duration**: 88s

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

Error Handling

The server provides comprehensive error handling for:

  • Invalid URL formats
  • Unsupported platforms
  • Private or restricted content
  • API rate limits
  • Network errors
  • Authentication issues

Caching

The server includes an in-memory LRU cache with TTL support to:

  • Reduce API calls for duplicate requests
  • Improve response times
  • Respect rate limits
  • Store successful download results

License

MIT

Support

For issues and questions, please visit the GitHub repository.