Back to Home
vgiri2015 icon

ai-spark-mcp-server

by vgiri2015

Overview

Optimizes Apache Spark code for performance using an AI model (Claude) via a client-server architecture, including performance analysis and comparison.

Installation

Run Command
python v1/run_server.py

Environment Variables

  • ANTHROPIC_API_KEY

Security Notes

CRITICAL: The `run_optimized.py` script uses `exec(open(code_path).read())` to execute both original and AI-optimized Spark code files. This allows arbitrary code execution if `spark_code_input.py` or the AI-generated `optimized_spark_code.py` contain malicious code. This makes the system extremely unsafe to run with untrusted inputs or AI models without robust sandboxing. API keys are handled via environment variables, which is good practice.

Similar Servers

Stats

Interest Score41
Security Score2
Cost ClassHigh
Avg Tokens10000
Stars26
Forks8
Last Update2025-12-05

Tags

SparkPySparkCode OptimizationAIClaudePerformance AnalysisMCP