Skip to content

Menu

InfluxDB MCP Server logo

InfluxDB MCP Server

Published

At a glance

Category
Databases
Watch out for
Without INFLUX_MCP_TOOL_PROFILE=readonly the server exposes the full operator profile, including delete_database and regenerate_operator_token, which the README describes as irreversible.

InfluxData publishes this server in the influxdata/influxdb3_mcp_server repository. It talks to InfluxDB 3 Core and Enterprise, and also to InfluxDB Cloud Dedicated, InfluxDB Clustered and InfluxDB Cloud Serverless, exposing tools, resources and prompts to an MCP client.

It runs locally as a Node.js process over stdio. You can build it from source with pnpm, run the published npm package @influxdata/influxdb3-mcp-server with npx, or build the Docker image from the repo. Which product you point it at is set by INFLUX_DB_PRODUCT_TYPE, and that choice also decides which token tools appear.

Version 2.0 changed the shape of query results, health-check output and argument errors. Query tools now return metadata about completeness, row caps and warnings, and the repo documents a read-only output contract telling agents which of those fields must reach the final answer. A capped or interrupted result has to be called out rather than presented as complete.

How it connects

Your AI app

An assistant or agent that supports MCP

InfluxDB MCP Server

Runs as

  • npx (Node.js)
  • Docker

Gives the agent

  • Bounded queries
  • Schema discovery
  • Database investigation
  • Writes and database admin
  • Token management
  • Health and context

InfluxDB

The data or system the tools act on

Your AI app talks to InfluxDB MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Bounded queries
query_sql and query_influxql run bounded read-only SQL or InfluxQL and return row counts, truncation state and warnings such as limit_reached. execute_query still exists but is deprecated in favour of query_sql.
Schema discovery
list_databases, list_tables, describe_table, get_measurements and get_measurement_schema let an agent find databases, measurements and columns before it writes a query.
Database investigation
investigate_database samples each table over a time window (24 hours by default, adjustable with sampleWindowHours) and keeps per-table results even when one table fails.
Writes and database admin
write_line_protocol writes data in line protocol, and create_database, update_database and delete_database manage databases. delete_database is marked irreversible.
Token management
On Core and Enterprise there are tools like create_admin_token, list_admin_tokens, delete_token and regenerate_operator_token. Cloud Dedicated and Clustered get cloud_list_database_tokens, cloud_create_database_token and related tools.
Health and context
health_check reports health and ping outcomes separately, and load_database_context plus get_help give the agent custom documentation and troubleshooting guidance.

Setting it up

The quickest route needs no build: add an influxdb entry to your MCP client's mcpServers config with command "npx" and args ["-y", "@influxdata/[email protected]"]. In its env block set INFLUX_DB_INSTANCE_URL (for example http://localhost:8181/), INFLUX_DB_TOKEN and INFLUX_DB_PRODUCT_TYPE (core, enterprise or cloud-serverless), and add INFLUX_MCP_TOOL_PROFILE=readonly if the agent should only explore and query. Cloud Dedicated needs INFLUX_DB_PRODUCT_TYPE=cloud-dedicated and INFLUX_DB_CLUSTER_ID, plus a database token, or INFLUX_DB_ACCOUNT_ID with INFLUX_DB_MANAGEMENT_TOKEN for management, or both. Clustered uses INFLUX_DB_PRODUCT_TYPE=clustered with INFLUX_DB_INSTANCE_URL and the same token options. The npx path requires Node.js 22.23.4 or a later 22.x, 24.22.1 or a later 24.x, or 26.12.1 or newer. To build from source instead, run pnpm install and pnpm run build, then point the client at node with the absolute path to build/index.js. A Docker image can be built with docker compose build.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Answer a question such as which sensors had the highest average temperature in the last 24 hours, by listing tables, describing columns and running a bounded query_sql call.
  • Troubleshoot an InfluxQL dashboard panel that stopped returning data by rerunning the query with query_influxql and checking the measurement and columns it references.
  • Sample an unfamiliar database with investigate_database to see which tables hold recent data and what their columns look like.
  • Create a database and write test points with write_line_protocol while setting up a local InfluxDB 3 Core instance.
  • List or rotate admin tokens on a Core or Enterprise server during routine operations work.

Limitations and things to watch

  • Without INFLUX_MCP_TOOL_PROFILE=readonly the server exposes the full operator profile, including delete_database and regenerate_operator_token, which the README describes as irreversible.
  • The server forwards INFLUX_DB_TOKEN as a Bearer header without inspecting it, so the token's own permissions decide what the agent can read or change.
  • Query results can be capped or interrupted, and an empty sample window in investigate_database does not mean a table is empty.
  • Token tools differ by product: resource tokens are Enterprise only, admin tokens are Core and Enterprise only, and the cloud_ token tools apply to Cloud Dedicated and Clustered.
  • Cardinality estimates are not supported yet, and a 403 response means the database may not exist or the token is simply denied.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…