Spark SQL
io.github.aidancorrell/spark-sql-mcp-server
Query Spark SQL clusters via Thrift/HiveServer2. Works with Spark, EMR, Hive, Impala.
- Repository
- github.com/aidancorrell/spark-sql-mcp-server
- Version
- 0.1.2
- Author
- aidancorrell (namespace verified by the registry)
- Source
- Official MCP registry (updated Feb 9, 2026)
How to install it
Variables to fill in: SPARK_HOST, SPARK_PORT, SPARK_DATABASE, SPARK_AUTH, SPARK_USERNAME, SPARK_PASSWORD, SPARK_KERBEROS_SERVICE_NAME.
On your machine
Claude Code
The server runs on your machine (pypi package). In a terminal:
claude mcp add spark-sql-mcp-server -e SPARK_HOST=YOUR_SPARK_HOST -e SPARK_PORT=YOUR_SPARK_PORT -e SPARK_DATABASE=YOUR_SPARK_DATABASE -e SPARK_AUTH=YOUR_SPARK_AUTH -e SPARK_USERNAME=YOUR_SPARK_USERNAME -e SPARK_PASSWORD=YOUR_SPARK_PASSWORD -e SPARK_KERBEROS_SERVICE_NAME=YOUR_SPARK_KERBEROS_SERVICE_NAME -- uvx [email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"spark-sql-mcp-server": {
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"SPARK_HOST": "YOUR_SPARK_HOST",
"SPARK_PORT": "YOUR_SPARK_PORT",
"SPARK_DATABASE": "YOUR_SPARK_DATABASE",
"SPARK_AUTH": "YOUR_SPARK_AUTH",
"SPARK_USERNAME": "YOUR_SPARK_USERNAME",
"SPARK_PASSWORD": "YOUR_SPARK_PASSWORD",
"SPARK_KERBEROS_SERVICE_NAME": "YOUR_SPARK_KERBEROS_SERVICE_NAME"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"spark-sql-mcp-server": {
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"SPARK_HOST": "YOUR_SPARK_HOST",
"SPARK_PORT": "YOUR_SPARK_PORT",
"SPARK_DATABASE": "YOUR_SPARK_DATABASE",
"SPARK_AUTH": "YOUR_SPARK_AUTH",
"SPARK_USERNAME": "YOUR_SPARK_USERNAME",
"SPARK_PASSWORD": "YOUR_SPARK_PASSWORD",
"SPARK_KERBEROS_SERVICE_NAME": "YOUR_SPARK_KERBEROS_SERVICE_NAME"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"spark-sql-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"SPARK_HOST": "YOUR_SPARK_HOST",
"SPARK_PORT": "YOUR_SPARK_PORT",
"SPARK_DATABASE": "YOUR_SPARK_DATABASE",
"SPARK_AUTH": "YOUR_SPARK_AUTH",
"SPARK_USERNAME": "YOUR_SPARK_USERNAME",
"SPARK_PASSWORD": "YOUR_SPARK_PASSWORD",
"SPARK_KERBEROS_SERVICE_NAME": "YOUR_SPARK_KERBEROS_SERVICE_NAME"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
This server runs on your machine: we cannot test it remotely.
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.aidancorrell/spark-sql-mcp-server)HTML
<a href="https://lagora.dev/en/entry/io.github.aidancorrell/spark-sql-mcp-server"><img src="https://lagora.dev/badge/io.github.aidancorrell/spark-sql-mcp-server.svg?lang=en" alt="io.github.aidancorrell/spark-sql-mcp-server on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.