Skip to content
MCP server

InfluxDB 3

Query, write to and manage InfluxDB 3 databases from your AI client

Runs locally

InfluxDB 3 is an MCP server for databases. It runs locally on your machine and is started by your AI client.

Platforms
CLI, API
Runs
Locally
What it can do
Can delete data (1 tool)
Version
2.0.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add influxdb3-mcp-server --env INFLUX_DB_PRODUCT_TYPE='<INFLUX_DB_PRODUCT_TYPE>' --env INFLUX_DB_TOKEN='<INFLUX_DB_TOKEN>' --env INFLUX_DB_MANAGEMENT_TOKEN='<INFLUX_DB_MANAGEMENT_TOKEN>' -- npx -y @influxdata/influxdb3-mcp-server

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "influxdb3-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@influxdata/influxdb3-mcp-server"
      ],
      "env": {
        "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
        "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
        "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "influxdb3-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@influxdata/influxdb3-mcp-server"
      ],
      "env": {
        "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
        "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
        "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "influxdb3-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@influxdata/influxdb3-mcp-server"
      ],
      "env": {
        "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
        "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
        "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "influxdb3-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@influxdata/influxdb3-mcp-server"
      ],
      "env": {
        "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
        "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
        "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add influxdb3-mcp-server --env INFLUX_DB_PRODUCT_TYPE='<INFLUX_DB_PRODUCT_TYPE>' --env INFLUX_DB_TOKEN='<INFLUX_DB_TOKEN>' --env INFLUX_DB_MANAGEMENT_TOKEN='<INFLUX_DB_MANAGEMENT_TOKEN>' -- npx -y @influxdata/influxdb3-mcp-server

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.influxdb3-mcp-server]
command = "npx"
args = ["-y", "@influxdata/influxdb3-mcp-server"]
env = { INFLUX_DB_PRODUCT_TYPE = "<INFLUX_DB_PRODUCT_TYPE>", INFLUX_DB_TOKEN = "<INFLUX_DB_TOKEN>", INFLUX_DB_MANAGEMENT_TOKEN = "<INFLUX_DB_MANAGEMENT_TOKEN>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "influxdb3-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@influxdata/influxdb3-mcp-server"
      ],
      "env": {
        "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
        "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
        "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "influxdb3-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "@influxdata/influxdb3-mcp-server"
          ],
          "env": {
            "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
            "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
            "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e INFLUX_DB_PRODUCT_TYPE='<INFLUX_DB_PRODUCT_TYPE>' -e INFLUX_DB_TOKEN='<INFLUX_DB_TOKEN>' -e INFLUX_DB_MANAGEMENT_TOKEN='<INFLUX_DB_MANAGEMENT_TOKEN>' influxdb3-mcp-server npx -- -y @influxdata/influxdb3-mcp-server

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "influxdb3-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "@influxdata/influxdb3-mcp-server"
          ],
          "env": {
            "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
            "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
            "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "influxdb3-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "@influxdata/influxdb3-mcp-server"
          ],
          "env": {
            "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
            "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
            "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "influxdb3-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "@influxdata/influxdb3-mcp-server"
          ],
          "env": {
            "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
            "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
            "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "influxdb3-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "@influxdata/influxdb3-mcp-server"
          ],
          "env": {
            "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
            "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
            "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "influxdb3-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "@influxdata/influxdb3-mcp-server"
          ],
          "env": {
            "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
            "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
            "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "influxdb3-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "@influxdata/influxdb3-mcp-server"
          ],
          "env": {
            "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
            "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
            "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "influxdb3-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "@influxdata/influxdb3-mcp-server"
          ],
          "env": {
            "INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>",
            "INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
            "INFLUX_DB_MANAGEMENT_TOKEN": "<INFLUX_DB_MANAGEMENT_TOKEN>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • INFLUX_DB_PRODUCT_TYPEInfluxDB edition or service; use its runtime configuration value.Required
  • INFLUX_DB_TOKENOperator, admin, resource or database token. Required for Core, Enterprise and Cloud Serverless; needed for query/write on Cloud Dedicated and Clustered.
  • INFLUX_DB_INSTANCE_URLInfluxDB URL. Required for Core, Enterprise, Cloud Serverless and Clustered; e.g. http://localhost:8181/ for Core or Enterprise.
  • INFLUX_DB_MANAGEMENT_TOKENManagement API token for Cloud Dedicated or Clustered. Provide this or INFLUX_DB_TOKEN, or both for full functionality.
  • INFLUX_DB_ACCOUNT_IDAccount ID required when using a management token with Cloud Dedicated.
  • INFLUX_DB_CLUSTER_IDCluster ID required for Cloud Dedicated.
  • INFLUX_MCP_TOOL_PROFILETools to expose. readonly exposes read-only tools; readwrite also allows writes; operator exposes all tools.

About InfluxDB 3

Version 2.0 of this official server reshapes its responses around a read-only output contract: results carry metadata about completeness, caps and warnings, and database discovery marks values it cannot confirm as unknown. Argument mistakes come back as structured errors with a code, a recovery hint and a retryable flag, so an agent can decide whether to fix a table name, narrow a query or switch endpoint.

The INFLUX_MCP_TOOL_PROFILE setting picks how much power the agent gets: readonly leaves out anything that writes data, administers databases, manages tokens or runs on the host, readwrite adds writes, and operator (the default) exposes everything. It covers InfluxDB 3 Core and Enterprise as well as Cloud Serverless, Cloud Dedicated and Clustered, each with its own token and URL settings.

Read tools run bounded SQL or InfluxQL, reject unsafe statements such as SELECT INTO, and return request and query ids to correlate with system.queries. The README walks through an analyst exploring an unfamiliar database and an operator debugging a dashboard panel. It needs a current Node.js 22, 24 or 26 release.

Tools this server provides (14)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 14 tools deletes data and 4 change data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

load_database_context
Load optional custom database context and documentation
get_helpName suggests: reads
Get help and troubleshooting guidance for InfluxDB operations
write_line_protocolName suggests: changes
Write data using InfluxDB line protocol
create_databaseName suggests: changes
Create a new database with cloud-specific options
update_databaseName suggests: changes
Update database configuration such as retention
delete_databaseName suggests: deletes
Delete a database by name (irreversible)
execute_queryName suggests: changes
Deprecated since 2.0.0; use query_sql
query_sqlName suggests: reads
Run bounded read-only SQL with structured response metadata
query_influxqlName suggests: reads
Run bounded read-only InfluxQL with structured response metadata
list_databasesName suggests: reads
List accessible databases
list_tablesName suggests: reads
List tables in a database
describe_tableName suggests: reads
Describe a table's columns
health_checkName suggests: reads
Report separate health and ping outcomes
investigate_database
Sample tables over a time window and report per-table results

What it does

Tool profiles
Choose readonly, readwrite or operator to limit what the agent can do.
Bounded queries
Run SQL or InfluxQL with limits, truncation status and warnings.
Structured errors
Failures carry an error code, recovery hint and retryable flag.
Schema discovery
List databases and tables and describe columns before querying.
Database investigation
Sample tables over a time window and keep per-table results even if one fails.
Multiple editions
Works with Core, Enterprise, Cloud Serverless, Cloud Dedicated and Clustered.

Good for

  • Ask which sensors had the highest average temperature in the last day
  • Diagnose why a dashboard panel stopped showing data
  • Explore an unfamiliar InfluxDB schema
  • Write line protocol data from an agent
  • Give analysts a read-only profile with no write tools

InfluxDB 3 FAQ

Can I stop the agent from writing data?

Yes. Set INFLUX_MCP_TOOL_PROFILE to readonly to leave out write, admin, token and host tools.

Which InfluxDB versions are supported?

InfluxDB 3 Core and Enterprise, plus Cloud Dedicated, Clustered and Cloud Serverless.

What credentials are needed?

A token and instance URL for most editions; Cloud Dedicated and Clustered use a management token with account and cluster ids.

Is execute_query still available?

It is deprecated since 2.0.0 in favour of query_sql and kept for compatibility.

How do I add InfluxDB 3 to Claude Code?

Run this command in your terminal: claude mcp add influxdb3-mcp-server --env INFLUX_DB_PRODUCT_TYPE='<INFLUX_DB_PRODUCT_TYPE>' --env INFLUX_DB_TOKEN='<INFLUX_DB_TOKEN>' --env INFLUX_DB_MANAGEMENT_TOKEN='<INFLUX_DB_MANAGEMENT_TOKEN>' -- npx -y @influxdata/influxdb3-mcp-server

What are the best alternatives to InfluxDB 3?

The closest alternatives to InfluxDB 3 are Galactus DB, Mysql, MCP Server Couchbase, Universal DB (read-only) and Dbboard.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers