InfluxDB v2 MCP Server
A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2. Mostly built with Claude Code.
Features
This MCP server provides:
- Resources: Access to organization, bucket, and measurement data
- Tools: Write data, execute queries, and manage database objects
- Prompts: Templates for common Flux queries and Line Protocol format
Resources
The server exposes the following resources:
Organizations List:
influxdb://orgs- Displays all organizations in the InfluxDB instance
Buckets List:
influxdb://buckets- Shows all buckets with their metadata
Bucket Measurements:
influxdb://bucket/{bucketName}/measurements- Lists all measurements within a specified bucket
Query Data:
influxdb://query/{orgName}/{fluxQuery}- Executes a Flux query and returns results as a resource
Tools
The server provides these tools:
write-data: Write time-series data in line protocol format- Parameters: org, bucket, data, precision (optional)
query-data: Execute Flux queries- Parameters: org, query
create-bucket: Create a new bucket- Parameters: name, orgID, retentionPeriodSeconds (optional)
create-org: Create a new organization- Parameters: name, description (optional)







