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
- Create a
.envfile 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
- Get your AssemblyAI API key:
- Sign up at AssemblyAI
- Go to your dashboard and copy your API key
- Add it to the
.envfile
Claude Desktop Integration
To use this MCP server with Claude Desktop, you need to add it to your Claude Desktop configuration.
-
Open your Claude Desktop configuration file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Mac:
-
Add the following configuration to your
mcpServerssection (replace/path/to/your/social-mcpwith 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-mcpwith the actual path to where you cloned/downloaded this project/Users/your-username/.local/bin/uvwith the correct path to your uv installation (on Windows this would typically beC:\Users\your-username\.local\bin\uv.exe)
- 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:
- Extract the video URL from the Instagram post
- Use AssemblyAI to transcribe the audio
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters