This repository provides an MCP server for accessing InfluxDB using the OSS API v2, offering resources, tools, and prompts for managing and querying data within an InfluxDB instance.
This is a Model Context Protocol (MCP) server designed to provide access to an InfluxDB instance using the InfluxDB OSS API v2. It was primarily developed with Claude Code.
The MCP server offers:
The server exposes resources like: influxdb://orgs
for organizations, influxdb://buckets
for buckets, influxdb://bucket/{bucketName}/measurements
for measurements in a bucket, and influxdb://query/{orgName}/{fluxQuery}
to execute Flux queries.
Tools include write-data
(writes line protocol data), query-data
(executes Flux queries), create-bucket
(creates new buckets), and create-org
(creates new organizations).
Provides flux-query-examples
and line-protocol-guide
for assistance.
Requires INFLUXDB_TOKEN
and optionally INFLUXDB_URL
, and INFLUXDB_ORG
environment variables.
Provides instructions for running with npx
, global installation via npm
, or from source.
Provides configuration examples for claude_desktop_config.json
.
Details the modular code structure, including directories for configuration, utilities, handlers, and prompts.
Includes integration tests that use Docker to test server functionality.
MIT
idoru/influxdb-mcp-server
March 11, 2025
March 27, 2025
JavaScript