Skip to content

MCP Tool Reference โ€‹

All tools are available via the MCP server at http://127.0.0.1:37421/mcp.

Data tools โ€‹

list_tables โ€‹

List all tables and views currently loaded in DuckDB.

No parameters.


run_query โ€‹

Execute a SQL query and return the results.

ParameterTypeRequiredDescription
querystringโœ“SQL to execute

materialize_query โ€‹

Run a SQL query and save the results as a persistent DuckDB table, then add it to the canvas as a data node.

ParameterTypeRequiredDescription
querystringโœ“SQL to execute
table_namestringโœ“Name for the new table

Canvas inspection โ€‹

list_canvas_nodes โ€‹

Return all nodes currently on the canvas with their IDs, types, positions, and sizes.

No parameters.


Node creation โ€‹

add_query_node โ€‹

Add a SQL query node to the canvas.

ParameterTypeRequiredDescription
namestringโœ“Display label for the node
querystringโœ“SQL to populate the node

add_chart_node โ€‹

Add a chart node that visualizes query results.

ParameterTypeRequiredDescription
namestringโœ“Display label
source_nodestringโœ“Name of the query node to visualize
chart_typestringโœ“See chart types below
x_columnstringColumn for the X axis (or labels for pie/donut)
y_columnstringColumn for the Y axis (or values for pie/donut)

Chart types:

chart_typeLabelColumns needed
barYBar YX: category or time ยท Y: numeric
barXBar XX: numeric ยท Y: category
lineYLineX: time or sequential ยท Y: numeric
areaYAreaX: time or sequential ยท Y: numeric
dotScatterX: numeric ยท Y: numeric
cellCell / HeatmapX: category ยท Y: category ยท Color: numeric
piePieLabel: category ยท Value: numeric
donutDonutLabel: category ยท Value: numeric
histogramHistogramX: numeric column to bin
boxplotBox PlotX: category (group) ยท Y: numeric
sankeySankeySource ยท Target ยท Value (flow weight)
numberNumberValue: numeric โ€” first row only
booleanBadgeValue: boolean-like โ€” first row only
conditionalStatusValue: any ยท rules evaluated top-to-bottom
mermaidMermaidNo data columns โ€” write diagram code directly
tableTableAll result columns shown by default

add_markdown_node โ€‹

Add a freeform markdown text node.

ParameterTypeRequiredDescription
namestringโœ“Title shown in the node header
contentstringโœ“Markdown body

add_section โ€‹

Add a section (grouped container) to the canvas.

ParameterTypeRequiredDescription
namestringโœ“Section label
xnumberX position (canvas units)
ynumberY position (canvas units)

Node manipulation โ€‹

update_query_node โ€‹

Edit an existing query node's SQL or display name.

ParameterTypeRequiredDescription
node_idstringโœ“ID from list_canvas_nodes
querystringNew SQL (leave blank to keep current)
namestringNew display name

move_node โ€‹

Move a node to a new position on the canvas.

ParameterTypeRequiredDescription
node_idstringโœ“ID from list_canvas_nodes
xnumberโœ“New X position
ynumberโœ“New Y position

resize_node โ€‹

Resize a node.

ParameterTypeRequiredDescription
node_idstringโœ“ID from list_canvas_nodes
widthnumberโœ“New width in pixels
heightnumberโœ“New height in pixels

set_node_color โ€‹

Set the accent color for a node's header.

ParameterTypeRequiredDescription
node_idstringโœ“ID from list_canvas_nodes
colorstringโœ“Hex color, e.g. #18b569

focus_node โ€‹

Pan and zoom the canvas to center on a specific node.

ParameterTypeRequiredDescription
node_idstringโœ“ID from list_canvas_nodes

Import tools โ€‹

import_file โ€‹

Import a local file into DuckDB and add it to the canvas.

ParameterTypeRequiredDescription
file_pathstringโœ“Absolute path to the file
table_namestringโœ“Table name to register

import_url โ€‹

Fetch a remote data file and load it into DuckDB.

ParameterTypeRequiredDescription
urlstringโœ“Public URL to a CSV, Parquet, or JSON file
table_namestringโœ“Table name to register

import_s3 โ€‹

Load a file from S3, Cloudflare R2, or MinIO into DuckDB. Requires S3 credentials configured in Settings โ†’ S3 Storage.

ParameterTypeRequiredDescription
s3_urlstringโœ“s3://bucket/path/to/file.parquet
table_namestringโœ“Table name to register

import_csv_data โ€‹

Import raw CSV text (e.g. pasted from the clipboard) as a table.

ParameterTypeRequiredDescription
csv_datastringโœ“Raw CSV content
table_namestringโœ“Table name to register

Canvas utilities โ€‹

fit_view โ€‹

Zoom and pan the canvas to fit all nodes in view.

No parameters.


clear_canvas โ€‹

Remove all nodes from the canvas. Does not drop DuckDB tables.

No parameters.

Released under the GPL v3 License.