What is A Model Context Protocol (MCP) server that exposes access to an InfluxDB instance using the InfluxDB OSS API v2.?
This MCP server provides access to organization, bucket, and measurement data, tools for writing data, executing queries, and managing database objects, as well as templates for common Flux queries and Line Protocol format.
Documentation
InfluxDB MCP Server
A Model Context Protocol (MCP) server that exposes access to an InfluxDB 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
line-protocol-guide: Guide to InfluxDB line protocol format
Configuration
The server requires these environment variables:
INFLUXDB_TOKEN (required): Authentication token for the InfluxDB API
INFLUXDB_URL (optional): URL of the InfluxDB instance (defaults to http://localhost:8086)
INFLUXDB_ORG (optional): Default organization name for certain operations
Installation# Installing via Smithery
To install InfluxDB MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @idoru/influxdb-mcp-server --client claude
Option 1: Run with npx (recommended)
INFLUXDB_TOKEN=your_token npx influxdb-mcp-server
Option 2: Install globally
npm install -g influxdb-mcp-server
# Run the server
INFLUXDB_TOKEN=your_token influxdb-mcp-server
Option 3: From source
git clone https://github.com/idoru/influxdb-mcp-server.git
cd influxdb-mcp-server
# Install dependencies
npm install
# Run the server
INFLUXDB_TOKEN=your_token npm start
Integration with Claude for Desktop
Add the server to your claude_desktop_config.json: