@echo off
REM Enhanced Calibre RAG MCP Server Setup Script
echo ===========================================
echo Enhanced Calibre RAG MCP Server Setup
echo ===========================================
echo.
REM Check if Node.js is installed
node --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Node.js is not installed or not in PATH
echo Please install Node.js 16+ from https://nodejs.org/
pause
exit /b 1
)
echo Node.js version:
node --version
echo.
REM Check if npm is available
npm --version >nul 2>&1
if errorlevel 1 (
echo ERROR: npm is not available
pause
exit /b 1
)
echo npm version:
npm --version
echo.
REM Install dependencies
echo Installing dependencies...
call npm install
if errorlevel 1 (
echo ERROR: Failed to install dependencies
pause
exit /b 1
)
echo.
echo Dependencies installed successfully!
echo.
REM Check Calibre installation
echo Checking Calibre installation...
calibredb --version >nul 2>&1
if errorlevel 1 (
echo WARNING: calibredb not found in PATH
echo Please ensure Calibre is installed and accessible
echo The server will try to find it automatically
) else (
echo Calibre found:
calibredb --version
)
echo.
REM Create projects directory
if not exist "projects" (
mkdir "projects"
echo Created projects directory
)
REM Run test
echo.
echo Running basic functionality test...
node test.js
echo.
echo ===========================================
echo Setup Complete!
echo ===========================================
echo.
echo Next steps:
echo 1. Update CALIBRE_LIBRARY path in server.js if needed
echo 2. Test with: npm test
echo 3. Use with Claude or other MCP clients
echo.
echo For more information, see README.md
echo.
pause
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/ispyridis/calibre-rag-mcp-nodejs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server