Skip to main content
Glama
setup.sh1.48 kB
#!/bin/bash set -e echo "🚀 Setting up BookStack MCP Server" echo "==================================" echo "" # Check Python version if ! command -v python3 &> /dev/null; then echo "❌ Python 3 is not installed" exit 1 fi PYTHON_VERSION=$(python3 --version | cut -d' ' -f2) echo "✅ Python $PYTHON_VERSION found" # Check/install pip if ! python3 -m pip --version &> /dev/null; then echo "⚠️ pip is not installed" echo "Installing pip..." sudo apt update sudo apt install -y python3-pip fi echo "✅ pip is available" echo "" # Install requirements echo "📦 Installing Python packages..." python3 -m pip install -r requirements.txt --user echo "✅ Dependencies installed" echo "" # Setup environment file if [ ! -f .env ]; then echo "⚙️ Creating .env file..." cp env.template .env echo "✅ Created .env file" echo "" echo "⚠️ IMPORTANT: Edit .env and add your BookStack API credentials!" echo " 1. Open http://192.168.1.193:6875" echo " 2. Go to Profile → API Tokens" echo " 3. Create a new token" echo " 4. Copy Token ID and Secret to .env" echo "" else echo "✅ .env file already exists" echo "" fi # Make scripts executable chmod +x run_server.sh test_connection.py echo "✅ Setup complete!" echo "" echo "Next steps:" echo "1. Edit .env with your API credentials" echo "2. Test connection: ./test_connection.py" echo "3. See QUICKSTART.md for Cursor integration"

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/lborjigi/bookstack-mcp'

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