Skip to main content
Glama

Jina Web Search MCP

run.ps14.25 kB
# ============================================================================= # Jina Web Search MCP Server - PowerShell Startup Script # ============================================================================= # This script builds and starts the MCP server using Docker Compose # # Prerequisites: # - Docker Desktop installed and running # - docker-compose available # - Optional: .env file with JINA_API_KEY configured # # Usage: # .\run.ps1 # or right-click -> "Run with PowerShell" # ============================================================================= # Set strict mode for better error handling Set-StrictMode -Version Latest $ErrorActionPreference = "Stop" # Function to check if a command exists function Test-Command($Command) { try { Get-Command $Command -ErrorAction Stop | Out-Null return $true } catch { return $false } } Write-Host "============================================================" -ForegroundColor Cyan Write-Host " Jina Web Search MCP Server - Starting Up" -ForegroundColor Cyan Write-Host "============================================================" -ForegroundColor Cyan Write-Host "" # Check prerequisites Write-Host "[0/3] Checking prerequisites..." -ForegroundColor Yellow if (-not (Test-Command "docker")) { Write-Host "ERROR: Docker is not installed or not in PATH" -ForegroundColor Red Write-Host "Please install Docker Desktop and try again" -ForegroundColor Red Read-Host "Press Enter to exit" exit 1 } # Check if Docker is running try { docker info | Out-Null } catch { Write-Host "ERROR: Docker is not running" -ForegroundColor Red Write-Host "Please start Docker Desktop and try again" -ForegroundColor Red Read-Host "Press Enter to exit" exit 1 } if (-not (Test-Command "docker-compose")) { Write-Host "ERROR: docker-compose is not installed or not in PATH" -ForegroundColor Red Read-Host "Press Enter to exit" exit 1 } Write-Host "✓ All prerequisites met" -ForegroundColor Green Write-Host "" # Build Docker image Write-Host "[1/3] Building Jina MCP Server Docker image..." -ForegroundColor Green try { docker build -t jina-mcp-server . Write-Host "✓ Docker image built successfully" -ForegroundColor Green } catch { Write-Host "ERROR: Failed to build Docker image" -ForegroundColor Red Write-Host $_.Exception.Message -ForegroundColor Red Read-Host "Press Enter to exit" exit 1 } Write-Host "" # Start services Write-Host "[2/3] Starting Jina MCP Server with Docker Compose..." -ForegroundColor Green try { docker-compose up -d Write-Host "✓ Services started successfully" -ForegroundColor Green } catch { Write-Host "ERROR: Failed to start services" -ForegroundColor Red Write-Host $_.Exception.Message -ForegroundColor Red Read-Host "Press Enter to exit" exit 1 } Write-Host "" # Display completion information Write-Host "[3/3] Server startup complete!" -ForegroundColor Green Write-Host "============================================================" -ForegroundColor Cyan Write-Host " MCP Server Information" -ForegroundColor Cyan Write-Host "============================================================" -ForegroundColor Cyan Write-Host " Status: " -NoNewline -ForegroundColor White Write-Host "Starting up (may take 30-60 seconds)" -ForegroundColor Yellow Write-Host " URL: " -NoNewline -ForegroundColor White Write-Host "http://localhost:5003" -ForegroundColor Cyan Write-Host " Logs: " -NoNewline -ForegroundColor White Write-Host "docker-compose logs -f" -ForegroundColor Yellow Write-Host " Stop: " -NoNewline -ForegroundColor White Write-Host "docker-compose down" -ForegroundColor Yellow Write-Host "============================================================" -ForegroundColor Cyan Write-Host "" Write-Host "💡 Tip: Set your JINA_API_KEY in .env file for production use" -ForegroundColor Magenta Write-Host "" # Option to view logs $ViewLogs = Read-Host "Would you like to view the server logs now? (y/N)" if ($ViewLogs -eq "y" -or $ViewLogs -eq "Y") { Write-Host "Starting log viewer... (Press Ctrl+C to exit)" -ForegroundColor Yellow Start-Sleep -Seconds 2 docker-compose logs -f }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hypersniper05/JinaWebSearchMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server