Best for
- Engineers and data teams who analyze Apache Spark applications through MCP clients.
- Users with an accessible Spark History Server or Spark UI who need multi-step investigations.
This MCP server connects to Spark History Server and provides tools for application, job, stage, executor, SQL, performance comparison, and failure analysis. It supports stdio and streamable HTTP, with configurable authentication and multiple servers.
Strongest · Setup experience 14/20 Weakest · Reliability 8/20
Static review · not runReviewed 2026-12-04
Read the FMRS scoring method →Runtime:Python 3.12+
SHS_MCP__TRANSPORT
Sets the MCP transport mode; the example client configuration uses stdio.
SHS_SERVERS__LOCAL__URL
Sets the URL for the server named local; the example uses http://localhost:18080.
SHS_MCP__PORT
Sets the MCP server port; defaults to 18888.
SHS_MCP__DEBUG
Enables or disables debug mode; defaults to false.
SHS_MCP__ADDRESS
Sets the bind address; defaults to localhost.
Requires Python 3.12+ and uv. Run uvx --from mcp-apache-spark-history-server spark-mcp, or install with uv tool install mcp-apache-spark-history-server and run spark-mcp. The default target is http://localhost:18080. Configure the Spark History Server URL and optional username and password in a config file; choose the MCP transport there. The stdio client example sets SHS_MCP__TRANSPORT=stdio and SHS_SERVERS__LOCAL__URL.
{"mcpServers":{"spark-history":{"command":"uvx","args":["--from","mcp-apache-spark-history-server","spark-mcp"],"env":{"SHS_MCP__TRANSPORT":"stdio","SHS_SERVERS__LOCAL__URL":"http://localhost:18080"}}}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"spark-history": {
"command": "uvx",
"args": [
"--from",
"mcp-apache-spark-history-server",
"spark-mcp"
],
"env": {
"SHS_MCP__TRANSPORT": "stdio",
"SHS_SERVERS__LOCAL__URL": "http://localhost:18080"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.spark-history] command = "uvx" args = ["--from", "mcp-apache-spark-history-server", "spark-mcp"] [mcp_servers.spark-history.env] SHS_MCP__TRANSPORT = "stdio" SHS_SERVERS__LOCAL__URL = "http://localhost:18080"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add spark-history -e SHS_MCP__TRANSPORT=stdio -e SHS_SERVERS__LOCAL__URL=http://localhost:18080 -- uvx --from mcp-apache-spark-history-server spark-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm that `list_applications` appears in the client's MCP tool list, then ask it to list the available Spark applications to verify the connection.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
Kubeflow Spark AI Toolkit provides an MCP server that connects to Apache Spark History Server so MCP-compatible clients can query application, job, stage, executor, SQL, and resource data, then compare performance and investigate failures. It supports multiple configured History Servers and can also connect to a running Spark UI. The repository also includes a standalone command-line tool, shs; that tool is separate from the MCP server.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 512b46c3ddd4 Data synced 2026-12-05 Read the FMRS scoring method Markdown