
InfluxDB MCP Server
Official MCP server for InfluxDB 3 (Core/Enterprise/Cloud) — query, write, and manage databases and tokens.
Add to your client
Copy the config for your MCP client and paste it into its config file.
npx -y @influxdata/influxdb3-mcp-serverPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"influxdb-mcp-server": {
"command": "npx",
"args": [
"-y",
"@influxdata/influxdb3-mcp-server"
],
"env": {
"INFLUX_DB_INSTANCE_URL": "http://localhost:8181/",
"INFLUX_DB_TOKEN": "<YOUR_INFLUXDB_TOKEN>",
"INFLUX_DB_PRODUCT_TYPE": "core"
}
}
}
}Step-by-step guides: Add to Claude Desktop · Add to Cursor · Add to Windsurf
Before you start
- An InfluxDB 3 instance: URL and token (Core/Enterprise/Cloud Serverless), or Cluster ID and tokens (Cloud Dedicated/Clustered)
- Node.js v20.11 or newer (for npm/npx usage)
- npm v9 or newer (for npm/npx usage)
- Docker (for the Docker-based setup)
About InfluxDB MCP Server
InfluxData's official MCP server for InfluxDB 3. It connects MCP clients to any InfluxDB v3 edition (Core, Enterprise, Cloud Dedicated, Clustered, Cloud Serverless) and provides tools for querying with SQL, writing line protocol, exploring schemas, managing databases and retention, and administering tokens. Resources expose configuration, health, and database listings, while prompts offer ready-made operations. Runs over stdio via Node/npx or Docker, configured through environment variables.
Tools & capabilities (22)
load_database_contextLoad optional custom database context and documentation (all versions).
get_helpGet help and troubleshooting guidance for InfluxDB operations (all versions).
write_line_protocolWrite data using InfluxDB line protocol (all versions).
create_databaseCreate a new database, with cloud-specific config options (all versions).
update_databaseUpdate database configuration: retention for all; maxTables/maxColumns for Cloud Dedicated/Clustered (all versions).
delete_databaseDelete a database by name (irreversible; all versions).
execute_queryRun a SQL query against a database, supporting multiple output formats (all versions).
get_measurementsList all measurements (tables) in a database (all versions).
get_measurement_schemaGet the schema (columns/types) for a measurement/table (all versions).
create_admin_tokenCreate a new admin token with full permissions (Core/Enterprise only).
list_admin_tokensList all admin tokens, with optional filtering (Core/Enterprise only).
create_resource_tokenCreate a resource token for specific databases and permissions (Core/Enterprise only).
list_resource_tokensList all resource tokens, with filtering and ordering (Core/Enterprise only).
delete_tokenDelete a token by name (Core/Enterprise only).
regenerate_operator_tokenRegenerate the operator token (dangerous/irreversible; Core/Enterprise only).
cloud_list_database_tokensList all database tokens for a Cloud Dedicated/Clustered cluster.
cloud_get_database_tokenGet details of a specific database token by ID (Cloud Dedicated/Clustered).
cloud_create_database_tokenCreate a new database token for a Cloud Dedicated/Clustered cluster.
cloud_update_database_tokenUpdate an existing database token (Cloud Dedicated/Clustered).
cloud_delete_database_tokenDelete a database token from a Cloud Dedicated/Clustered cluster.
list_databasesList all available databases in the instance (all versions).
health_checkCheck InfluxDB connection and health status (all versions).
What this server can do
InfluxDB MCP Server provides tools for these capabilities — tap one to see every MCP server that does the same:
When to use it
- Ask an AI assistant to run SQL queries against InfluxDB 3 time-series data and return formatted results.
- Write metrics or events into InfluxDB using line protocol from within a chat workflow.
- Explore database structure by listing measurements and inspecting column schemas.
- Create, update (retention/limits), or delete databases across InfluxDB editions.
- Administer access by creating, listing, and deleting admin, resource, or cloud database tokens.
- Check instance health and configuration via built-in resources and prompts.
Security notes
Requires an InfluxDB token passed via the INFLUX_DB_TOKEN environment variable (and optionally a management token for cloud editions). Several tools are destructive or sensitive: delete_database is irreversible, regenerate_operator_token is dangerous/irreversible, and the create/delete token tools grant or revoke access. Scope tokens to least privilege; for Cloud Dedicated/Clustered you can supply a database-token-only combination to restrict the server to query/write operations.
InfluxDB MCP Server FAQ
Which InfluxDB editions are supported?
InfluxDB 3 Core, Enterprise, Cloud Dedicated, Clustered, and Cloud Serverless. Some token-management tools are limited to specific editions (e.g. admin/resource tokens are Core/Enterprise only; cloud database token tools are for Cloud Dedicated/Clustered).
How is it configured?
Entirely through environment variables. At minimum set INFLUX_DB_INSTANCE_URL, INFLUX_DB_TOKEN, and INFLUX_DB_PRODUCT_TYPE. Cloud Dedicated/Clustered editions accept additional variables (cluster ID, account ID, management token) and support query-only, management-only, or full-access token combinations.
What are the installation options?
Run it locally via a Node build, directly with npx using @influxdata/influxdb3-mcp-server, or via Docker (building the image first with docker compose build or npm run docker:build). The README includes ready-to-use example-*.mcp.json templates for each.
Is it official?
Yes. It is maintained by InfluxData, the company behind InfluxDB, and is licensed under MIT.
Alternatives to InfluxDB MCP Server
Compare all alternatives →Google's official MCP server with prebuilt BigQuery tools, querying datasets via Application Default Credentials.
Create, manage, and query your InstantDB apps, schemas, permissions, and data from your AI editor.
Compare InfluxDB MCP Server with: