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

MCP server · Audited from source

Affine MCP server

by dawncr0w/affine-mcp-serverMIT licenceAudited 6 Oct 2026 · source 2d13eb0ca77a

npm affine-mcp-server 3.9.0ssestdiostreamable-http★ 297
!CAUTIONGrade B · 81/100 · 6 Oct 2026 · 2d13eb0
297GitHub stars

Is it safe? With care — CAUTION, grade B (81/100). It exposes 107 tools: 45 read, 46 write and 16 destructive. The audit recorded 22 findings (0 critical, 0 high, 5 medium, 17 low). Maintainer's description: Model Context Protocol server for AFFiNE. Connect AI assistants to AFFiNE workspaces, documents, databases, and collaboration APIs over stdio or HTTP.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Affine MCP server (dawncr0w/affine-mcp-server)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/dawncr0w/affine

Trust audit

Audit 0.4.1 · full source read 6 Oct 2026

Trust score81/100!CAUTION B
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

  • FilesystemDeclared1 observation
  • NetworkDeclared8 observations
  • ShellDeclared2 observations
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

“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 13 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 7 findings
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

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

Provenance

  • Repository owner dawncr0wUser accountAccount type recorded when we read the repository.
  • PackagePublished on npmaffine-mcp-server at version 3.9.0
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last pushTodayActivity of the repository when we read it.
  • Source commit read2d13eb0ca77aThe audit covers exactly this commit, read on 6 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory107 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

