
idoru/influxdb-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
idoru/influxdb-mcp-server는 MCP 서버 후보가 https://github.com/idoru/influxdb-mcp-server.]에서 가져온
개요
idoru/influxdb-mcp-server는 MCP 서버 후보가 https://github.com/idoru/influxdb-mcp-server.]에서 가져온
개요(AI 번역)
InfluxDB OSS API v2를 사용하여 InfluxDB v2 인스턴스에 액세스하는 모델 Context Protocol (MCP) 서버. Claude Code로 가장 많이 제작되었습니다.
특징
이 MCP 서버는 제공합니다:
-Resources: 조직, 물통 및 측정 자료에 접근
- 도구: Data를 작성하고 쿼리를 실행하고 데이터베이스 개체를 관리
- Prompts: 일반적인 Flux 쿼리 및 Line Protocol 형식의 템플릿
자원
서버는 다음과 같은 리소스를 노출:
- 조직 목록:
influxdb://orgs
- InfluxDB 인스턴스의 모든 조직을 표시합니다.
- 부켓 목록:
influxdb://buckets
- 메타데이터로 모든 버킷을 표시합니다.
- 부켓 측정:
influxdb://bucket/{bucketName}/measurements
- 지정된 버킷 내의 모든 측정 목록([T3]])
- ** 쿼리 데이터 **:
influxdb://query/{orgName}/{fluxQuery}
- Flux 쿼리를 실행하고 JSON으로 결과를 반환합니다 (
headers] and one record per row per row, 모든 결과 테이블에)
템플릿 변수 (bucketName, orgName], fluxQuery]]])는 % 인코딩되어야한다, encodeURIComponent], 그래서 공백이 포함 된 이름 또는 / 및 멀티 라인 쿼리는 URI를 생존.
도구
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
InfluxDB v2 MCP Server
A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2. Mostly built with Claude Code.
Features
This MCP server provides:
- Resources: Access to organization, bucket, and measurement data
- Tools: Write data, execute queries, and manage database objects
- Prompts: Templates for common Flux queries and Line Protocol format
Resources
The server exposes the following resources:
-
Organizations List:
influxdb://orgs- Displays all organizations in the InfluxDB instance
-
Buckets List:
influxdb://buckets- Shows all buckets with their metadata
-
Bucket Measurements:
influxdb://bucket/{bucketName}/measurements- Lists all measurements within a specified bucket (uses
INFLUXDB_ORG)
- Lists all measurements within a specified bucket (uses
-
Query Data:
influxdb://query/{orgName}/{fluxQuery}- Executes a Flux query and returns results as JSON (
headersand one record per row, across all result tables)
- Executes a Flux query and returns results as JSON (
Template variables (bucketName, orgName, fluxQuery) must be percent-encoded, e.g. with encodeURIComponent, so names containing spaces or / and multi-line queries survive the URI.
Tools
The server provides these tools:
-
write-data: Write time-series data in line protocol format- Parameters: org, bucket, data, precision (optional)
organdbucketare optional whenINFLUXDB_ORG/INFLUXDB_BUCKETare set, and fall back to those values
-
query-data: Execute Flux queries- Parameters: org, query
orgis optional whenINFLUXDB_ORGis set, and falls back to that value
-
create-bucket: Create a new bucket- Parameters: name, orgID, retentionPeriodSeconds (optional, whole seconds; omit or pass 0 for infinite retention)
-
create-org: Create a new organization- Parameters: name, description (optional)
Prompts
The server offers these prompt templates:
flux-query-examples: Common Flux query examplesline-protocol-guide: Guide to InfluxDB line protocol format
Configuration
The server requires these environment variables:
INFLUXDB_TOKEN(required): Authentication token for the InfluxDB API
설치
npx influxdb-mcp-server설정
{
"mcpServers": {
"influxdb": {
"command": "npx",
"args": ["influxdb-mcp-server"],
"env": {
"INFLUXDB_TOKEN": "your_token",
"INFLUXDB_URL": "http://localhost:8086",
"INFLUXDB_ORG": "your_org",
"INFLUXDB_BUCKET": "your_bucket"
}
}
}
}