beatport-scraper
Extracts metadata from Beatport track URLs, including preview audio URLs, cover artwork, and track information.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Beatport Metadata Extractor
Overview
This AWS Lambda function extracts metadata from Beatport track URLs, including preview audio URLs, cover artwork, and track information. It's designed to be deployed as a serverless function using the Serverless Framework with Docker containerization.
Related MCP server: Spotify MCP Server
Features
Track Metadata Extraction: Retrieves comprehensive track information from Beatport URLs
Audio Preview URLs: Extracts lofi/preview audio file URLs
Cover Artwork: Fetches high-quality cover image URLs (500x500)
Serverless Architecture: Runs on AWS Lambda with optimized performance
Docker-based Deployment: Uses container images for consistent execution environment
Example Usage
Input:
https://www.beatport.com/track/junin-shane-robinson-remix/7226500Output:
{
'data': {
'audio_url': 'https://geo-samples.beatport.com/track/09f9bd4d-10cd-4dbe-a084-8e91564c40d1.LOFI.mp3',
'image_url': 'https://geo-media.beatport.com/image_size/500x500/d6e0659f-7da9-4ebc-99dd-8f7e05a16214.jpg',
'platform': 'beatport',
'title': 'Jelly For The Babies - Junin (Shane Robinson Remix) [PHW Elements] | Music & Downloads on Beatport',
'url': 'https://www.beatport.com/track/junin-shane-robinson-remix/7226500'
}
}Prerequisites
Node.js (v14 or higher) and npm
AWS Account with appropriate credentials configured
AWS CLI configured with your credentials
Getting Started
1. Clone the Repository
git clone <your-repo-url>
cd <repo-name>2. Install Dependencies
Install Node.js dependencies (Serverless plugins):
npm installInstall Python dependencies:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt3. Configure Environment Variables
Create a .env file in the project root:
# Optional: Override default AWS region
AWS_REGION=us-east-14. Local Testing
Test the function locally without deploying:
make localOr run the handler directly:
make testDeployment
Deploy to AWS
Deploy to the development stage:
serverless deploy --stage devDeploy to production:
serverless deploy --stage prodThe deployment process will:
Build a Docker image from the Dockerfile
Push the image to AWS ECR
Create/update the Lambda function with the container image
Configure the function with 1024MB memory and 120s timeout
Invocation
After successful deployment, you can invoke the deployed function by using the following command:
serverless invoke --stage dev --function beatport --path tests/events/beatport.jsonOr using the Makefile shortcut:
make remoteWhich should result in a response similar to:
{
"data": {
"audio_url": "https://geo-samples.beatport.com/track/09f9bd4d-10cd-4dbe-a084-8e91564c40d1.LOFI.mp3",
"image_url": "https://geo-media.beatport.com/image_size/500x500/d6e0659f-7da9-4ebc-99dd-8f7e05a16214.jpg",
"platform": "beatport",
"title": "Jelly For The Babies - Junin (Shane Robinson Remix) [PHW Elements] | Music & Downloads on Beatport",
"url": "https://www.beatport.com/track/junin-shane-robinson-remix/7226500"
}
}Local Development
You can invoke your function locally by using the following command:
serverless invoke local --stage dev --function beatport --path tests/events/beatport.jsonOr using the Makefile:
make localAPI Endpoints
The Lambda function is exposed via HTTP API Gateway with both GET and POST support:
POST Request
curl -X POST https://your-api-url/beatport \
-H "Content-Type: application/json" \
-d '{"url": "https://www.beatport.com/track/junin-shane-robinson-remix/7226500"}'GET Request
curl "https://your-api-url/beatport?url=https://www.beatport.com/track/junin-shane-robinson-remix/7226500"Testing API Locally
# Set up environment variables in .env
API_URL=https://your-api-url/beatport
TEST_URL=https://www.beatport.com/track/junin-shane-robinson-remix/7226500
# Run the API test script
python tests/invoke_api.pyMCP Server (Claude Desktop Integration)
The Beatport scraper can be used as an MCP (Model Context Protocol) server, allowing Claude Desktop to extract metadata from Beatport tracks directly in conversations.
What is MCP?
MCP (Model Context Protocol) allows Claude Desktop to interact with external tools and services. This integration exposes the Beatport scraper as a tool that Claude can automatically use when you ask about Beatport tracks.
Quick Start
Install MCP dependencies:
pip install -r mcp_requirements.txtConfigure Claude Desktop:
Step 1: Locate your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
If the file doesn't exist, create it with
{}as the initial content.Step 2: Add the MCP server configuration:
For macOS/Linux:
{ "mcpServers": { "beatport-scraper": { "command": "/absolute/path/to/beatport-scraper/venv/bin/python3", "args": [ "/absolute/path/to/beatport-scraper/src/mcp/server.py" ] } } }For Windows with WSL:
{ "mcpServers": { "beatport-scraper": { "command": "wsl", "args": [ "-e", "/home/username/path/to/beatport-scraper/venv/bin/python3", "/home/username/path/to/beatport-scraper/src/mcp/server.py" ] } } }Important Notes:
Replace
/absolute/path/to/beatport-scraperwith your actual project pathFor WSL, use Linux paths (e.g.,
/home/username/...)Paths must be absolute, not relative
Test the configuration (optional):
Before restarting Claude Desktop, test that the MCP server works:
On macOS/Linux:
/path/to/beatport-scraper/venv/bin/python3 /path/to/beatport-scraper/src/mcp/server.pyOn Windows with WSL:
wsl -e /home/username/path/to/beatport-scraper/venv/bin/python3 /home/username/path/to/beatport-scraper/src/mcp/server.pyThe server should start and show a FastMCP banner. Press
Ctrl+Cto stop it.Restart Claude Desktop:
Fully quit Claude Desktop (don't just close the window)
On Windows: Right-click the system tray icon and select "Quit" or use Task Manager
On macOS: Right-click the dock icon and select "Quit"
Wait a few seconds, then relaunch Claude Desktop
Use it in Claude Desktop:
Once configured, simply ask Claude about Beatport tracks:
"Get metadata for this Beatport track: https://www.beatport.com/track/junin-shane-robinson-remix/7226500"
"Extract the audio preview URL from https://www.beatport.com/track/never-get-enough/15766697"
Claude will automatically use the MCP server to extract track information including title, preview audio URL, and cover image.
Testing the MCP Server
Test the MCP server independently before configuring Claude Desktop:
# Run the test suite
python tests/test_mcp.py
# Or test the MCP stdio protocol directly
python tests/test_mcp_stdio.py
# Or run the server directly (press Ctrl+C to stop)
python src/mcp/server.pyTroubleshooting
Claude Desktop doesn't see the MCP server:
Ensure you fully quit and restarted Claude Desktop (not just closed the window)
Check that paths in the config are absolute and correct
On Windows, verify WSL is working:
wsl echo "test"Test the command manually before adding to Claude Desktop config
Server fails to start:
Verify dependencies are installed:
pip install -r requirements_mcp.txtCheck Python path is correct:
which python3(in WSL/Linux) orwhere python(Windows)Ensure the virtual environment is activated when testing
Project Structure
.
├── Dockerfile # Container configuration for Lambda
├── Makefile # Common commands for testing and deployment
├── README.md # This file
├── package.json # Node.js dependencies (Serverless plugins)
├── requirements_prod.txt # Python dependencies
├── requirements_mcp.txt # MCP server dependencies
├── serverless.yml # Serverless Framework configuration
├── src/ # Source code
│ ├── handler.py # Lambda handler function
│ └── mcp/ # MCP server implementations
│ └── server.py # FastMCP server
└── tests/ # Test files
├── events/
│ └── beatport.json # Sample event for testing
├── test_invoke_lambda.py # Lambda invocation script
├── test_invoke_api.py # API HTTP request script
└── test_mcp_stdio.py # MCP server test suiteConfiguration
Lambda Function Settings
The function is configured with the following settings (defined in serverless.yml):
Runtime: Python 3.11 (via Docker container)
Timeout: 120 seconds
Memory: 1024 MB
Ephemeral Storage: 512 MB
Platform: linux/amd64
Serverless Plugins
serverless-prune-plugin: Automatically removes old Lambda versions (keeps last 2)serverless-dotenv-plugin: Loads environment variables from .env files
Troubleshooting
Docker Issues
If you encounter Docker-related errors during deployment:
# Ensure Docker is running
docker ps
# Build image locally to test
docker build -t beatport-test .AWS Credentials
Ensure your AWS credentials are properly configured:
aws configure listLambda Timeout
If tracks are timing out, increase the timeout in serverless.yml:
functions:
beatport:
timeout: 180 # Increase from 120 to 180 secondsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
SoundCloud MCP server for ChatGPT, Claude and any AI agent: list tracks, get play and like counts, list comments, read direct messages, check if you messaged a profile and update track details in your own SoundCloud account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to SoundCloud yourself; Cotlet does not store your password and you need no SoundCloud API key. About the official SoundCloud API: SoundCloud has a public API, but you need an Artist Pro subscription to register an app and get credentials (checked 30 Oct 2026). It uploads tracks, edits track details, builds playlists and posts comments, but its guide lists no Insights for a period and no direct messages. Setup and FAQ: https://cotlet.dev/integrations/soundcloud-api-mcp-server
MCP Server for Web2MD — convert URLs to Markdown from Claude Desktop, Cursor, etc.
Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.
Spotify MCP server for ChatGPT, Claude and any AI agent: search songs and artists, list playlists, read playlist songs, create playlist, add songs to playlist, remove songs from playlist, set playlist public or private and save to Liked Songs in your own Spotify account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Spotify yourself; Cotlet does not store your password and you need no Spotify API key. About the official Spotify API: Spotify has a full Web API and, since 23 Apr 2026, an official connector for Claude (checked 5 Nov 2026). The API needs an app you register, and in development mode the app owner must have Premium and the app allows 5 users; unlimited users need a registered business with at least 250,000 monthly users. Setup and FAQ: https://cotlet.dev/integrations/spotify-api-mcp-server
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides access to the Beatport Developer API, allowing Claude to interact with music data from Beatport's electronic music catalog.2-
- AlicenseAqualityBmaintenanceMCP server for the Spotify Web API — gives Claude and other AI assistants tools to search music, control playback, manage playlists, library, and podcasts.475MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides access to the Beatport API for music discovery and data retrieval, enabling users to search for tracks, artists, labels, releases, and charts through natural language.4MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that lets Claude search the Beatport catalog and manage your Beatport playlists, including adding tracks to playlists by name.MIT