
PySpark MCP
This is a PySpark migration and optimization toolkit built on SQLGlot. It converts SQL between dialects (PostgreSQL, Oracle, Redshift, MySQL, Snowflake) and generates PySpark DataFrame API code from SQL queries. The AWS Glue integration generates complete job templates, handles DynamicFrame conversions, and analyzes S3 partitioning strategies. You also get code review tools that scan existing PySpark for performance issues, suggest join strategies, and detect duplication across hundreds of files with concurrent batch processing. Reach for this when migrating legacy SQL workloads to Spark or when you need to generate Glue jobs without writing boilerplate. It won't handle recursive CTEs natively but provides Spark SQL equivalents and guidance for edge cases.
- tools
- 3
- transport
- STDIO
- last updated
- Oct 18, 2026
Tools
3 toolsPublic tool metadata for what this MCP can expose to an agent.
convertSQL → PySpark (including `mode=batch_dir`).
SQL → PySpark (including `mode=batch_dir`).
No parameter schema in public metadata yet.
glue_jobGlue 5.0 job *template* strings.
Glue 5.0 job *template* strings.
No parameter schema in public metadata yet.
reviewCode review, patterns, duplicates.
Code review, patterns, duplicates.
No parameter schema in public metadata yet.
Sponsors
Readme
PySpark MCP Server
SQL migration assistance, AWS Glue job template generation, and Spark code optimization — as an MCP server.
Not the live-Spark
pyspark-mcppackage. This project is SQL → PySpark / Glue source generation, published aspyspark-tools. SemyonSinchenko/pyspark-mcp introspects a running SparkSession. A deprecatedpyspark-mcpconsole script remains here so old configs keep working; it prints a warning, then starts this server.
What It Does
Details
- Repository
- github.com/annasmazhar/pyspark_mcp
- Categories
- Databases, Cloud & Infrastructure
- Package
pyspark-tools- Transport
- STDIO
- Registry
- MCP registry, active