Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

kb-graph MCP server

by uttambharadwaj/kb-graphMIT licenceAudited 11 Oct 2026 · source fe4aa99db5f7

npm kb-graph 2.1.0stdiostreamable-http★ 4
!CAUTIONGrade C · 73/100 · 11 Oct 2026 · fe4aa99
4GitHub stars

Is it safe? With care — CAUTION, grade C (73/100). It exposes 15 tools: 14 read, 1 write and 0 destructive. The audit recorded 22 findings (0 critical, 0 high, 5 medium, 17 low). Maintainer's description: One coding agent learns; every agent and future session can start knowing it. Inspectable Markdown + SQLite memory over MCP.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “kb-graph MCP server (uttambharadwaj/kb-graph)”. Retrieved 11 Oct 2026. https://modelsatlas.com/mcp/uttambharadwaj/kb-graph

Trust audit

Audit 0.4.1 · full source read 11 Oct 2026

Trust score73/100!CAUTION C
0 critical0 high5 medium17 low0 info

22 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared5 observations
  • NetworkDeclared8 observations
  • ShellDeclared3 observations
  • DependenciesNot pinnedSome ranges float
  • SecretsFoundSee the findings

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 1 finding
L1 Static sourceSecrets, path traversal, supply chainWARN 21 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner uttambharadwajUser accountAccount type recorded when we read the repository.
  • PackagePublished on npmkb-graph at version 2.1.0
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last push1 day agoActivity of the repository when we read it.
  • Source commit readfe4aa99db5f7The audit covers exactly this commit, read on 11 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory15 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (22)

Sorted by severity

