InfluxDB MCP Server
OfficialAn MCP server that connects AI agents to InfluxDB 3 (Core, Enterprise, Cloud Dedicated, Serverless, Clustered) for read-only data exploration and querying, with optional write and administration tools.
Run bounded, read-only SQL (
query_sql) and InfluxQL (query_influxql) queries returning rows, row counts, truncation/completeness metadata, warnings, and correlation IDsDiscover structure:
list_databases,list_tables,describe_table,get_measurements,get_measurement_schema— with unknown tag/field roles reported asunknownrather than guessedInvestigate a database end-to-end: enumerate tables, describe schemas, and sample recent rows within a configurable time window
Check connectivity with
health_check(separate health and ping outcomes)Write data via line protocol, single records or batches (
write_line_protocol)Manage databases: create, update (retention, maxTables, maxColumnsPerTable, description), and delete
Manage tokens: admin tokens and operator token regeneration (Core/Enterprise), resource tokens (Enterprise), and database tokens (Cloud Dedicated/Clustered)
Load custom context from user-provided files and get built-in help/troubleshooting via
get_helpRestrict to safe mode with
INFLUX_MCP_TOOL_PROFILE=readonly, which hides every write, admin, token, and host-execution toolEmit structured telemetry to stderr or a JSONL file (tool name, duration, row count, error code) without logging tokens or query text
Provides tools for managing InfluxDB 3 instances (Core, Enterprise, Cloud Serverless, Cloud Dedicated, Clustered) including database CRUD, token management, query execution, and schema introspection.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@InfluxDB MCP Server Show me the measurements in my database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
InfluxDB 3 MCP Server
Model Context Protocol (MCP) server for InfluxDB 3 integration. Provides tools, resources, and prompts for interacting with InfluxDB 3 Core and Enterprise, plus InfluxDB Cloud Dedicated, InfluxDB Clustered, and InfluxDB Cloud Serverless via MCP clients.
Prerequisites
InfluxDB 3 Instance: URL and token (Core/Enterprise/Cloud Serverless) or Cluster ID and tokens (Cloud Dedicated/Clustered)
Node.js: 22.23.4 or a later 22.x, 24.22.1 or a later 24.x, or 26.12.1 or newer (for npm/npx usage)
pnpm: use the version pinned in
package.jsonfor local development. Runcorepack enableto activate it.Docker: (for Docker-based setup)
Node.js verifies TLS servers with a root certificate store built into the
node binary. Earlier releases include roots that chain to compromised
eMudhra/emSign intermediate CAs. The Docker image uses the latest Node.js 24
release. npm/npx installations use your local Node.js, so update it to a
release listed above. Node.js 20 is end of life and has no fixed release.
Related MCP server: InfluxDB OSS API MCP Server
Migrating to 2.0
Version 2.0 changes query result envelopes, health-check output, argument errors,
and telemetry. Clients that parse these responses must follow the
read-only output contract.
Read metadata.completeness, caps, and warnings before treating query results
as a complete answer. Discovery metadata states its source and leaves
unavailable values unknown. Tool names and configured profiles remain available.
Read-only Agent Workflows
Set INFLUX_MCP_TOOL_PROFILE=readonly to give an MCP client tools that explore
and query data. The profile leaves out every tool that writes data, administers
databases, manages tokens, or runs on the host.
Credentials
Set INFLUX_DB_TOKEN to an admin token, a scoped token, or an Enterprise
user-authentication JWT. The server sends it in a Bearer header without
inspecting it, so the token's permissions decide which databases the tools can
read.
Query arguments
query_sql and query_influxql accept database for db and query for q.
A call that gives both names with different values fails with
invalid_arguments. Every argument error is a structured tool error and is
recorded in telemetry.
Discovery
list_databases returns what the server lists, with visibility: "unknown",
because a listed database might still be unreadable. health_check returns JSON
with separate health and ping outcomes. A scoped token can be denied both checks
and still read its databases.
investigate_database keeps each table's result even when another table fails,
and reports how many tables it saw and whether it stopped early. Samples come
from a time window, 24 hours by default; set sampleWindowHours to change it.
An empty window doesn't mean the table is empty.
On Core and Enterprise, describe_table and investigation use
system.influxdb_schema for authoritative column roles.
They also read schema mode and deletion status from the _internal catalog
when the same credential permits it, reporting source: "server" and the
catalog table name. Unavailable values stay unknown; catalog denial does
not discard readable column metadata or samples.
Without authoritative deletion metadata, a table name with a timestamp-shaped
suffix gets an advisory possibly_deleted warning and stays listed.
Cardinality estimates aren't supported yet.
Errors
When a call fails, read error.code, error.recovery, and error.retryable:
A
403isnot_found_or_denied. A token without access gets403whether or not the database exists.A
404isnot_found.A SQL query that names an unknown table has
recovery: "fix_reference". Calllist_tablesordescribe_tablefor the right name.A query that runs out of server memory has
recovery: "narrow".A query sent to an Enterprise ingest-only node has
recovery: "change_endpoint".Other server failures have
recovery: "none".
EXPLAIN ANALYZE runs the query within the same bounds and adds a
diagnostic_execution warning.
Analyst explores an unfamiliar database
An analyst can connect an MCP client such as Claude Desktop, Cursor, Codex, or another agent harness and ask a question like:
Which sensors had the highest average temperature in the last 24 hours?With the read-only profile, the agent can:
Call
list_databasesto see accessible databases.Call
list_tablesanddescribe_tableto discover measurements and columns.Treat uncertain tag and field categories as
unknown.Build a bounded SQL query with
db,q, and optionalparams.Call
query_sqlwith structured JSON output.Return the result, row count, truncation status, warnings, and correlation metadata.
The user gets a grounded answer and a reusable query while the agent explores and queries data without access to mutation or administration tools.
For a reproducible local version of this example, see the sensor-temperature demo.
Operator investigates an InfluxQL dashboard query
An operator can troubleshoot an existing InfluxQL dashboard panel and ask:
Why did this panel stop showing data after the deploy?With the read-only profile, the agent can:
Keep the user's query in InfluxQL and call
query_influxql.Use
SHOWqueries and schema discovery to verify the measurement and referenced columns.Sample recent rows with bounded reads to distinguish missing data from a broken query.
Reject unsafe follow-up attempts, such as
SELECT INTOor destructive statements.Return
request_id,query_id, andquery_id_sourceso the operator can correlate the MCP result withsystem.queries.idwhen query history is available.Emit structured logs to stderr for stdio transports so stdout remains reserved for MCP protocol messages.
The user gets a practical diagnosis, such as missing data, renamed schema, a wrong time predicate, or a query failure. The investigation is traceable without logging full query text by default.
Available Tools
Tool Name | Description | Availability |
| Load optional custom database context and documentation | All versions |
| Get help and troubleshooting guidance for InfluxDB operations | All versions |
| Write data using InfluxDB line protocol | All versions |
| Create a new database (with cloud-specific config options) | All versions |
| Update database configuration (retention for all; maxTables/maxColumns for Cloud Dedicated/Clustered) | All versions |
| Delete a database by name (irreversible) | All versions |
| Deprecated since 2.0.0. Use | All versions |
| Run bounded read-only SQL with structured response metadata | All versions |
| Run bounded read-only InfluxQL with structured response metadata | All versions |
| List all measurements (tables) in a database | All versions |
| Get schema (columns/types) for a measurement/table | All versions |
| List tables, also called measurements, in a database | All versions |
| Describe table schema with conservative column categories | All versions |
| Run high-level read-only database discovery and sampling | All versions |
| Create a named admin token with an optional expiration | Core/Enterprise only |
| List all admin tokens (with optional filtering) | Core/Enterprise only |
| Create a resource token for specific DBs and permissions | Enterprise only |
| List all resource tokens (with filtering and ordering) | Enterprise only |
| Delete a token by name | Core/Enterprise only |
| Regenerate the operator token (dangerous/irreversible) | Core/Enterprise only |
| List all database tokens for Cloud-Dedicated/Clustered cluster | Cloud Dedicated/Clustered |
| Get details of a specific database token by ID | Cloud Dedicated/Clustered |
| Create a new database token for Cloud-Dedicated/Clustered cluster | Cloud Dedicated/Clustered |
| Update an existing database token | Cloud Dedicated/Clustered |
| Delete a database token from Cloud-Dedicated/Clustered cluster | Cloud Dedicated/Clustered |
| List all available databases in the instance | All versions |
| Check InfluxDB connection and health status | All versions |
Available Resources
Resource Name | Description |
| Read-only access to InfluxDB configuration |
| Real-time connection and health status |
| List of all databases in the instance |
| Custom user-provided database context and documentation |
Available Prompts
Prompt Name | Description |
| Generate a prompt to list all available databases |
| Generate a prompt to check InfluxDB health status |
| Load custom database context and documentation |
Setup & Integration Guide
1. Environment Variables
For Core/Enterprise InfluxDB:
You must provide:
INFLUX_DB_INSTANCE_URL(e.g.http://localhost:8181/)INFLUX_DB_TOKENINFLUX_DB_PRODUCT_TYPE(coreorenterprise)
Example .env:
INFLUX_DB_INSTANCE_URL=http://localhost:8181/
INFLUX_DB_TOKEN=your_influxdb_token_here
INFLUX_DB_PRODUCT_TYPE=coreFor Cloud Serverless InfluxDB:
You must provide:
INFLUX_DB_INSTANCE_URL(e.g.https://us-east-1-1.aws.cloud2.influxdata.com)INFLUX_DB_TOKENINFLUX_DB_PRODUCT_TYPE(cloud-serverless)
Example .env:
INFLUX_DB_INSTANCE_URL=https://us-east-1-1.aws.cloud2.influxdata.com
INFLUX_DB_TOKEN=your_influxdb_token_here
INFLUX_DB_PRODUCT_TYPE=cloud-serverlessFor Cloud Dedicated InfluxDB:
You must provide INFLUX_DB_PRODUCT_TYPE=cloud-dedicated and INFLUX_DB_CLUSTER_ID, plus one of these token combinations:
Option 1: Database Token Only (Query/Write operations only):
INFLUX_DB_PRODUCT_TYPE=cloud-dedicated
INFLUX_DB_CLUSTER_ID=your_cluster_id_here
INFLUX_DB_TOKEN=your_database_token_hereOption 2: Management Token Only (Database management only):
INFLUX_DB_PRODUCT_TYPE=cloud-dedicated
INFLUX_DB_CLUSTER_ID=your_cluster_id_here
INFLUX_DB_ACCOUNT_ID=your_account_id_here
INFLUX_DB_MANAGEMENT_TOKEN=your_management_token_hereOption 3: Both Tokens (Full functionality):
INFLUX_DB_PRODUCT_TYPE=cloud-dedicated
INFLUX_DB_CLUSTER_ID=your_cluster_id_here
INFLUX_DB_ACCOUNT_ID=your_account_id_here
INFLUX_DB_TOKEN=your_database_token_here
INFLUX_DB_MANAGEMENT_TOKEN=your_management_token_hereFor Clustered InfluxDB:
You must provide INFLUX_DB_PRODUCT_TYPE=clustered and INFLUX_DB_INSTANCE_URL, plus one of these token combinations:
Option 1: Database Token Only (Query/Write operations only):
INFLUX_DB_PRODUCT_TYPE=clustered
INFLUX_DB_INSTANCE_URL=https://your_cluster_host.com
INFLUX_DB_TOKEN=your_database_token_hereOption 2: Management Token Only (Database management only):
INFLUX_DB_PRODUCT_TYPE=clustered
INFLUX_DB_INSTANCE_URL=https://your_cluster_host.com
INFLUX_DB_MANAGEMENT_TOKEN=your_management_token_hereOption 3: Both Tokens (Full functionality):
INFLUX_DB_PRODUCT_TYPE=clustered
INFLUX_DB_INSTANCE_URL=https://your_cluster_host.com
INFLUX_DB_TOKEN=your_database_token_here
INFLUX_DB_MANAGEMENT_TOKEN=your_management_token_hereSee corresponding env.<instancetype>.example for examples and detailed info.
Optional MCP tool profile and telemetry
Use INFLUX_MCP_TOOL_PROFILE=readonly to expose only read-only tools. If
unset, the server uses the full operator tool profile.
INFLUX_MCP_TOOL_PROFILE=readonlyTool-call telemetry is enabled by default and writes structured JSON lines to
stderr, which keeps stdout reserved for MCP stdio protocol messages. To
disable telemetry:
MCP_LOG_TOOL_CALLS=falseTo write telemetry to a file, configure the file backend:
MCP_LOG_BACKEND=file
MCP_LOG_FILE=/logs/influxdb-mcp.jsonlThe telemetry log includes tool name, request ID, query ID, duration, database,
row count, truncation state, success state, and error code. It does not log API
tokens, request headers, tool arguments, or query text. Sample harness profiles
live in harness-profiles/; for approval settings and repeatable E2E prompts,
see AGENT_E2E_TESTS.md.
2. Integration with MCP Clients
A. Local (pnpm install & run)
Install dependencies:
pnpm installBuild the server:
pnpm run buildConfigure your MCP client to use the built server. Example (see
example-local.mcp.json):{ "mcpServers": { "influxdb": { "command": "node", "args": ["/absolute/path/to/influxdb3_mcp_server/build/index.js"], "env": { "INFLUX_DB_INSTANCE_URL": "http://localhost:8181/", "INFLUX_DB_TOKEN": "<YOUR_INFLUXDB_TOKEN>", "INFLUX_DB_PRODUCT_TYPE": "core", "INFLUX_MCP_TOOL_PROFILE": "readonly" } } } }
B. Local (npx, no install/build required)
Run the published 2.0.1 release with npx:
{ "mcpServers": { "influxdb": { "command": "npx", "args": ["-y", "@influxdata/influxdb3-mcp-server@2.0.1"], "env": { "INFLUX_DB_INSTANCE_URL": "http://localhost:8181/", "INFLUX_DB_TOKEN": "<YOUR_INFLUXDB_TOKEN>", "INFLUX_DB_PRODUCT_TYPE": "core", "INFLUX_MCP_TOOL_PROFILE": "readonly" } } } }
C. Docker
Before running the Docker integration, you must build the Docker image:
# Option 1: Use docker compose (recommended)
docker compose build
# Option 2: Use pnpm script
pnpm run docker:builda) Docker with remote InfluxDB instance (see example-docker.mcp.json):
{
"mcpServers": {
"influxdb": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"INFLUX_DB_INSTANCE_URL",
"-e",
"INFLUX_DB_TOKEN",
"-e",
"INFLUX_DB_PRODUCT_TYPE",
"mcp/influxdb"
],
"env": {
"INFLUX_DB_INSTANCE_URL": "http://remote-influxdb-host:8181/",
"INFLUX_DB_TOKEN": "<YOUR_INFLUXDB_TOKEN>",
"INFLUX_DB_PRODUCT_TYPE": "core"
}
}
}
}b) Docker with InfluxDB running in Docker on the same machine (see example-docker.mcp.json):
Use host.docker.internal as the InfluxDB URL so the MCP server container can reach the InfluxDB container:
{
"mcpServers": {
"influxdb": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--add-host=host.docker.internal:host-gateway",
"-e",
"INFLUX_DB_INSTANCE_URL",
"-e",
"INFLUX_DB_TOKEN",
"-e",
"INFLUX_DB_PRODUCT_TYPE",
"influxdb-mcp-server"
],
"env": {
"INFLUX_DB_INSTANCE_URL": "http://host.docker.internal:8181/",
"INFLUX_DB_TOKEN": "<YOUR_INFLUXDB_TOKEN>",
"INFLUX_DB_PRODUCT_TYPE": "enterprise"
}
}
}
}Example Usage
Use your MCP client to call tools, resources, or prompts as described above.
Custom Context: Edit the provided
context/database-context.mdfile or remove it and create your own context file with "context" in the name (.json,.txt,.md) to provide database documentation. Use theload_database_contexttool orload-contextprompt to access it.See the
example-*.mcp.jsonfiles for ready-to-use configuration templates:example-local.mcp.json- Local development setupexample-npx.mcp.json- NPX-based setupexample-docker.mcp.json- Docker-based setupexample-cloud-dedicated.mcp.json- Cloud Dedicated with all variablesexample-clustered.mcp.json- Clustered with all variablesexample-cloud-serverless.mcp.json- Cloud Serverless configuration
See the
env.example,env.cloud-dedicated.example,env.clustered.example, andenv.cloud-serverless.examplefiles for environment variable templates.See
AGENT_E2E_TESTS.mdfor MCP harness tips, read-only profile runs, and telemetry correlation checks.
Run Cloud Serverless integration tests
The Cloud Serverless test command accepts Claire's INFLUXDB3_CLOUD_* variables
and maps them to the MCP server's runtime variables.
The command sets INFLUX_TEST_ENABLED=true and INFLUX_DB_PRODUCT_TYPE=cloud-serverless.
For local tests with 1Password, store only op:// references in
~/.config/claire/cloud-serverless.env:
INFLUXDB3_CLOUD_URL=op://VAULT/ITEM/hostname
INFLUXDB3_CLOUD_TOKEN=op://VAULT/ITEM/token
INFLUXDB3_CLOUD_BUCKET=op://VAULT/ITEM/bucket
INFLUXDB3_CLOUD_ORG=op://VAULT/ITEM/orgRun the live tests through 1Password so the token exists only in the test process environment:
op run --env-file ~/.config/claire/cloud-serverless.env -- \
pnpm run test:integration:cloud-serverlessYou can instead copy env.cloud-serverless.example to the ignored
.env.cloud-serverless.local file and set the MCP runtime variables there.
Then run pnpm run test:integration:cloud-serverless directly.
To use another plaintext credentials file, set INFLUX_TEST_ENV_FILE:
INFLUX_TEST_ENV_FILE=/path/to/serverless.env pnpm run test:integration:cloud-serverlessGitHub Actions runs the same command with the existing URL and token secrets
from the cloud-serverless environment. The workflow selects the
mcp-ci-tests bucket explicitly.
Database Retention Policy Examples
Core/Enterprise - Set 90-day Retention
// Set 90-day retention policy on Enterprise instance
await mcp.update_database({
name: "my_database",
retentionPeriod: 7776000000000000, // 90 days in nanoseconds
});Cloud Dedicated - Update Multiple Settings
// Update retention, maxTables, and maxColumnsPerTable
await mcp.update_database({
name: "my_database",
retentionPeriod: 7776000000000000, // 90 days
maxTables: 1000,
maxColumnsPerTable: 250,
});Common Retention Periods
Duration | Nanoseconds |
7 days | 604,800,000,000,000 |
30 days | 2,592,000,000,000,000 |
90 days | 7,776,000,000,000,000 |
180 days | 15,552,000,000,000,000 |
1 year | 31,536,000,000,000,000 |
Support & Troubleshooting
Use the
get_helptool for built-in help and troubleshooting.For connection issues, check your environment variables and InfluxDB instance status.
For advanced configuration, see the comments in the example
.envand MCP config files.
Write errors
write_line_protocol surfaces InfluxDB's own error text, not a generic
message. If InfluxDB rejects a write — a duplicate tag key, an
unauthenticated token, a payload over the size limit — the tool error
includes the specific reason, for example:
Bad request: invalid line protocol - multiple instances of 'region' tag foundA 503 reaching this server is phrased as retryable
(Service temporarily unavailable, retry the write: ...) — safe to retry
the write. Any other status is not.
InfluxDB 3.11 compatibility
Verified against InfluxDB 3.11.5 Core and Enterprise, including a
multi-node Enterprise cluster). Core and Enterprise write through
POST /api/v3/write_lp, which 3.11's write-availability changes for the
legacy /api/v2/write endpoint do not affect; only clustered calls
/api/v2/write. Query and schema-discovery tools behave the same whether
the target database is on Parquet (Core, or Enterprise before an upgrade)
or PachaTree (Enterprise 3.11+ by default, or after
--upgrade-pacha-tree) — new system.pt_* tables are excluded from
get_measurements/get_measurement_schema results by the same
table_schema = 'iox' filter that already excludes other system tables.
Core and Enterprise create named admin tokens through
POST /api/v3/configure/token/named_admin.
Named admin tokens accept an optional expiration in seconds.
Only Enterprise supports resource tokens, so the MCP server doesn't advertise
resource-token tools for Core connections.
Publishing to the MCP Registry
Stable GitHub releases publish the npm package first, then register
io.github.influxdata/influxdb3-mcp-server in the
official MCP Registry.
The registry stores metadata; clients install the server from npm.
GitHub OIDC authenticates the release job using id-token: write, so no
additional registry secret is needed. Releases marked as prereleases or with
- in their tag skip registry publishing.
Before tagging a release, update package.json, src/config.ts, the latest
CHANGELOG.md entry, and both version fields in server.json together.
Keep package.json's mcpName equal to server.json's name. Check locally:
node scripts/check-versions.js
bash scripts/install-mcp-publisher.sh /tmp/mcp-publisher
/tmp/mcp-publisher validateThe installer pins and verifies the Linux amd64 publisher used in CI. The
validate command contacts the registry and checks metadata without publishing.
CI runs these checks, and the npm release job also checks the versions and tag.
The first registry release must use a freshly published npm version containing
mcpName; an existing npm version cannot be updated to add it.
After publishing, verify the release at each destination:
npm: The exact package version must exist and include the expected
mcpName.Docker Hub: The image tagged with the release version must be available.
MCP Registry: The exact version endpoint must return the expected server name and version. The registry release job automates this check.
From the release checkout, verify npm and the registry manually:
version="$(node -p "require('./package.json').version")"
pnpm view "@influxdata/influxdb3-mcp-server@$version" version mcpName
docker manifest inspect "influxdata/influxdb3-mcp-server:$version"
curl --fail --silent --show-error \
"https://registry.modelcontextprotocol.io/v0.1/servers/io.github.influxdata%2Finfluxdb3-mcp-server/versions/$version" \
| jq --exit-status --arg version "$version" \
'.server.name == "io.github.influxdata/influxdb3-mcp-server" and .server.version == $version'With valid database environment variables configured, also smoke-test the exact published npm version using MCP Inspector:
npx @modelcontextprotocol/inspector --cli \
npx -y "@influxdata/influxdb3-mcp-server@$version" --method tools/listMetadata validation checks the registry description; the smoke test checks that the published package initializes and advertises tools. Keep the release-note verification checklist unchecked until the corresponding checks pass.
If registry publishing fails after npm succeeds, rerun only the failed registry job; rerunning the successful npm job would try to publish an existing version.
License
Available Tools
25 toolscloud_create_database_tokenA
Create a new database token for InfluxDB Cloud-Dedicated/Clustered cluster. Specify exact permissions per database or create a no-access token.
Permissions format: [{"database": "db_name", "action": "read|write"}, ...] Examples: • No access: omit permissions field or use [] • Read-only on 'analytics': [{"database": "analytics", "action": "read"}] • Mixed permissions: [{"database": "logs", "action": "read"}, {"database": "metrics", "action": "write"}] • Full access: [{"database": "", "action": "read"}, {"database": "", "action": "write"}]
Inputs: description (required), permissions.
cloud_delete_database_tokenA
Delete a database token from InfluxDB Cloud-Dedicated/Clustered cluster. This action cannot be undone.
Inputs: token_id (required).
cloud_get_database_tokenA
Get details of a specific database token by ID for InfluxDB Cloud-Dedicated/Clustered cluster.
Inputs: token_id (required).
cloud_list_database_tokensA
List all database tokens for InfluxDB Cloud-Dedicated/Clustered cluster. Returns token information including permissions and creation dates.
Inputs: no named parameters.
cloud_update_database_tokenA
Update an existing database token for InfluxDB Cloud-Dedicated/Clustered cluster. Can update description and/or permissions with precise control.
Permissions format: [{"database": "db_name", "action": "read|write"}, ...] Note: Permissions completely replace existing ones - include all desired permissions. Examples: • No access: use [] • Read-only on 'analytics': [{"database": "analytics", "action": "read"}] • Mixed permissions: [{"database": "logs", "action": "read"}, {"database": "metrics", "action": "write"}] • Full access: [{"database": "", "action": "read"}, {"database": "", "action": "write"}]
Inputs: token_id (required), description, permissions.
create_admin_tokenA
Create a new InfluxDB named admin token with full administrative permissions (Core/Enterprise only). Named admin tokens can manage databases, users, and resource tokens, but cannot manage other admin tokens.
Inputs: name, expiry_secs.
create_databaseA
Create a new database in InfluxDB. Database names must follow InfluxDB naming rules: alphanumeric characters, dashes (-), underscores (_), and forward slashes (/) are allowed. Must start with a letter or number. Maximum 64 characters. For Cloud Dedicated/Clustered: maxTables, maxColumnsPerTable, retentionPeriod. For Cloud Serverless: description, retentionPeriod.
Inputs: name (required), maxTables, description, retentionPeriod, +1 more.
delete_databaseA
Delete a database from InfluxDB. Use the exact database name as returned by the list_databases tool.
Inputs: name (required).
delete_tokenB
Delete an InfluxDB token by name (Core/Enterprise only).
Inputs: token_name (required).
describe_tableA
Describe table schema using InfluxDB metadata. Unknown tag/field roles are returned as category=unknown instead of guessed. Use this before retrying SQL queries that fail on quoted wildcard or unknown-field selectors; expand matching fields explicitly and run one bounded query_sql.
Inputs: db (required), table (required).
execute_queryA
Deprecated since 2.0.0. Use query_sql for SQL queries. execute_query remains available for compatibility with existing clients.
Execute a SQL query against an InfluxDB database (all versions). Returns results in the specified format (defaults to JSON). On Cloud Dedicated, Cloud Serverless, and Clustered, this tool supports only JSON output. For bounded reads that report completeness, use query_sql.
Large Dataset Warning: InfluxDB might contain massive time-series data. Always use COUNT(*) first to check size, then LIMIT/OFFSET for large results (>1000 rows).
Cloud Dedicated/Clustered & Cloud Serverless (v3) Requirements:
GROUP BY: Include all group columns in SELECT (e.g., SELECT place, COUNT(*) ... GROUP BY place)
Aggregations: Cast and alias COUNT (e.g., CAST(COUNT(*) AS DOUBLE) AS count)
Note: Both products require CAST for all aggregation functions (COUNT, SUM, AVG, MIN, MAX) to ensure results appear properly in response
Inputs: query (required), database (required), format.
get_helpA
Get help and troubleshooting guidance for InfluxDB operations. Supports specific categories or keyword search.
Inputs: no named parameters.
get_measurementsA
Get a list of all measurements (tables) in a database/bucket (all versions). Uses the InfluxDB information_schema.columns to discover tables.
Inputs: database (required).
get_measurement_schemaA
Get the schema (column information) for a specific measurement/table (all versions). Shows column names, types, and categories (time/tag/field).
Inputs: database (required), measurement (required).
health_checkB
Check health and ping separately. Any successful endpoint confirms health. A credential denied health access does not imply its permitted databases are unavailable. Client initialization alone does not prove connectivity.
Inputs: no named parameters.
investigate_databaseB
Discover tables and schemas in a database, optionally sampling recent rows from each table with bounded reads.
Inputs: db (required), maxTables, includeSamples, sampleWindowHours, +1 more.
list_admin_tokensA
List all admin tokens (operator and named admin tokens) with optional filtering by token name (Core/Enterprise only). Named admin tokens have full administrative access including resource token management.
Inputs: tokenName.
list_databasesA
List databases visible to this credential. Visibility completeness and permissions to read individual databases remain unknown unless independently observed.
Inputs: no named parameters.
list_tablesA
List tables, also called measurements, in an InfluxDB database.
Inputs: db (required).
load_database_contextA
Check for and load custom database context if available. Always check this first as it can significantly speed up analysis and clarify data nuances. User-provided context is optional but when present, it contains valuable information about database structure, business context, or personal notes that can guide more accurate analysis.
Inputs: no named parameters.
query_influxqlA
Run one bounded, read-only InfluxQL query against an InfluxDB 3 database. Accepts database as an alias for db and query as an alias for q; differing pairs are rejected. Defaults to JSON output and returns structured rows, warnings, and query metadata. Core and Enterprise also return jsonl or csv; Cloud Dedicated, Cloud Serverless, and Clustered return only JSON. Your answer must report metadata.completeness, the cap when capped, warnings, and row_count; see READING QUERY RESULTS in get_help. Rejects SELECT INTO and destructive statements. Prefer query_sql for SQL prompts; use InfluxQL regex field selection only when the user explicitly asks for InfluxQL or regex field matching. For regex field selection, write SELECT /pattern/ FROM m; a type suffix such as /pattern/::field fails to parse.
Inputs: q, db, query, format, +4 more.
query_sqlA
Run one bounded, read-only SQL query against an InfluxDB 3 database. Accepts database as an alias for db and query as an alias for q; differing pairs are rejected. Defaults to JSON output and returns structured rows, warnings, and query metadata. Core and Enterprise also return jsonl or csv; Cloud Dedicated, Cloud Serverless, and Clustered return only JSON. Your answer must report metadata.completeness, the cap when capped, warnings, and row_count; see READING QUERY RESULTS in get_help. In SQL, quoted identifiers are exact column names; if a quoted selector contains *, treat it as wildcard intent, call describe_table, expand matching fields explicitly, then retry one bounded query_sql. Use query_influxql regex only when the user explicitly asks for InfluxQL or regex field selection.
Inputs: q, db, query, format, +4 more.
regenerate_operator_tokenA
Regenerate the InfluxDB operator token (Core/Enterprise only). Returns the new token value. ⚠️ This action invalidates current operator token and is irreversible. Receive the explicit user confirmation before proceeding.
Inputs: no named parameters.
update_databaseA
Update database configuration for InfluxDB. For Cloud Dedicated/Clustered: modify maxTables, maxColumnsPerTable, and retentionPeriod. For Cloud Serverless: modify bucket name, description, and retentionPeriod. For Core/Enterprise: modify retentionPeriod only (Core requires v3.2.0+).
Inputs: name (required), newName, maxTables, description, +2 more.
write_line_protocolA
Write data to InfluxDB using line protocol format (all versions). Supports single records or batches.
Line Protocol Syntax: measurement,tag1=value1,tag2=value2 field1=value1,field2=value2 timestamp
Components:
measurement: table/measurement name (required)
tags: indexed metadata (optional) - comma-separated key=value pairs
fields: actual data (required) - space-separated from tags, comma-separated key=value pairs
timestamp: optional timestamp (precision must be specified in tool parameters)
Field Value Types:
Strings: "quoted string"
Floats: 123.45
Integers: 123i (note the 'i' suffix)
Booleans: t or f
Examples: Single record: temperature,location=office,building=main value=23.5,humidity=45i 1640995200 Batch (separate with newlines): temperature,location=office value=23.5 1640995200 humidity,location=office value=45i 1640995201
Important: Always specify correct precision parameter to match your timestamp format. Use any precision if writing data with no timestamp. Escaping required for special characters in tags/fields.
Inputs: data (required), database (required), precision (required), noSync, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Several tool pairs overlap directly: list_tables vs get_measurements both list tables/measurements, describe_table vs get_measurement_schema both return schema, and query_sql vs execute_query both execute SQL with execute_query merely deprecated. The split between cloud_* database token tools and admin-token tools is also easy to confuse, even though descriptions sometimes clarify product scope.
Most names are snake_case verb_noun, but conventions are inconsistent: some tools carry a cloud_ prefix while equivalent admin-token tools do not, and same-purpose operations use different verbs (list_tables vs get_measurements, describe_table vs get_measurement_schema). health_check also breaks the verb_noun pattern, though names remain readable.
25 tools is on the heavy borderline for an InfluxDB server, and several slots are occupied by deprecated or duplicate operations (execute_query, get_measurements, get_measurement_schema). Multi-version and product-specific token management explains part of the count, but the surface feels inflated rather than tightly scoped.
Core database lifecycle CRUD, SQL/InfluxQL querying, schema discovery, line-protocol writes, health checks, and token management for both cloud and Core/Enterprise are present. Remaining gaps are minor—notably no explicit data/table deletion operation and limited non-database resource coverage—but agents can generally work around them.
Maintenance
Related MCP Connectors
Access New Relic observability data through MCP - query metrics, logs, traces, entities, and more
MCP server for interacting with the Supabase platform
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
The Instant MCP server is a wrapper around the Instant Platform SDK that enables creating, managing, and updating InstantDB applications directly within an editor. It provides tools for fetching rules files for LLMs, retrieving and pushing app schemas, managing permission rules, and executing database queries. Key capabilities include schema management (get-schema, push-schema), permission management (get-perms, push-perms), query execution, and listing recent query history.
Related MCP Servers
- AlicenseAqualityBmaintenanceA Model Context Protocol server that provides Claude with access to InfluxDB time-series database instances, enabling data writing, querying, and management of organizations and buckets through natural language.4218 npm49MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables interactions with InfluxDB's open-source time-series database API, allowing data querying, management, and operations through natural language.-
- FlicenseAqualityCmaintenanceEnables interaction with InfluxDB v3 (Core/Enterprise/Cloud Dedicated) through MCP clients. Supports database management, data querying and writing, schema inspection, and token administration operations.21-
- AlicenseNot gradedqualityDmaintenanceInfluxDB-v1-MCP is a powerful Model Context Protocol (MCP) interface specifically designed for InfluxDB v1.x, enabling AI assistants to intelligently manage and query time-series databases.Apache 2.0