II

idoru/influxdb-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

50 stars 19 forks 品質 85 トレンド 20MIT

idoru/influxdb-mcp-server は [https://github.com/idoru/influxdb-mcp-server.] からインポートされた MCP サーバーの候補です

概要

idoru/influxdb-mcp-server は [https://github.com/idoru/influxdb-mcp-server.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

InfluxDB OSS API v2 を使用して InfluxDB v2 インスタンスへのアクセスを公開するモデルコンテキストプロトコル(MCP)サーバー。 Claudeコードでほとんどのビルド。

##特徴

このMCPサーバーは以下を提供します。

  • リソース:組織、バケット、測定データへのアクセス
  • ツール: データを書き込み、クエリを実行し、データベースオブジェクトを管理する
  • プロンプト:一般的なフラックスクエリとラインプロトコルフォーマットのテンプレート

リソース

サーバは、次のリソースを公開します。

1.組織リスト:[influxdb://orgs

  • InfluxDBインスタンスのすべての組織を表示

2.バケットリスト:[influxdb://buckets

  • すべての Bucket をメタデータで表示
  1. バケツの測定:[influxdb://bucket/{bucketName}/measurements
  • 指定した Bucket 内のすべての測定値([INFLUXDB_ORG])を一覧表示します。

4.クエリデータ:[[influxdb://query/{orgName}/{fluxQuery}]

  • Flux クエリを実行し、結果を JSON ([headers]) として返し、すべての結果テーブル全体で 1 行ずつレコードを返します。

テンプレート変数 (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:

  1. Organizations List: influxdb://orgs

    • Displays all organizations in the InfluxDB instance
  2. Buckets List: influxdb://buckets

    • Shows all buckets with their metadata
  3. Bucket Measurements: influxdb://bucket/{bucketName}/measurements

    • Lists all measurements within a specified bucket (uses INFLUXDB_ORG)
  4. Query Data: influxdb://query/{orgName}/{fluxQuery}

    • Executes a Flux query and returns results as JSON (headers and one record per row, across all result tables)

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:

  1. write-data: Write time-series data in line protocol format

    • Parameters: org, bucket, data, precision (optional)
    • org and bucket are optional when INFLUXDB_ORG / INFLUXDB_BUCKET are set, and fall back to those values
  2. query-data: Execute Flux queries

    • Parameters: org, query
    • org is optional when INFLUXDB_ORG is set, and falls back to that value
  3. create-bucket: Create a new bucket

    • Parameters: name, orgID, retentionPeriodSeconds (optional, whole seconds; omit or pass 0 for infinite retention)
  4. create-org: Create a new organization

    • Parameters: name, description (optional)

Prompts

The server offers these prompt templates:

  1. flux-query-examples: Common Flux query examples
  2. line-protocol-guide: Guide to InfluxDB line protocol format

Configuration

The server requires these environment variables:

  • INFLUXDB_TOKEN (required): Authentication token for the InfluxDB API
GitHub で README 全文を見る

インストール

npx influxdb-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "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" } } } }