Skip to main content
Glama

Joern MCP Server

by Lekssays
setup.sh•2.31 kB
#!/bin/bash # Setup script for Joern MCP Server # This script builds the Joern Docker image and starts Redis set -e echo "šŸ•·ļø Setting up Joern MCP Server..." echo "" # Check if Docker is running if ! docker info > /dev/null 2>&1; then echo "āŒ Docker is not running. Please start Docker and try again." exit 1 fi # Build Joern image echo "šŸ—ļø Building Joern Docker image..." docker build -f Dockerfile.joern -t joern:latest . --progress=plain # Verify the image was built if docker images | grep -q "joern.*latest"; then echo "āœ… Joern image built successfully!" else echo "āŒ Failed to build Joern image" exit 1 fi echo "" # Start Redis echo "šŸš€ Starting Redis container..." # Check if Redis container already exists if docker ps -a --format '{{.Names}}' | grep -q "^joern-redis$"; then echo "ā„¹ļø Redis container already exists" # Check if it's running if docker ps --format '{{.Names}}' | grep -q "^joern-redis$"; then echo "āœ… Redis is already running" else echo "ā–¶ļø Starting existing Redis container..." docker start joern-redis echo "āœ… Redis started" fi else # Create and start new Redis container docker run -d \ --name joern-redis \ -p 6379:6379 \ --restart unless-stopped \ redis:7-alpine echo "āœ… Redis container created and started" fi echo "" # Test Redis connection echo "šŸ” Testing Redis connection..." if docker exec joern-redis redis-cli ping > /dev/null 2>&1; then echo "āœ… Redis is responding" else echo "āš ļø Redis may not be ready yet, give it a few seconds" fi echo "" echo "═══════════════════════════════════════════" echo "āœ… Setup complete!" echo "═══════════════════════════════════════════" echo "" echo "šŸ“Š Image sizes:" docker images joern:latest redis:7-alpine --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}" echo "" echo "šŸš€ Next steps:" echo " 1. (Optional) Configure: cp config.example.yaml config.yaml" echo " 2. Run server: python main.py" echo " 3. Server will be available at http://localhost:4242" echo ""

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/Lekssays/joern-mcp'

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