#!/bin/bash
# ScanPower MCP Server Installation Script
echo "š Installing ScanPower MCP Server..."
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "ā Node.js is not installed. Please install Node.js 18+ first."
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo "ā Node.js version 18+ is required. Current version: $(node -v)"
exit 1
fi
echo "ā Node.js version: $(node -v)"
# Install dependencies
echo "š¦ Installing dependencies..."
npm install
if [ $? -ne 0 ]; then
echo "ā Failed to install dependencies"
exit 1
fi
# Build the project
echo "šØ Building the project..."
npm run build
if [ $? -ne 0 ]; then
echo "ā Failed to build the project"
exit 1
fi
# Create .env file if it doesn't exist
if [ ! -f .env ]; then
echo "š Creating .env file from template..."
cp .env.example .env
echo "ā ļø Please edit .env file with your ScanPower credentials"
else
echo "ā .env file already exists"
fi
echo ""
echo "š Installation complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env file with your ScanPower credentials"
echo "2. Run the server with: npm start"
echo "3. Or run in development mode with: npm run dev"
echo ""
echo "For more information, see README.md"
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/scanpower/scanmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server