MEDIUMNetwork egressnet.raw_ip · scripts/smoke-tarball.sh:164
F-04 Network egressCWE-200 · CWE-319Layer L1
const response = await fetch(`http://127.0.0.1:${process.env.KB_SMOKE_PORT}/openapi.json`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · tests/checkpoint-hook.test.js:326
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · tests/reconciliation-review-regressions.test.js:156
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · tests/write-fail-closed.test.js:262
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.private_key · tests/terminal.test.js:30
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .node-version
F-13 Inventory / provenanceCWE-1104Layer L0
.node-version
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInsecure cryptocrypto.weak_hash · src/migrate-legacy.js:46
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return createHash('sha1').update(String(s)).digest('hex').slice(0, 8);
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/cli/capture-follow-through.js:68
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
new URL('../../eval/checkpoint-replay-v1.json', import.meta.url),
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/cli/mcp-register.js:14
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
export const KB_ENTRYPOINT_PATH = fileURLToPath(new URL('../../bin/kb.js', import.meta.url));
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/routes/openapi.js:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const spec = JSON.parse(readFileSync(join(__dirname, '../../openapi.json'), 'utf-8'));
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/bench/extract-call-cost.mjs:34
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const { buildExtractPrompt, chunkForExtract } = await import('../../src/extract.js');
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/bench/extract-call-cost.mjs:35
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const { runClaude } = await import('../../src/claude-cli.js');
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.beacon_words · tests/hint-relevance.test.js:293
F-04 Network egressCWE-200 · CWE-319Layer L1
insert.run('Beacon vocabulary one', 'beacon vocabulary', 'note', 'misc', null);
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.beacon_words · tests/hint-relevance.test.js:294
F-04 Network egressCWE-200 · CWE-319Layer L1
insert.run('Beacon vocabulary two', 'beacon vocabulary', 'note', 'misc', null);
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.beacon_words · tests/hint-relevance.test.js:300
F-04 Network egressCWE-200 · CWE-319Layer L1
'lantern beacon',
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.beacon_words · tests/hint-relevance.test.js:303
F-04 Network egressCWE-200 · CWE-319Layer L1
!relevantNotes('propose lantern beacon', { limit: 50 })
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.beacon_words · tests/hint-relevance.test.js:315
F-04 Network egressCWE-200 · CWE-319Layer L1
'beacon',
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/auth-oauth-state.test.js:24
F-04 Network egressCWE-200 · CWE-319Layer L1
createOAuthAuth({ baseURL: 'http://127.0.0.1:3838' });
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/auth-oauth-state.test.js:64
F-04 Network egressCWE-200 · CWE-319Layer L1
const baseURL = 'http://127.0.0.1:3838';
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/auth-oauth-state.test.js:72
F-04 Network egressCWE-200 · CWE-319Layer L1
'http://127.0.0.1:3838',
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/auth-oauth-state.test.js:74
F-04 Network egressCWE-200 · CWE-319Layer L1
'http://127.0.0.1:4848',
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@huggingface/transformers, @modelcontextprotocol/client, @modelcontextprotocol/node, @modelcontextprotocol/server, bcryptjs, better-sqlite3, cors, dotenv
Why
13 dependency range(s) float
Fix
pin exact versions or ship a lockfile

Tools it exposes

15 declared in source · 0 destructive

14 read1 write0 destructive
ToolRiskWhat it does
kb_fact_addwriteAdd a temporal fact to the knowledge graph. Facts are subject-predicate-object triples with optional time validity. Use for decisions, relationships, and states that change over time. E.g. (
firehosereadNo description in the source
kb_fact_invalidatereadEnd an erroneous fact assertion while preserving its raw row, provenance, and validity interval. This is not a current-state selection tool: do not use it merely because evidence is older, duplicated, synonymous, contested, or superseded in meaning; use kb_fact_query and a complete append-only
kb_fact_queryreadQuery the knowledge graph for an entity\
kb_fact_timelinereadGet chronological timeline of facts, optionally for one entity. Shows the story of an entity or the full knowledge graph in order.
kb_listreadList documents in the knowledge base, optionally filtered by type or tag. Superseded (retired) notes are excluded unless include_superseded is set.
kb_readreadRead a document in full, by ID — after kb_context or kb_search has told you which ID is worth the tokens. The response carries a
kb_safety_checkreadReview a potentially destructive action before executing it. Searches KB for past incidents, evaluates risk, and returns a safety verdict. Use this before ANY destroy, delete, drop, or force-push operation.
kb_searchreadSearch the knowledge base using full-text search. Returns ranked results with highlighted snippets. Superseded (retired) notes are excluded unless include_superseded is set.
kb_search_smartreadSmart search combining keyword matching and semantic similarity. Better than kb_search for conceptual queries like
kb_tunnelsreadExplore cross-domain connections in the knowledge graph. With one tag: ranked neighboring domains by co-occurrence strength (lift-scored, so big generic tags do not dominate). With two tags: the bridge between them — notes tagged with both, plus entities mentioned in both domains\
kb_wakeupreadGet a token-efficient briefing on what the knowledge base contains. Returns entry counts by type and domain, plus the most recent entries. Use this at the start of a session instead of reading the full index.
noopreadNo description in the source
slowreadNo description in the source
whoamireadNo description in the source

Install

Package version 2.1.0 · audited commit fe4aa99

Read the findings first. The most severe is Network egress (medium) at scripts/smoke-tarball.sh.

One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.1.0. The audit covers commit fe4aa99 only.

claude mcp add kb-graph --env BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET} --env KB_API_KEY_CLAUDE=${KB_API_KEY_CLAUDE} --env KB_API_KEY_GEMINI=${KB_API_KEY_GEMINI} --env KB_API_KEY_OPENAI=${KB_API_KEY_OPENAI} -- npx -y [email protected]

The command pins the package version recorded in the source (2.1.0); the audit covers commit fe4aa99db5f7. Transport: stdio · streamable-http. Reads these environment variables: BETTER_AUTH_SECRET, KB_API_KEY_CLAUDE, KB_API_KEY_GEMINI, KB_API_KEY_OPENAI, KB_PASSWORD, MAX_THINKING_TOKENS. Give it the narrowest token it needs.

Audit history

  1. !CAUTION C 73 / 100

    First audit · fe4aa99db5f7

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION CMODELSATLASCAUTION · C
[![ModelsAtlas: CAUTION C](https://modelsatlas.com/mcp/uttambharadwaj/kb-graph/badge.svg)](https://modelsatlas.com/mcp/uttambharadwaj/kb-graph/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about kb-graph MCP server

What is the kb-graph MCP server?
One coding agent learns; every agent and future session can start knowing it. Inspectable Markdown + SQLite memory over MCP.
What tools does kb-graph expose?
15 in total: 14 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is kb-graph safe to connect to an agent?
With care. The audit graded it C (73/100) and found 22 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does kb-graph need?
It reads BETTER_AUTH_SECRET, KB_API_KEY_CLAUDE, KB_API_KEY_GEMINI, KB_API_KEY_OPENAI, KB_PASSWORD and MAX_THINKING_TOKENS 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 does kb-graph run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as kb-graph at 2.1.0.
How current is this page?
The grade is for one exact copy of the source (fe4aa99db5f7), read on 2026-10-11. The repository is watched and re-audited when it changes.

Sources

  • uttambharadwaj/kb-graph on GitHub — the source we read, its licence, stars and activityObserved · 11 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit fe4aa99db5f7Observed · 11 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.