MEDIUMInformation disclosuredisclose.log_secret · src/cli.ts:1369
F-12 Information disclosureCWE-209 · CWE-532Layer L1
if (summary.apiToken) console.log(`API token: ${summary.apiToken} (${summary.sources.apiToken})`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInformation disclosuredisclose.log_secret · src/cli.ts:1383
F-12 Information disclosureCWE-209 · CWE-532Layer L1
console.log(`HTTP auth token: ${summary.http.authToken || "(unset)"} (${summary.sources.httpAuthToken})`);
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · Dockerfile:44
F-04 Network egressCWE-200 · CWE-319Layer L1
CMD wget -qO- http://127.0.0.1:${PORT}/healthz || exit 1
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · src/stdioHttpProxy.ts:6
F-04 Network egressCWE-200 · CWE-319Layer L1
const DEFAULT_ENDPOINT = `http://127.0.0.1:${process.env.PORT || "3000"}/mcp`;
Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
clear_doc_property, delete_blob, delete_block, delete_collection, delete_comment, delete_custom_property, delete_database_row, delete_doc, delete_folder, delete_organize_link, delete_surface_element,
Why
16 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenanceinv.hidden_file · .coderabbit.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.coderabbit.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInformation disclosuredisclose.log_secret · tests/test-database-creation.mjs:133
F-12 Information disclosureCWE-209 · CWE-532Layer L1
console.log(`Auth mode: email/password (sync login at startup)`);
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/playwright/verify-properties-comments.pw.ts:10
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { connectWorkspaceSocket, joinWorkspace, loadDoc, wsUrlFromGraphQLEndpoint } from '../../dist/ws.js';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/test-live-test-safety.mjs:97
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
() => resolveTestRunId({ AFFINE_TEST_RUN_ID: '../../unsafe' }),
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · docs/client-setup.md:230
F-04 Network egressCWE-200 · CWE-319Layer L1
"AFFINE_MCP_HTTP_PROXY_URL": "http://127.0.0.1:3000/mcp"
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · docs/configuration-and-deployment.md:157
F-04 Network egressCWE-200 · CWE-319Layer L1
| `AFFINE_MCP_HTTP_PROXY_URL` | No | `http://127.0.0.1:${PORT:-3000}/mcp` | Loopback Streamable HTTP endpoint used by `affine-mcp-http-proxy` |
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · docs/configuration-and-deployment.md:343
F-04 Network egressCWE-200 · CWE-319Layer L1
`http://127.0.0.1:${PORT:-3000}/mcp` and accepts loopback URLs only.
Why
No further detail recorded for this rule.
Fix
—
LOWObfuscation / stealthobf.homoglyph · tests/test-native-mindmap.mjs:43
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
f.mutate('update', { mindmapId: f.map.mindmapId, nodeId: c, text: 'Renamed\nЗадача', collapsed: true });
Why
No further detail recorded for this rule.
Fix
—
LOWObfuscation / stealthobf.homoglyph · tests/test-native-mindmap.mjs:50
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
assert.equal(result.nodes.find(n => n.nodeId === c).text, 'Renamed\nЗадача');
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@modelcontextprotocol/sdk, cors, express, form-data, jose, fractional-indexing, markdown-it, node-fetch
Why
19 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.credential_read · README.md:54
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
> New in v3.2.1: Scripted cookie login now keeps session secrets out of process arguments, validates workspace access before saving credentials, and restores document pagination for ordinary workspace
Why
asks the agent to read credentials
Fix
—
LOWPrompt injectionprompt.credential_read · docs/configuration-and-deployment.md:15
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
config file. Some consumers intentionally read environment variables directly
Why
asks the agent to read credentials
Fix
—
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:95
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- Added `login --save-credentials`, which stores the email/password used to sign in instead of the session cookie, so the server can sign in on its own and renew the session before it expires.
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:110
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- Classify AFFiNE Cloud by complete hostname labels instead of substring-matching `affine.pro`. Self-hosted deployments such as `https://affine.proxy.internal` or `https://affine.pro.example.com` prev
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:285
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- Email/password sign-in and all GraphQL/REST requests now send the `x-affine-version` header (configurable via the new `AFFINE_CLIENT_VERSION`, default `0.26.0`). AFFiNE servers that gate on a minimu
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · README.md:159
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
With the email/password method, this stores `AFFINE_EMAIL` and `AFFINE_PASSWORD` so the server signs in on its own and renews the session before it expires. The password is written to the mode-`600` c
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/client-setup.md:214
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
Always send the MCP bearer token in the `Authorization` header. The server
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine

Tools it exposes

107 declared in source · 16 destructive

45 read46 write16 destructive

16 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolRiskWhat it does
clear_doc_propertydestructiveNo description in the source
delete_blobdestructiveNo description in the source
delete_blockdestructiveNo description in the source
delete_collectiondestructiveNo description in the source
delete_commentdestructiveNo description in the source
delete_custom_propertydestructiveNo description in the source
delete_database_rowdestructiveNo description in the source
delete_docdestructiveNo description in the source
delete_folderdestructiveNo description in the source
delete_organize_linkdestructiveNo description in the source
delete_surface_elementdestructiveNo description in the source
delete_tagdestructiveNo description in the source
delete_workspacedestructiveNo description in the source
remove_doc_from_collectiondestructiveNo description in the source
remove_tag_from_docdestructiveNo description in the source
revoke_docdestructiveNo description in the source
add_database_columnwriteNo description in the source
add_database_rowwriteNo description in the source
add_doc_to_collectionwriteNo description in the source
add_mindmap_nodewriteNo description in the source
add_organize_linkwriteNo description in the source
add_surface_elementwriteNo description in the source
add_tag_to_docwriteNo description in the source
create_collectionwriteNo description in the source
create_commentwriteNo description in the source
create_custom_propertywriteNo description in the source
create_docwriteNo description in the source
create_doc_from_markdownwriteNo description in the source
create_folderwriteNo description in the source
create_mindmapwriteNo description in the source
create_semantic_pagewriteNo description in the source
create_tagwriteNo description in the source
create_workspacewriteNo description in the source
create_workspace_blueprintwriteNo description in the source
move_blockwriteNo description in the source
move_docwriteNo description in the source
move_organize_nodewriteNo description in the source
publish_docwriteNo description in the source
rename_folderwriteNo description in the source
set_doc_journalwriteNo description in the source
set_doc_propertywriteNo description in the source
set_mindmap_layoutwriteNo description in the source
set_mindmap_lockwriteNo description in the source
set_mindmap_stylewriteNo description in the source
update_blockwriteNo description in the source
update_collectionwriteNo description in the source
update_collection_ruleswriteNo description in the source
update_commentwriteNo description in the source
update_database_rowwriteNo description in the source
update_doc_iconwriteNo description in the source
update_doc_titlewriteNo description in the source
update_edgeless_blockwriteNo description in the source
update_folder_iconwriteNo description in the source
update_frame_childrenwriteNo description in the source
update_mindmap_nodewriteNo description in the source
update_profilewriteNo description in the source
update_settingswriteNo description in the source
update_surface_elementwriteNo description in the source
update_table_cellwriteNo description in the source
update_table_column_widthswriteNo description in the source
update_workspacewriteNo description in the source
upload_blobwriteNo description in the source
analyze_doc_fidelityreadNo description in the source
append_blockreadNo description in the source
append_markdownreadNo description in the source
append_semantic_sectionreadNo description in the source
cleanup_blobsreadNo description in the source
compose_database_from_intentreadNo description in the source
current_userreadNo description in the source
export_doc_markdownreadNo description in the source
export_with_fidelity_reportreadNo description in the source
find_doc_by_titlereadNo description in the source
get_capabilitiesreadNo description in the source
get_collectionreadNo description in the source
get_docreadNo description in the source
get_doc_iconreadNo description in the source
get_edgeless_canvasreadNo description in the source
get_folder_iconreadNo description in the source
get_mindmapreadNo description in the source
get_orphan_docsreadNo description in the source
get_workspacereadNo description in the source
inspect_template_structurereadNo description in the source
instantiate_template_nativereadNo description in the source
list_childrenreadNo description in the source
list_collectionsreadNo description in the source
list_commentsreadNo description in the source
list_doc_propertiesreadNo description in the source
list_docsreadNo description in the source
list_docs_by_tagreadNo description in the source
list_historiesreadNo description in the source
list_notificationsreadNo description in the source
list_organize_nodesreadNo description in the source
list_surface_elementsreadNo description in the source
list_tagsreadNo description in the source
list_workspace_treereadNo description in the source
list_workspacesreadNo description in the source
read_all_notificationsreadNo description in the source
read_database_cellsreadNo description in the source
read_database_columnsreadNo description in the source
read_docreadNo description in the source
reparent_mindmap_nodereadNo description in the source
replace_doc_with_markdownreadNo description in the source
resolve_commentreadNo description in the source
restore_docreadNo description in the source
search_docsreadNo description in the source
sign_inreadNo description in the source
trash_docreadNo description in the source

Install

Package version 3.9.0 · audited commit 2d13eb0

Read the findings first. The most severe is Information disclosure (medium) at src/cli.ts.

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

claude mcp add affine-mcp-server --env AFFINE_ADMIN_PASSWORD=${AFFINE_ADMIN_PASSWORD} --env AFFINE_MCP_HTTP_ALLOW_QUERY_TOKEN=${AFFINE_MCP_HTTP_ALLOW_QUERY_TOKEN} --env AFFINE_MCP_HTTP_ALLOW_UNAUTHENTICATED=${AFFINE_MCP_HTTP_ALLOW_UNAUTHENTICATED} --env AFFINE_MCP_HTTP_TOKEN=${AFFINE_MCP_HTTP_TOKEN} -- npx -y [email protected]

The command pins the package version recorded in the source (3.9.0); the audit covers commit 2d13eb0ca77a. Transport: sse · stdio · streamable-http. Reads these environment variables: AFFINE_ADMIN_PASSWORD, AFFINE_MCP_HTTP_ALLOW_QUERY_TOKEN, AFFINE_MCP_HTTP_ALLOW_UNAUTHENTICATED, AFFINE_MCP_HTTP_TOKEN, AFFINE_PASSWORD. Give it the narrowest token it needs.

Audit history

  1. !CAUTION B 81 / 100

    First audit · 2d13eb0ca77a

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/dawncr0w/affine/badge.svg)](https://modelsatlas.com/mcp/dawncr0w/affine/)

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 Affine MCP server

What is the Affine MCP server?
Model Context Protocol server for AFFiNE. Connect AI assistants to AFFiNE workspaces, documents, databases, and collaboration APIs over stdio or HTTP.
What tools does Affine expose?
107 in total: 45 read-only, 46 that write, and 16 that can delete or overwrite (clear_doc_property, delete_blob, delete_block, delete_collection, delete_comment). Every one is listed on this page with its risk.
Is Affine safe to connect to an agent?
With care. The audit graded it B (81/100) and found 22 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 16 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Affine need?
It reads AFFINE_ADMIN_PASSWORD, AFFINE_MCP_HTTP_ALLOW_QUERY_TOKEN, AFFINE_MCP_HTTP_ALLOW_UNAUTHENTICATED, AFFINE_MCP_HTTP_TOKEN and AFFINE_PASSWORD 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 Affine run?
It speaks sse, stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as affine-mcp-server at 3.9.0.
How current is this page?
The grade is for one exact copy of the source (2d13eb0ca77a), read on 2026-10-06. The repository is watched and re-audited when it changes.

Sources

  • dawncr0w/affine-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit 2d13eb0ca77aObserved · 6 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.