Skip to main content
Glama

StarRocks MCP Server

Official

query_and_plotly_chart

Extract data with SQL queries and visualize it using Plotly charts for dynamic UI display, connecting directly to StarRocks databases via the MCP server.

Instructions

using sql query to extract data from database, then using python plotly_expr to generate a chart for UI to display

Input Schema

NameRequiredDescriptionDefault
plotly_exprYesa one function call expression, with 2 vars binded: `px` as `import plotly.express as px`, and `df` as dataframe generated by query `plotly_expr` example: `px.scatter(df, x="sepal_width", y="sepal_length", color="species", marginal_y="violin", marginal_x="box", trendline="ols", template="simple_white")`
queryYesSQL query to execute

Input Schema (JSON Schema)

{ "properties": { "plotly_expr": { "description": "a one function call expression, with 2 vars binded: `px` as `import plotly.express as px`, and `df` as dataframe generated by query `plotly_expr` example: `px.scatter(df, x=\"sepal_width\", y=\"sepal_length\", color=\"species\", marginal_y=\"violin\", marginal_x=\"box\", trendline=\"ols\", template=\"simple_white\")`", "title": "Plotly Expr", "type": "string" }, "query": { "description": "SQL query to execute", "title": "Query", "type": "string" } }, "required": [ "query", "plotly_expr" ], "type": "object" }
Install Server

Other Tools from StarRocks MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/StarRocks/mcp-server-starrocks'

If you have feedback or need assistance with the MCP directory API, please join our Discord server