loading…
Search for a command to run...
loading…
InfluxDB-v1-MCP is a powerful Model Context Protocol (MCP) interface specifically designed for InfluxDB v1.x, enabling AI assistants to intelligently manage and
InfluxDB-v1-MCP is a powerful Model Context Protocol (MCP) interface specifically designed for InfluxDB v1.x, enabling AI assistants to intelligently manage and query time-series databases.
This project is very unstable and subject to breaking changes. Do NOT use in production.
InfluxDB-v1-MCP is a powerful Model Context Protocol (MCP) interface specifically designed for InfluxDB v1.x, enabling AI assistants to intelligently manage and query time-series databases. Going beyond simple data retrieval, this server provides a complete toolkit that allows an AI agent to autonomously explore the database structure, understand data schemas, and execute complex InfluxQL queries.
The InfluxDB MCP Server exposes a set of tools for interacting with InfluxDB time-series databases via a standardized protocol. It supports:
.env files.list_databases
{
"tool_name": "list_databases"
}
list_measurements
database_name (string, required){
"tool_name": "list_measurements",
"parameters": {
"database_name": "telegraf"
}
}
get_measurement_schema
database_name (string, required), measurement_name (string, required){
"tool_name": "get_measurement_schema",
"parameters": {
"database_name": "telegraf",
"measurement_name": "cpu"
}
}
execute_influxql
SELECT, SHOW).influxql_query (string, required), database_name (string, optional){
"tool_name": "execute_influxql",
"parameters": {
"database_name": "telegraf",
"influxql_query": "SELECT \"usage_user\" FROM \"cpu\" WHERE time > now() - 1h"
}
}
get_last_data_point_timestamp
database_name (string, required), measurement_name (string, required){
"tool_name": "get_last_data_point_timestamp",
"parameters": {
"database_name": "telegraf",
"measurement_name": "cpu"
}
}
get_tag_values
database_name (string, required), measurement_name (string, required), tag_key (string, required){
"tool_name": "get_tag_values",
"parameters": {
"database_name": "telegraf",
"measurement_name": "cpu",
"tag_key": "cpu"
}
}
get_time_window_summary
database_name (string, required), measurement_name (string, required), field_key (string, required), time_window (string, required), filters (string, optional), group_by_tags (string, optional){
"tool_name": "get_time_window_summary",
"parameters": {
"database_name": "telegraf",
"measurement_name": "cpu",
"field_key": "usage_user",
"time_window": "1h",
"group_by_tags": "cpu"
}
}
All configuration is via environment variables (typically set in a .env file):
| Variable | Description | Required | Default |
|---|---|---|---|
INFLUXDB_URL |
InfluxDB base URL (v1.x) | Yes | http://localhost:8086 |
INFLUXDB_USER |
InfluxDB username | Yes | |
INFLUXDB_PASSWORD |
InfluxDB password | Yes |
.env fileINFLUXDB_URL=http://localhost:8086
INFLUXDB_USER=your_db_user
INFLUXDB_PASSWORD=your_db_password
.python-version)uv (if not already):pip install uv
uv pip compile pyproject.toml -o uv.lock
uv pip sync uv.lock
.env in the project root (see Configuration)python server.py
Adjust entry point if needed (e.g., main.py){
"mcpServers": {
"influxdb-v1": {
"command": "uv",
"args": [
"--directory",
"path/to/server/directory/",
"run",
"server.py"
],
"envFile": "path/to/mcp-server-mariadb-vector/.env"
}
}
}
or If already running MCP server
{
"servers": {
"influxdb-v1": {
"url": "http://{host}:9003/sse",
"type": "sse"
}
}
}
logs/mcp_server.log by default.config.py and logger setup).Run in your terminal:
claude mcp add influxdb-v1-mcp -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.