We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/talknerdytome-labs/facebook-ads-library-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
@echo off
setlocal enabledelayedexpansion
echo π Facebook Ads Library MCP Server Installation
echo ===============================================
echo.
REM Check if Python is available
echo π Checking Python version...
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo β Python not found. Please install Python 3.12+ first.
echo π‘ Download from: https://www.python.org/downloads/
pause
exit /b 1
)
for /f "tokens=2" %%i in ('python --version 2^>^&1') do set PYTHON_VERSION=%%i
echo Found Python %PYTHON_VERSION%
echo β
Python found
REM Check if pip is available
echo.
echo π¦ Checking pip availability...
pip --version >nul 2>&1
if %errorlevel% neq 0 (
echo β pip not found. Please install pip first.
pause
exit /b 1
)
echo β
pip found
REM Install dependencies
echo.
echo π Installing Python dependencies...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo β Failed to install dependencies
pause
exit /b 1
)
echo β
Dependencies installed successfully
REM Create .env file from template
echo.
echo π§ Setting up configuration...
if exist .env (
echo β οΈ .env file already exists, skipping creation
echo π‘ If you need to reset it, delete .env and run this script again
) else (
if exist .env.template (
copy .env.template .env >nul
echo β
Created .env file from template
echo π Please edit .env file and add your API keys
) else (
echo β .env.template not found
pause
exit /b 1
)
)
REM Get current directory for MCP configuration
set CURRENT_DIR=%cd%
set MCP_CONFIG_PATH=%CURRENT_DIR%\mcp_server.py
echo.
echo βοΈ MCP Server Configuration
echo ============================
echo.
echo Add this configuration to your Claude Desktop or Cursor:
echo.
echo For Claude Desktop (%%APPDATA%%\Claude\claude_desktop_config.json):
echo.
echo {
echo "mcpServers": {
echo "fb_ad_library": {
echo "command": "python",
echo "args": [
echo "%MCP_CONFIG_PATH%"
echo ]
echo }
echo }
echo }
echo.
echo For Cursor (%%USERPROFILE%%\.cursor\mcp.json):
echo.
echo {
echo "mcpServers": {
echo "fb_ad_library": {
echo "command": "python",
echo "args": [
echo "%MCP_CONFIG_PATH%"
echo ]
echo }
echo }
echo }
echo.
echo π Next Steps:
echo ==============
echo 1. π Edit the .env file and add your API keys:
echo - SCRAPECREATORS_API_KEY (required) - Get at: https://scrapecreators.com/
echo - GEMINI_API_KEY (optional for video analysis) - Get at: https://aistudio.google.com/app/apikey
echo.
echo 2. π Copy the MCP configuration above to your Claude Desktop or Cursor config
echo.
echo 3. π Restart Claude Desktop or Cursor
echo.
echo 4. π You're ready to use the Facebook Ads Library MCP server!
echo.
echo π‘ Need help? Check the README.md file for troubleshooting tips.
echo.
echo β
Installation completed successfully!
echo.
pause