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.1.tar.gz (4.7 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.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_tunde_alao_social_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 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.1.tar.gz
Algorithm Hash digest
SHA256 0c1ecb3b3916ec41337ca76d076a301a8a0cbbc883014e5f038a28fce0951729
MD5 36ebf31ac425123bfbf88a53de9025b8
BLAKE2b-256 fab3f889bc7b7a8a496c9f9901c70422fb41c65319f657f76be0e60353c6b766

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iflow_mcp_tunde_alao_social_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 671cbd23c847dea5a76bee18fe25f527f0d06289a94b1bbd5c6df4ab4c19d1b4
MD5 6ff9388780f3ff4bd567e7e304976ae9
BLAKE2b-256 d709ae8227372eb2277832a9e695d377bdaff4b1453caaa11c0f2115dc2074db

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