-
security-
license-
qualityA Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.
Last updated -
Python
一个模型上下文协议 (MCP) 服务器,使用 InfluxDB OSS API v2 公开对 InfluxDB 实例的访问。主要使用 Claude 代码构建。
该 MCP 服务器提供:
服务器公开以下资源:
influxdb://orgs
influxdb://buckets
influxdb://bucket/{bucketName}/measurements
influxdb://query/{orgName}/{fluxQuery}
服务器提供以下工具:
write-data
:以线路协议格式写入时间序列数据query-data
:执行 Flux 查询create-bucket
:创建一个新的存储桶create-org
:创建新组织服务器提供以下提示模板:
flux-query-examples
:常见的 Flux 查询示例line-protocol-guide
:InfluxDB 线路协议格式指南服务器需要以下环境变量:
INFLUXDB_TOKEN
(必需):InfluxDB API 的身份验证令牌INFLUXDB_URL
(可选): InfluxDB 实例的 URL (默认为http://localhost:8086
)INFLUXDB_ORG
(可选):某些操作的默认组织名称要通过Smithery自动为 Claude Desktop 安装 InfluxDB MCP 服务器:
将服务器添加到您的claude_desktop_config.json
:
服务器代码被组织成模块化结构:
src/
index.js
- 主服务器入口点config/
——配置相关文件env.js
- 环境变量处理utils/
——实用函数influxClient.js
- InfluxDB API 客户端loggerConfig.js
- 控制台记录器配置handlers/
- 资源和工具处理程序organizationsHandler.js
- 组织列表bucketsHandler.js
- 存储桶列表measurementsHandler.js
- 测量列表queryHandler.js
- 查询执行writeDataTool.js
- 数据写入工具queryDataTool.js
- 查询工具createBucketTool.js
- Bucket创建工具createOrgTool.js
- 组织创建工具prompts/
-提示模板fluxQueryExamplesPrompt.js
- Flux 查询示例lineProtocolGuidePrompt.js
- 线路协议指南这种结构可以实现更好的可维护性、更容易的测试和更清晰的关注点分离。
该存储库包括全面的集成测试:
运行测试:
麻省理工学院
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
模型上下文协议服务器,为 Claude 提供对 InfluxDB 时间序列数据库实例的访问,实现通过自然语言进行数据写入、查询以及组织和存储桶的管理。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/idoru/influxdb-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server