Skip to main content
Glama

IoTDB MCP Server

Official
by apache

export_table_query

Execute SQL queries on IoTDB databases and export results directly to CSV or Excel files for easy data analysis and reporting.

Instructions

Execute a query and export the results to a CSV or Excel file.

Args: query_sql: The SQL query to execute (using TABLE dialect, time using ISO 8601 format, e.g. 2017-11-01T00:08:00.000) format: Export format, either "csv" or "excel" (default: "csv") filename: Optional filename for the exported file. If not provided, a unique filename will be generated.

SQL Syntax: SELECT ⟨select_list⟩ FROM ⟨tables⟩ [WHERE ⟨condition⟩] [GROUP BY ⟨groups⟩] [HAVING ⟨group_filter⟩] [FILL ⟨fill_methods⟩] [ORDER BY ⟨order_expression⟩] [OFFSET ⟨n⟩] [LIMIT ⟨n⟩];

Returns: Information about the exported file and a preview of the data (max 10 rows)

Input Schema

NameRequiredDescriptionDefault
filenameNo
formatNocsv
query_sqlYes

Input Schema (JSON Schema)

{ "properties": { "filename": { "default": null, "title": "Filename", "type": "string" }, "format": { "default": "csv", "title": "Format", "type": "string" }, "query_sql": { "title": "Query Sql", "type": "string" } }, "required": [ "query_sql" ], "type": "object" }

Other Tools from IoTDB 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/apache/iotdb-mcp-server'

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