drio
Open app

InfluxDB MCP Server

Source

An MCP Server for querying InfluxDB

Catalog onlyCatalog onlySTDIO

Overview

InfluxDB MCP Server is a Model Context Protocol (MCP) server that provides access to an InfluxDB instance using the InfluxDB OSS API v2, primarily built with Claude Code.

To use the InfluxDB MCP Server, you can run it using npx or install it globally. You need to set the INFLUXDB_TOKEN environment variable for authentication.

  • Access to organization, bucket, and measurement data. - Tools for writing data, executing queries, and managing database objects. - Prompt templates for common Flux queries and Line Protocol format.
  1. Querying time-series data from InfluxDB.
  2. Managing database objects like organizations and buckets.
  3. Writing time-series data in line protocol format.

Add to your AI client

Use these steps to connect InfluxDB MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "influxdb-mcp-server-idoru": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-influxdb-mcp-server-idoru"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "influxdb-mcp-server-idoru": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-influxdb-mcp-server-idoru"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "influxdb-mcp-server-idoru": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-influxdb-mcp-server-idoru"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "influxdb-mcp-server-idoru": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-influxdb-mcp-server-idoru"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "influxdb-mcp-server-idoru": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-influxdb-mcp-server-idoru"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "influxdb-mcp-server-idoru": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-influxdb-mcp-server-idoru"
      ]
    }
  }
}

FAQ

**What is required to run the server?**

You need to set the `INFLUXDB_TOKEN` environment variable for authentication.

**Can I run the server locally?**

Yes, you can install it globally or run it directly with npx.

**What programming language is used?**

The server is built using JavaScript.