create-bucket
Provision a new bucket under an organization so that subsequent write-data calls have a destination.
Write line-protocol records into an InfluxDB bucket and read them back with Flux, creating the organization and bucket first when they do not exist yet.
LABSCO SUMMARY
query-data is described as the way to validate recently written data, so write, read back, correct is one loop in one conversation rather than a trip to another tool. The surface stops there: four tools, no deletes, no task or dashboard management, and no way to list what buckets already exist. This is a data-in and data-out server, and the provisioning tools are there so the first write has somewhere to go.
A four-tool InfluxDB client covering the write path, Flux queries, and the organization and bucket provisioning those depend on.
INFLUXDB_URL for the instance, INFLUXDB_TOKEN with rights to write and to create buckets and organizations, and INFLUXDB_ORG as the organization queries run inside. MIT licensed.
One command plus a key — INFLUXDB_TOKEN=<YOUR_INFLUXDB_TOKEN> npx influxdb-mcp-server
USE CASES
Create the organization if this data should be isolated from what already exists, create the bucket with the retention you want, then start streaming line protocol into it. The bucket has to exist before the first write has anywhere to land.
Write the batch, then query it straight back with Flux to check the measurement, the tags and the timestamps came out as intended. Getting precision wrong is invisible until you read the points back.
Run the aggregation as a Flux query against the bucket and read the result inline, instead of exporting rows and working them somewhere else.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
create-bucketProvision a new bucket under an organization so that subsequent write-data calls have a destination.
create-orgCreate a brand-new organization to isolate users or projects before generating buckets and tokens.
query-dataExecute a Flux query inside an organization to inspect measurement schemas, run aggregations, or validate recently written data.
write-dataStream newline-delimited line protocol records into a bucket. Use this after composing measurements so the LLM can insert real telemetry, optionally controlling timestamp precision.
BEFORE YOU INSTALL
4 tools when we connected. Three of the four write: write-data inserts points, and create-bucket and create-org create objects. Names use hyphens, so it is write-data, not write_data.
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
INFLUXDB_TOKEN=<YOUR_INFLUXDB_TOKEN> npx influxdb-mcp-server{
"mcpServers": {
"influxdb": {
"command": "npx",
"args": [
"influxdb-mcp-server"
],
"env": {
"INFLUXDB_TOKEN": "<YOUR_INFLUXDB_TOKEN>",
"INFLUXDB_URL": "http://localhost:8086",
"INFLUXDB_ORG": "<YOUR_INFLUXDB_ORG>"
}
}
}
}git clone https://github.com/idoru/influxdb-mcp-server.git
cd influxdb-mcp-server
npm installPoint claude_desktop_config.json at src/index.js inside that folder, using its full path:
{
"mcpServers": {
"influxdb": {
"command": "node",
"args": [
"<YOUR_PATH_TO_INFLUXDB_MCP_SERVER>/src/index.js"
],
"env": {
"INFLUXDB_TOKEN": "<YOUR_INFLUXDB_TOKEN>",
"INFLUXDB_URL": "http://localhost:8086",
"INFLUXDB_ORG": "<YOUR_INFLUXDB_ORG>"
}
}
}
}