Skip to main content
Glama
mcflux

mcflux

by dmayan-ss

mcflux

Read-only MCP server for InfluxDB v1. Lets Claude (Desktop or Code) query and explore your time-series data through the Model Context Protocol.

Tools

Tool

Description

ping

Check connectivity and return the InfluxDB version

list_databases

List all databases

list_measurements

List measurements in a database

list_tag_keys

List tag keys, optionally filtered by measurement

list_field_keys

List field keys and their types

list_tag_values

List values for a specific tag key

query

Execute a read-only InfluxQL query (SELECT/SHOW only)

Write operations (CREATE, DROP, DELETE, INSERT, etc.) are blocked at the server level.

Related MCP server: InfluxDB MCP Server

Requirements

  • Python 3.10+

  • uv package manager

  • An InfluxDB v1 instance

Installation

Claude Desktop (extension)

Download the latest .mcpb from Releases, then:

  1. Open Claude Desktop

  2. Go to Settings > Extensions > Advanced settings

  3. Click Install Extension and select the .mcpb file

  4. Fill in your InfluxDB URL, username, and password in the configuration form

Claude Desktop (manual)

Add to claude_desktop_config.json:

  • Windows: %AppData%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "influxdb": {
      "command": "uv",
      "args": ["--directory", "/path/to/mcflux", "run", "server.py"],
      "env": {
        "INFLUXDB_URL": "http://localhost:8086",
        "INFLUXDB_USERNAME": "myuser",
        "INFLUXDB_PASSWORD": "mypass"
      }
    }
  }
}

Claude Code

Add to .claude/settings.json or your project settings:

{
  "mcpServers": {
    "influxdb": {
      "command": "uv",
      "args": ["--directory", "/path/to/mcflux", "run", "server.py"],
      "env": {
        "INFLUXDB_URL": "http://localhost:8086",
        "INFLUXDB_USERNAME": "myuser",
        "INFLUXDB_PASSWORD": "mypass"
      }
    }
  }
}

Configuration

Environment variable

Required

Default

Description

INFLUXDB_URL

No

http://localhost:8086

InfluxDB HTTP API URL

INFLUXDB_USERNAME

No

(none)

Username for basic auth

INFLUXDB_PASSWORD

No

(none)

Password for basic auth

Omit INFLUXDB_USERNAME and INFLUXDB_PASSWORD if your instance does not require authentication.

Building the .mcpb bundle

npm install -g @anthropic-ai/mcpb
mcpb pack .

This produces a mcflux.mcpb file that can be installed as a Claude Desktop extension.

License

MIT

Available Tools

7 tools
list_databasesA

List all databases on the InfluxDB instance.

Inputs: no named parameters. Returns: result

list_field_keysA

List field keys and their types in a database, optionally filtered by measurement.

Args: database: Name of the InfluxDB database. measurement: Optional measurement name to filter by.

Inputs: database (required), measurement. Returns: result

list_measurementsA

List all measurements in a database.

Args: database: Name of the InfluxDB database.

Inputs: database (required). Returns: result

list_tag_keysA

List tag keys in a database, optionally filtered by measurement.

Args: database: Name of the InfluxDB database. measurement: Optional measurement name to filter by.

Inputs: database (required), measurement. Returns: result

list_tag_valuesA

List values for a specific tag key.

Args: database: Name of the InfluxDB database. tag_key: The tag key whose values you want to list. measurement: Optional measurement name to filter by.

Inputs: tag_key (required), database (required), measurement. Returns: result

pingA

Check connectivity to the InfluxDB instance. Returns the server version.

Inputs: no named parameters. Returns: result

queryA

Execute a read-only InfluxQL query against a database.

Only SELECT and SHOW statements are allowed. Write operations are blocked.

Args: database: Name of the InfluxDB database to query. influxql: The InfluxQL query to execute (e.g. SELECT * FROM cpu LIMIT 10). epoch: Timestamp precision in the response (ns, u, ms, s, m, h). Default: ms.

Inputs: database (required), influxql (required), epoch. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a distinct purpose: ping for connectivity, list_* tools for schema exploration (databases, measurements, tags, fields), and query for executing InfluxQL. No overlapping functionality.

    Naming Consistency4/5

    Most tools follow the verb_noun pattern (list_databases, list_measurements, etc.). 'ping' and 'query' are exceptions but are standard, recognizable verbs in this context, so naming remains predictable.

    Tool Count5/5

    Seven tools is well within the ideal range for a focused server. Each tool addresses a core aspect of read-only InfluxDB interaction without redundancy.

    Completeness5/5

    The toolset covers the full read-only lifecycle: connectivity, database listing, schema exploration (measurements, tags, fields), and querying. Any missing metadata can be obtained through the query tool with SHOW statements.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server implementation that enables Claude to execute read-only queries against MariaDB databases and explore database schemas through natural language.
      20
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A Model Context Protocol server that provides Claude with access to InfluxDB time-series database instances, enabling data writing, querying, and management of organizations and buckets through natural language.
      4
      238 npm
      49
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A read-only MCP server for SQL Server database introspection that enables Claude to explore and query databases via tools like listing objects and executing SELECT queries.
      20
      MIT