MCP Directory

How to add InfluxDB v2 MCP Server to Cursor

Query, write, and manage an InfluxDB v2 instance via the InfluxDB OSS API v2. Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 41 · stdio · apikey

Cursor config for InfluxDB v2 MCP Server

npx influxdb-mcp-server
{
  "mcpServers": {
    "influxdb-v2-mcp-server": {
      "command": "npx",
      "args": [
        "influxdb-mcp-server"
      ],
      "env": {
        "INFLUXDB_TOKEN": "your_token",
        "INFLUXDB_URL": "http://localhost:8086",
        "INFLUXDB_ORG": "your_org"
      }
    }
  }
}

Setup steps

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the InfluxDB v2 MCP Server config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of InfluxDB v2 MCP Server's tools to confirm it's connected.

Before you start

  • An InfluxDB v2 (OSS API v2) instance, reachable at INFLUXDB_URL (defaults to http://localhost:8086)
  • An InfluxDB API authentication token set via INFLUXDB_TOKEN
  • Node.js with npx (for the recommended npx-based run/install)

What InfluxDB v2 MCP Server can do in Cursor

write-data

Write time-series data in line protocol format. Parameters: org, bucket, data, precision (optional).

query-data

Execute Flux queries. Parameters: org, query.

create-bucket

Create a new bucket. Parameters: name, orgID, retentionPeriodSeconds (optional).

create-org

Create a new organization. Parameters: name, description (optional).

Security

Requires an InfluxDB API authentication token supplied via the INFLUXDB_TOKEN environment variable. The token grants the configured access to your InfluxDB instance (read/write/manage), so scope it appropriately and keep it secret.

InfluxDB v2 MCP Server + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the InfluxDB v2 MCP Server config there under the "mcpServers" key and restart the client.

Is InfluxDB v2 MCP Server safe to use with Cursor?

Requires an InfluxDB API authentication token supplied via the INFLUXDB_TOKEN environment variable. The token grants the configured access to your InfluxDB instance (read/write/manage), so scope it appropriately and keep it secret.

Which InfluxDB version does this support?

InfluxDB v2, accessed through the InfluxDB OSS API v2.

What transports are available?

stdio by default (selectable with --stdio), or Streamable HTTP with the --http option and an optional port (defaults to 3000), served via an internal Express.js server.

What environment variables are required?

INFLUXDB_TOKEN is required. INFLUXDB_URL (defaults to http://localhost:8086) and INFLUXDB_ORG (default org for certain operations) are optional.

View repo Full InfluxDB v2 MCP Server page