II

influxdata/influxdb3_mcp_server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

38 stars 14 forks 质量 75 趋势 20NOASSERTION

influxdata/influxdb3_mcp_server 是从 https://github.com/influxdata/influxdb3_mcp_server. 导入的 MCP 服务器候选

概览

influxdata/influxdb3_mcp_server 是从 https://github.com/influxdata/influxdb3_mcp_server. 导入的 MCP 服务器候选

概述(AI 翻译)

用于 InfluxDB 3 集成的模型上下文协议(MCP)服务器。提供工具、资源和提示,用于通过 MCP 客户端与 InfluxDB 3 核心和企业版,以及 InfluxDB 云专用、InfluxDB 集群和 InfluxDB 云无服务器交互。


先修条件

  • InfluxDB 3实例:URL和令牌(核心/企业/云无服务器)或集群ID和令牌(云专用/集群)
  • Node.js:v20.11或更新版本(适用于NPM/NPX使用)
  • npm:v9或更新版本(用于NPM/NPX)
  • Docker:(基于Docker的设置)

只读代理工作流程

设置 INFLUX_MCP_TOOL_PROFILE=readonly 当你想让 MCP 客户端探索时 查询 InfluxDB 3 数据时,无需暴露写入、管理、令牌管理或 主机级工具。在使用预览用户认证的企业部署中, 当配置的承载凭证是JWT时,同样的只读流程也有效 一个apiv3_标记。

分析员探索一个陌生的数据库

分析师可以连接MCP客户端,如Claude Desktop、Cursor、Codex,或 另一位特工会被引导,并提出类似这样的问题:

通过只读配置文件,代理可以:

  1. 拨打list_databases查看可访问的数据库。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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.json for local development. Run corepack enable to 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.


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

在 GitHub 查看完整 README

安装

npx -y @influxdata/influxdb3-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "influxdb": { "command": "node", "args": ["/path/to/influx-mcp-standalone/build/index.js"], "env": { "INFLUX_DB_INSTANCE_URL": "http://localhost:8181/", "INFLUX_DB_TOKEN": "<YOUR_INFLUXDB_TOKEN>", "INFLUX_DB_PRODUCT_TYPE": "core" } } } }