Atlas / MCP servers / themoah / Klag

KlagSAFE

mcp/themoah/klag

new kafka lag exporter: lightweight and extendable.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
7 5r · 2w · 0d
Transport
—
License
Apache-2.0
Stars
88
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[![License][license-badge]][license] [![Release][release-badge]][release] [![CI][ci-badge]][ci]

[![Docker Pulls][docker-badge]][docker] [![Artifact Hub][artifacthub-badge]][artifacthub] [![Ask DeepWiki][deepwiki-badge]][deepwiki]

[license]: https://github.com/themoah/klag/blob/main/LICENSE [license-badge]: https://img.shields.io/badge/License-Apache%202.0-blue.svg [release]: https://github.com/themoah/klag/releases/latest [release-badge]: https://img.shields.io/github/v/release/themoah/klag?logo=github [ci]: https://github.com/themoah/klag/actions/workflows/build-and-push.yml [ci-badge]: https://github.com/themoah/klag/actions/workflows/build-and-push.yml/badge.svg [docker]: https://hub.docker.com/r/themoah/klag [docker-badge]: https://img.shields.io/docker/pulls/themoah/klag?logo=docker [artifacthub]: https://artifacthub.io/packages/helm/klag/klag [artifacthub-badge]: https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/klag [deepwiki]: https://deepwiki.com/themoah/klag [deepwiki-badge]: https://deepwiki.com/badge.svg

Kafka Consumer Lag Exporter — Know when your consumers fall behind, before it becomes a problem.

Inspired by kafka-lag-exporter (archived 2024). Built with Vert.x and Micrometer.

Migrating from kafka-lag-exporter? See the [migration guide](https://klag.dev/migration) (metric/label/config mapping + drop-in dashboard tips).

### 📖 Documentation lives at [klag.dev](https://klag.dev) Full guides — configuration, Kafka ACLs, Helm/Strimzi deployment, integrations, metrics reference, and development — are at [klag.dev](https://klag.dev). AI agents: a machine-readable corpus is at klag.dev/llms.txt. The docs source lives in website/ (Astro + Starlight).
### 🤖 Install with your AI agent In Claude Code: /plugin marketplace add themoah/klag → /plugin install klag@klag → /klag:install. It detects
Read from source at commit 634d677e312dOBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add klag-website --env CF_ANALYTICS_TOKEN=${CF_ANALYTICS_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "klag-website": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "CF_ANALYTICS_TOKEN": "${CF_ANALYTICS_TOKEN}"
      }
    }
  }
}
03

Exposed tools (7)

5 read · 2 write · 0 destructive.

ToolRiskDescription
get_klag_configreadLook up Klag environment variables: name, default value, and what they do
get_klag_docreadReturn the full markdown of a single klag.dev page by its URL path, e.g.
get_klag_metricreadLook up the metrics Klag exports (klag.consumer.lag, klag.consumer.lag.velocity,
klagwriteAgent skills for Klag, the Kafka consumer lag exporter: install it against a
klag-llms-fullreadThe full text of every klag.dev page in one document.
klag-llms-indexwriteProject summary, quick start, key metrics, and a linked index of every page.
search_klag_docsreadFull-text search across klag.dev, the documentation for Klag (the Kafka consumer
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (2 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (13)

LOWInventory / provenance · inv.hidden_file · CWE-1104
.node-version
.node-version
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
dashboard/.convert_v2_to_v1.py
.convert_v2_to_v1.py
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
website/.node-version
.node-version
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
website/public/.assetsignore
.assetsignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
website/scripts/gen-llms.mjs:21
parse: (str) => yaml.load(str) ?? {},
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
LOWCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
website/scripts/gen-skills.mjs:20
parse: (str) => yaml.load(str) ?? {},
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
LOWFilesystem / path · fs.credential_store · CWE-22, CWE-59
scripts/e2e-strimzi-test.sh:95
refresh_discovery(){ rm -rf "${HOME}/.kube/cache/discovery" "${HOME}/.kube/cache/http" 2>/dev/null || true; }
Why it matters. touches a credential store
LOWNetwork egress · net.beacon_words · CWE-200, CWE-319
website/astro.config.mjs:52
src: 'https://static.cloudflareinsights.com/beacon.min.js',
LOWNetwork egress · net.beacon_words · CWE-200, CWE-319
website/astro.config.mjs:53
'data-cf-beacon': JSON.stringify({ token: cfToken }),
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/test/java/io/github/themoah/klag/mcp/McpUploadIntegrationTest.java:75
endpoint = URI.create("http://127.0.0.1:" + server.actualPort() + "/mcp");
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
website/package.json
@astrojs/sitemap, @astrojs/starlight, astro, gray-matter, js-yaml, sharp, @astrojs/check, typescript
Why it matters. 9 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
website/src/content/docs/about.md:11
read-only credentials, and it does nothing else — it never produces, consumes, or commits
Why it matters. asks the agent to read credentials
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
website/src/content/docs/configuration/reference.md:31
settings such as `DD_*`, `OTLP_*`, and `OTEL_*` read environment variables directly and
Why it matters. asks the agent to read credentials

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 634d677e312dfull audit observations/trust-audit/mcp-server/themoah__klag.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-07634d677e312dSAFEB89first audit
06

Questions

What is the Klag MCP server?

new kafka lag exporter: lightweight and extendable.

What tools does Klag expose?

7 in total: 5 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Klag safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Klag need?

It reads CF_ANALYTICS_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How current is this page?

The grade is for one exact copy of the source (634d677e312d), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement