MCP server · Audited from source
kb-graph MCP server
by uttambharadwaj/kb-graphMIT licenceAudited 11 Oct 2026 · source fe4aa99db5f7
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.
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
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
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | WARN 21 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
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 npm
kb-graphat 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
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
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
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
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
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/migrate-legacy.js:46
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
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
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
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
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
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
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
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
'lantern beacon',
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.beacon_words · tests/hint-relevance.test.js:303
!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
'beacon',
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/auth-oauth-state.test.js:24
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
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
'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
'http://127.0.0.1:4848',
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@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
| Tool | Risk | What it does |
|---|---|---|
kb_fact_add | write | Add 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. ( |
firehose | read | No description in the source |
kb_fact_invalidate | read | End 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_query | read | Query the knowledge graph for an entity\ |
kb_fact_timeline | read | Get chronological timeline of facts, optionally for one entity. Shows the story of an entity or the full knowledge graph in order. |
kb_list | read | List documents in the knowledge base, optionally filtered by type or tag. Superseded (retired) notes are excluded unless include_superseded is set. |
kb_read | read | Read 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_check | read | Review 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_search | read | Search 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_smart | read | Smart search combining keyword matching and semantic similarity. Better than kb_search for conceptual queries like |
kb_tunnels | read | Explore 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_wakeup | read | Get 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. |
noop | read | No description in the source |
slow | read | No description in the source |
whoami | read | No 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]{
"mcpServers": {
"kb-graph": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"BETTER_AUTH_SECRET": "${BETTER_AUTH_SECRET}",
"KB_API_KEY_CLAUDE": "${KB_API_KEY_CLAUDE}",
"KB_API_KEY_GEMINI": "${KB_API_KEY_GEMINI}",
"KB_API_KEY_OPENAI": "${KB_API_KEY_OPENAI}"
}
}
}
}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
- !CAUTION C 73 / 100
First audit ·
fe4aa99db5f7
README badge
For maintainers · updates on every re-audit
[](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?
What tools does kb-graph expose?
Is kb-graph safe to connect to an agent?
What credentials does kb-graph need?
How does kb-graph run?
How current is this page?
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.
- What is the kb-graph MCP server?
- What tools does kb-graph expose?
- Is kb-graph safe to connect to an agent?