PySpark MCP

v0.1.0
io.github.AnnasMazhar/pyspark-mcp Checked 2 days ago Published 1 month ago

SQL migration, AWS Glue job generation, and PySpark optimization as an MCP server.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add pyspark-mcp -- uvx --from pyspark-tools==0.1.0 pyspark-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "pyspark-mcp": {
      "args": [
        "--from",
        "pyspark-tools==0.1.0",
        "pyspark-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pyspark-mcp": {
      "args": [
        "--from",
        "pyspark-tools==0.1.0",
        "pyspark-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "pyspark-mcp": {
      "args": [
        "--from",
        "pyspark-tools==0.1.0",
        "pyspark-mcp"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pyspark-mcp]
command = "uvx"
args = ["--from", "pyspark-tools==0.1.0", "pyspark-mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: convert, analyze, optimize, review, glue_job, glue_schema, glue_s3, glue_data, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json