Skip to main content

MCP server for extracting transcripts from social media content

Project description

Social MCP

A Model Context Protocol (MCP) server for social media integration, specifically Instagram transcript extraction using AssemblyAI.

Prerequisites

Install uv

On Mac:

brew install uv

On Windows:

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

After installation on Windows, add uv to your PATH:

set Path=C:\Users\nntra\.local\bin;%Path%

Environment Setup

  1. Create a .env file in the project root with your AssemblyAI API key:
# Get your API key from: https://www.assemblyai.com/
ASSEMBLYAI_API_KEY=your_assemblyai_api_key_here
  1. Get your AssemblyAI API key:
    • Sign up at AssemblyAI
    • Go to your dashboard and copy your API key
    • Add it to the .env file

Claude Desktop Integration

To use this MCP server with Claude Desktop, you need to add it to your Claude Desktop configuration.

  1. Open your Claude Desktop configuration file:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the following configuration to your mcpServers section (replace /path/to/your/social-mcp with the actual path to this project folder):

{
  "mcpServers": {
    "social": {
      "command": "/Users/your-username/.local/bin/uv",
      "args": ["--directory", "/path/to/your/social-mcp", "run", "main.py"]
    }
  },
  "globalShortcut": ""
}

Important: Make sure to replace:

  • /path/to/your/social-mcp with the actual path to where you cloned/downloaded this project
  • /Users/your-username/.local/bin/uv with the correct path to your uv installation (on Windows this would typically be C:\Users\your-username\.local\bin\uv.exe)
  1. Save the file and restart Claude Desktop

Usage

Once configured, the Social MCP server will be available in Claude Desktop. You can use it to:

  • Extract transcripts from Instagram videos/reels by providing Instagram URLs
  • Get timestamped transcriptions with speaker labels
  • Process various Instagram URL formats (posts, reels, IGTV)

Example

Extract transcript from: https://instagram.com/reel/ABC123/

The server will:

  1. Extract the video URL from the Instagram post
  2. Use AssemblyAI to transcribe the audio
  3. Return a formatted transcript with timestamps and speaker labels

Development

This project uses uv for dependency management. The dependencies are defined in pyproject.toml and the lockfile is uv.lock.

To run the server locally:

uv run main.py

Features

  • ✅ Instagram URL validation and processing
  • ✅ Direct video URL extraction using instaloader
  • ✅ AssemblyAI transcription with speaker labels
  • ✅ Timestamp formatting
  • ✅ Environment variable configuration
  • ✅ Comprehensive error handling

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_tunde_alao_social_mcp-0.1.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_tunde_alao_social_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: iflow_mcp_tunde_alao_social_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_tunde_alao_social_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d6e06c7f33eb2237f94ae4646b99a30e5217db6530466cac66dd5b59cd714a40
MD5 291d0075384c21b0b4d011d7b435cb19
BLAKE2b-256 7d9792ee6cfcf94247ed8d44875c6703383eb6e9bded8133a9b17df0a437bfb0

See more details on using hashes here.

File details

Details for the file iflow_mcp_tunde_alao_social_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_tunde_alao_social_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_tunde_alao_social_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 981bd8f1104020ef21d520bf5ded8b083a5c920f77e67f59fbab7fbea7a63531
MD5 99545c4d36ca0bdeddf1f145cbb58837
BLAKE2b-256 2be9d4c1f1bde29291e93463101928b01ccb7d22b732bc3ab846a38fc4734927

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page