Spark SQL MCP Server
by aidancorrellio.github.aidancorrell/spark-sql-mcp-serverv0.1.2
Query Spark SQL clusters via Thrift/HiveServer2. Works with Spark, EMR, Hive, Impala.
context tax
queued
security
queued
cold start
queued
freshness
Stale8mo ago
Install Spark SQL MCP server
Install in Claude Code
claude mcp add spark-sql -e SPARK_HOST='<spark-host>' -e SPARK_PASSWORD='<spark-password>' -- uvx spark-sql-mcp-serverInstall in Cursor
{
"mcpServers": {
"spark-sql": {
"command": "uvx",
"args": [
"spark-sql-mcp-server"
],
"env": {
"SPARK_HOST": "<spark-host>",
"SPARK_PASSWORD": "<spark-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"spark-sql": {
"command": "uvx",
"args": [
"spark-sql-mcp-server"
],
"env": {
"SPARK_HOST": "<spark-host>",
"SPARK_PASSWORD": "<spark-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"spark-sql": {
"type": "stdio",
"command": "uvx",
"args": [
"spark-sql-mcp-server"
],
"env": {
"SPARK_HOST": "<spark-host>",
"SPARK_PASSWORD": "<spark-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"spark-sql": {
"command": "uvx",
"args": [
"spark-sql-mcp-server"
],
"env": {
"SPARK_HOST": "<spark-host>",
"SPARK_PASSWORD": "<spark-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| SPARK_HOST | yes | — | Hostname of the Spark Thrift Server |
| SPARK_PORT | — | — | Port of the Spark Thrift Server (default: 10000) |
| SPARK_DATABASE | — | — | Default database to use |
| SPARK_AUTH | — | — | Authentication method: NONE, LDAP, KERBEROS, CUSTOM, or NOSASL |
| SPARK_USERNAME | — | — | Username for LDAP authentication |
| SPARK_PASSWORD | — | yes | Password for LDAP authentication |
| SPARK_KERBEROS_SERVICE_NAME | — | — | Kerberos service name (default: hive) |
Freshness
Stale — last maintenance signal 8mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-02-08 · 8mo ago · GitHub
Latest release
2026-02-08 · 8mo ago · GitHub · v0.1.2
Package published
no data · npm/PyPI
Registry entry updated
2026-02-08 · 8mo ago · official registry · v0.1.2
FAQ
›How do I install the Spark SQL MCP server in Claude Code?
Run: claude mcp add spark-sql -e SPARK_HOST='<spark-host>' -e SPARK_PASSWORD='<spark-password>' -- uvx spark-sql-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Spark SQL require an API key?
Yes. It expects SPARK_HOST, SPARK_PASSWORD, of which 1 is a secret.
›Can I use Spark SQL as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Spark SQL in the official MCP registry?
Yes, as io.github.aidancorrell/spark-sql-mcp-server.
Alternatives to Spark SQL
Other database MCP servers.