influxdb-mcp-server CLAUDE.md

influxdb-mcp-server CLAUDE.md is an instructions file for Claude Code from idoru/influxdb-mcp-server. It costs 499 tokens per session, scanned A, original, MIT.

Project instructions for building, testing, and running an InfluxDB MCP server. InfluxDB is a database commonly used for time-stamped data such as measurements and events.

In plain words
What is it for?
Installing dependencies, running tests, starting the server, testing with Docker, and debugging protocol messages.
Why use it?
It gives contributors consistent commands, code conventions, error handling guidance, and required configuration details.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/idoru/influxdb-mcp-server/claude-md
Clone the repo
git clone --depth 1 https://github.com/idoru/influxdb-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for influxdb-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/idoru/influxdb-mcp-server/claude-md.svg)](https://agentmods.dev/instructions/idoru/influxdb-mcp-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/idoru/influxdb-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/idoru/influxdb-mcp-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 499 This file is loaded in full into every session.
When invoked 499 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00499 $0.00499
Opus 5 $0.00249 $0.00249
Sonnet 5 $0.00100 $0.00100
Haiku 4.5 $0.00050 $0.00050

Measured 6d ago against content hash afbeee9c50e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

influxdb-mcp-server CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 45 lines

What it actually says

InfluxDB MCP Server - Guide for Claude

Build & Test Commands

  • Run all tests: npm test
  • Run a single test: npm test -- -t "test name" (e.g., npm test -- -t "should list organizations")
  • Skip integration tests: npm test -- --testPathIgnorePatterns=integration.test.js
  • Install dependencies: npm install
  • Start server: INFLUXDB_TOKEN=your_token node src/index.js
  • Test with Docker: Make sure Docker is running before executing tests
  • Debug tests: Add DEBUG=mcp:* environment variable for detailed MCP protocol logging

Code Style Guidelines

  • Language: ES Modules JavaScript with TypeScript types (file extensions: .js)
  • Testing: Jest with 60-second timeout for Docker operations
  • Formatting: 2-space indentation
  • Naming: camelCase for variables/functions, PascalCase for classes
  • Types: Zod for runtime type validation
  • Error handling: Try/catch blocks with structured error messages
  • Imports: ES modules with named imports
  • Async patterns: Async/await pattern preferred over promises

Environment

  • Required vars: INFLUXDB_TOKEN (authentication)
  • Optional vars:
    • INFLUXDB_URL (defaults to http://localhost:8086)
    • INFLUXDB_ORG (organization name for queries)
    • DEBUG=mcp:* (enables MCP protocol debugging)

Project Structure

  • src/ - Core server implementation
  • tests/ - Integration tests using Docker containers

Testing Approach

  • Integration tests use Docker to spin up a real InfluxDB instance
  • Tests primarily use direct API communication for reliability
  • Server process is tested through direct spawning and API verification
  • All tests include proper cleanup of Docker containers
  • Test timeout is set to 60 seconds to accommodate Docker operations

Common Issues

  • Docker needs to be running for tests to pass
  • Port conflicts can occur if other services are using port 8086
  • MCP client connection issues are bypassed by using direct API testing
  • Sometimes Docker cleanup requires manual intervention (docker rm)
  • See TESTS.md for detailed troubleshooting guides
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 45 lines · 499 tokens per session scan A afbeee9c50e3

Subscribe to this mod's changes

influxdb-mcp-server CLAUDE.md is an instructions file published in the GitHub repository idoru/influxdb-mcp-server (44 stars, last pushed 7mo ago), licensed MIT. It adds 499 tokens to every session, about $0.0025 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.