# InfluxDB 3

> InfluxDB 3 is an MCP server for databases. Query, write to and manage InfluxDB 3 databases from your AI client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, API
- **Repository:** https://github.com/influxdata/influxdb3_mcp_server
- **MCP Registry name:** io.github.influxdata/influxdb3-mcp-server
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

```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 Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
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
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```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>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```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>"
      }
    }
  }
}
```

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## Tools

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_help` (name suggests: reads): Get help and troubleshooting guidance for InfluxDB operations
- `write_line_protocol` (name suggests: changes): Write data using InfluxDB line protocol
- `create_database` (name suggests: changes): Create a new database with cloud-specific options
- `update_database` (name suggests: changes): Update database configuration such as retention
- `delete_database` (name suggests: deletes): Delete a database by name (irreversible)
- `execute_query` (name suggests: changes): Deprecated since 2.0.0; use query_sql
- `query_sql` (name suggests: reads): Run bounded read-only SQL with structured response metadata
- `query_influxql` (name suggests: reads): Run bounded read-only InfluxQL with structured response metadata
- `list_databases` (name suggests: reads): List accessible databases
- `list_tables` (name suggests: reads): List tables in a database
- `describe_table` (name suggests: reads): Describe a table's columns
- `health_check` (name suggests: reads): Report separate health and ping outcomes
- `investigate_database`: Sample tables over a time window and report per-table results

## 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.

## Alternatives

- [Galactus DB](https://ai-powered.com/mcp/galactus-db): Galactus DB is a free MCP server for databases.
- [Mysql](https://ai-powered.com/mcp/mysql-3): Mysql is an open-source MCP server for databases.
- [MCP Server Couchbase](https://ai-powered.com/mcp/mcp-server-couchbase): MCP Server Couchbase is an open-source MCP server for databases.
- [Universal DB (read-only)](https://ai-powered.com/mcp/universal-db-read-only): Universal DB (read-only) is an open-source MCP server for databases.
- [Dbboard](https://ai-powered.com/mcp/dbboard): Dbboard is an open-source MCP server for databases.
- [AI2SQL](https://ai-powered.com/mcp/ai2sql): AI2SQL is a freemium MCP server for databases.
- [RisingWave](https://ai-powered.com/mcp/risingwave): RisingWave is an open-source MCP server for databases.
- [Mongodb MCP Server](https://ai-powered.com/mcp/mongodb-mcp-server): Mongodb MCP Server is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/influxdb-3
