
idoru/influxdb-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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 をメタデータで表示
- バケツの測定:[
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:
-
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"
}
}
}
}