
InfluxDB Cloud
InfluxDB Cloud is a fully managed, scalable, and secure time series database service designed for real-time analytics and monitoring.
Verdict
Common use cases
- Validate Flux queries before production deployment
- Add monitoring cells to ops dashboards
- Audit user permissions across InfluxDB orgs
- Retrieve DBRP mappings for legacy migrations
- Inspect time-series schema and retention policies
Integration
- Vendor
- InfluxDB Cloud
- Category
- other
- Auth
- API_KEY
- Tools
- 9
- Composio slug
influxdb_cloud
Tools
- Add Dashboard Cell
Tool to add a cell to a dashboard. Use when you want to add or copy a cell to an existing dashboard after verifying the dashboard exists.
- Delete Userdestructive
Tool to delete a user by ID. Use when you need to remove a user in InfluxDB Cloud; requires an operator token.
- Generate Flux Query AST
Tool to generate a Flux query Abstract Syntax Tree (AST). Use when you need to inspect the structure of a Flux script. Use after composing your Flux query; this validates syntax and returns the AST (does not check semantic correctness).
- Get DBRP Mapping
Tool to retrieve a DBRP mapping by ID. Use when you need to fetch details of a specific DBRP mapping in InfluxDB Cloud.
- List Routes
Tool to list top-level API routes. Use when you need to discover all available API endpoints for an instance. Call after setting a valid authorization token.
- Sign In
Tool to create a user session by authenticating credentials. Use when initiating a user session after collecting credentials.
- Sign Out
Tool to expire a user session using a session cookie. Use when ending an authenticated session after signin.
- Update DBRP
Tool to update a DBRP mapping's default and retention policy. Use when modifying an existing DBRP mapping after initial creation.
- Write Line Protocol Data
Tool to write line protocol data to a bucket. Use when ingesting asynchronous line protocol points after formatting the payload.
Setup
Setup guide
- 11. In Switchy, open your Space settings and click 'Add Integration' under the MCP section. 2. Select 'InfluxDB Cloud' from the catalog. 3. Navigate to your InfluxDB Cloud console, go to 'Load Data' → 'API Tokens', and generate a new token with read/write permissions for buckets, dashboards, and users (choose 'All Access' if you need full operator capabilities). 4. Copy the token and paste it into Switchy's API Key field, then click 'Connect'. 5. Switchy will validate the token by listing available routes; you'll see a green checkmark when the connection succeeds. 6. Inside any Space, type '@InfluxDB Cloud list routes' and send — if you see a JSON response with endpoint paths, the integration is live. 7. To query data, use '@InfluxDB Cloud generate flux query AST' with your Flux script to validate syntax before running it against your buckets.
What teammates see: by default, memories from InfluxDB Cloud are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Spaces have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Validate Flux Syntax
@InfluxDB Cloud generate flux query AST for this script: from(bucket:"sensors") |> range(start: -1h) |> filter(fn: (r) => r._measurement == "temperature")Open in a Space →
Add Dashboard Cell
@InfluxDB Cloud add a cell to dashboard ID abc123 showing the last 24 hours of CPU usage from the 'metrics' bucketOpen in a Space →
List API Routes
@InfluxDB Cloud list routes so I can see which endpoints are available with my current tokenOpen in a Space →
Retrieve DBRP Mapping
@InfluxDB Cloud get DBRP mapping xyz789 and show me the default retention policy and database nameOpen in a Space →
Update Retention Policy
@InfluxDB Cloud update DBRP mapping xyz789 to set the default retention policy to 30 daysOpen in a Space →
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@InfluxDB Cloud show me the structure of this Flux query: from(bucket:"metrics") |> range(start: -1h) |> filter(fn: (r) => r._measurement == "cpu")
The Flux query AST shows a valid three-stage pipeline: a `from()` call targeting the "metrics" bucket, followed by a `range()` filter for the last hour, and a `filter()` function checking for CPU measurements. The AST confirms proper syntax with no parsing errors. Each pipe operator correctly chains the transformations, and the anonymous function in the filter uses valid record notation (r._measurement).
This example demonstrates query validation before execution. The AST tool catches syntax errors early, which is critical when building complex time-series queries programmatically. Requires a valid API key with read access to the organization's buckets. Does not execute the query or return data—only validates structure.
@InfluxDB Cloud add a new cell to dashboard d09abad1c0ffee showing the last 24 hours of memory usage from the "system" bucket
Cell added successfully to dashboard d09abad1c0ffee. The new visualization displays memory usage metrics from the "system" bucket with a 24-hour time range. The cell was positioned in the next available grid slot and uses a default line graph view. You can adjust the cell's query, visualization type, and position through the InfluxDB UI or by calling the update cell tool with the returned cell ID.
This write operation modifies dashboard state immediately. The example assumes the dashboard ID exists and your API key has write permissions to dashboards. The tool does not validate whether the bucket or measurement exists—if the query references missing data, the cell will render empty. Always verify dashboard IDs before adding cells to avoid orphaned visualizations.
@InfluxDB Cloud list all available API routes for this instance and summarize which endpoints handle user management versus data queries
The instance exposes 47 API routes. User management endpoints include `/api/v2/users` (list, create), `/api/v2/users/{id}` (get, update, delete), and `/api/v2/signin` / `/api/v2/signout` for session handling. Data query routes center on `/api/v2/query` (Flux execution) and `/api/v2/write` (line protocol ingestion). Additional routes cover buckets, dashboards, tasks, and DBRP mappings. Operator-level routes like user deletion require elevated token permissions.
This discovery example pairs the MCP's route-listing tool with AI reasoning to categorize endpoints by function. Useful when onboarding to a new InfluxDB instance or auditing available capabilities. The route list reflects your token's permission scope—restricted tokens may not see all endpoints. Does not execute any operations, only returns metadata.
Use-case deep-dives
When InfluxDB Cloud MCP fits real-time device monitoring
A 6-person operations team tracking temperature sensors across 40 retail locations needs to add new dashboard cells during incident response. This MCP is the right call if your team already runs InfluxDB Cloud for time-series storage and wants AI to manipulate dashboards without leaving Switchy. The Add Dashboard Cell and Generate Flux Query AST tools let you prototype visualizations in chat, validate the query syntax, and push cells live. The threshold: if you're not already on InfluxDB Cloud, the setup cost (API keys, learning Flux) outweighs the benefit for casual dashboard edits. If your ops team lives in InfluxDB daily and needs to iterate dashboards fast during outages, this MCP saves the context-switch to the web UI.
Why this MCP works for InfluxDB user lifecycle
A 3-person platform team managing a multi-tenant InfluxDB Cloud instance needs to onboard and offboard users as customers churn. The Delete User and Sign In tools let you script user lifecycle tasks from Switchy without writing custom API wrappers. This is a win if you're already automating InfluxDB admin tasks and want to centralize them in your AI workspace. The trade-off: the MCP requires an operator token, so you're granting Switchy elevated permissions. If your security posture allows scoped API keys and you run these tasks weekly, the MCP beats manual console clicks. If you onboard users once a quarter, the overhead of managing the token in Switchy isn't worth it—just use the web UI.
When to use this MCP for database-retention mapping
A 2-person backend team migrating a legacy InfluxDB 1.x app to Cloud needs to update DBRP mappings as they test retention policies. The Get DBRP Mapping and Update DBRP tools let you query and tweak mappings in chat while debugging query failures. This MCP is the right fit if you're mid-migration, running dozens of mapping experiments, and tired of toggling between docs and the API console. The boundary: if you're only setting up DBRP once at cutover, the MCP is overkill—just use the Cloud UI or a one-off curl script. If you're iterating on retention policies across 10+ databases and need to validate changes fast, this MCP keeps the workflow in Switchy where your migration notes already live.
Frequently asked
What does the InfluxDB Cloud MCP let me do in Switchy?
It connects your time-series database to Switchy's AI workspace so agents can query metrics, manage dashboards, and handle user access without switching contexts. You can ask an agent to generate Flux queries, add cells to dashboards, or retrieve DBRP mappings directly in a conversation. It's built for teams who store sensor data, application telemetry, or financial time-series in InfluxDB and want AI to interact with that data.
Do I need an operator token to use this MCP?
You need an API key to connect, but some tools require an operator token with elevated permissions. Deleting users and certain admin operations won't work with a read-only key. Check your InfluxDB Cloud token scopes before connecting—if you only have read access, the MCP will authenticate but fail on write operations. Most query and dashboard tasks work with standard user tokens.
Can it write data points to my InfluxDB buckets?
No. This MCP focuses on querying data, managing dashboards, and handling user sessions. It doesn't include tools for writing measurements or tags. If you need to ingest data, use InfluxDB's native write API or Telegraf agents. The MCP is designed for retrieval and administration, not data ingestion pipelines.
Why use this instead of just querying InfluxDB directly?
Direct queries require you to write Flux syntax and remember bucket names, retention policies, and field schemas. The MCP lets an agent generate the AST, validate syntax, and fetch mappings conversationally. It's faster for exploratory analysis or when non-technical team members need to pull metrics. You still own the data; the MCP just makes it accessible to AI without leaving Switchy.
Who on the team should connect this integration?
Whoever manages your InfluxDB Cloud organization and has access to generate API tokens. That's usually a DevOps engineer or data platform owner. Once connected, any Switchy user in your workspace can query through the MCP, but only the connector's token permissions apply. If you want multiple people to delete users or modify dashboards, share an operator token—or connect separate MCPs per role.