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.0.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.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_tunde_alao_social_mcp-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 642f415a89139ff17816c1077498c4e286567b09c768592605c811992a8b5993
MD5 577cc504a4e30fabb80de85ef08a94c1
BLAKE2b-256 3ffa96bf6b6fa4b5512490d106b1801afa93f14b2e5ee309683e0af6aadfb3a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iflow_mcp_tunde_alao_social_mcp-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e39641ffefe00739aa957fed6664ec37c8a7993e206c2388fc0327a5dab4151
MD5 fbe96d87793432458530a0b4082aa36e
BLAKE2b-256 8fce69f14a0efa1c74df4d440c0f9b54674c159c315e32fe0211c6e7029696fe

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