MCP server · Audited from source
Affine MCP server
by dawncr0w/affine-mcp-serverMIT licenceAudited 6 Oct 2026 · source 2d13eb0ca77a
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.
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
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
| 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 13 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 7 findings |
L3 Inventory | Declared tools match the source | WARN 1 finding |
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
dawncr0wUser accountAccount type recorded when we read the repository. - PackagePublished on npm
affine-mcp-serverat 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
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
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
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
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
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
LOWInformation disclosuredisclose.log_secret · tests/test-database-creation.mjs:133
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
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
() => resolveTestRunId({ AFFINE_TEST_RUN_ID: '../../unsafe' }),- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/client-setup.md:230
"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
| `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
`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.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
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
@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
> 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
config file. Some consumers intentionally read environment variables directly
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:95
- 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
- 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
- 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
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
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
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.
| Tool | Risk | What it does |
|---|---|---|
clear_doc_property | destructive | No description in the source |
delete_blob | destructive | No description in the source |
delete_block | destructive | No description in the source |
delete_collection | destructive | No description in the source |
delete_comment | destructive | No description in the source |
delete_custom_property | destructive | No description in the source |
delete_database_row | destructive | No description in the source |
delete_doc | destructive | No description in the source |
delete_folder | destructive | No description in the source |
delete_organize_link | destructive | No description in the source |
delete_surface_element | destructive | No description in the source |
delete_tag | destructive | No description in the source |
delete_workspace | destructive | No description in the source |
remove_doc_from_collection | destructive | No description in the source |
remove_tag_from_doc | destructive | No description in the source |
revoke_doc | destructive | No description in the source |
add_database_column | write | No description in the source |
add_database_row | write | No description in the source |
add_doc_to_collection | write | No description in the source |
add_mindmap_node | write | No description in the source |
add_organize_link | write | No description in the source |
add_surface_element | write | No description in the source |
add_tag_to_doc | write | No description in the source |
create_collection | write | No description in the source |
create_comment | write | No description in the source |
create_custom_property | write | No description in the source |
create_doc | write | No description in the source |
create_doc_from_markdown | write | No description in the source |
create_folder | write | No description in the source |
create_mindmap | write | No description in the source |
create_semantic_page | write | No description in the source |
create_tag | write | No description in the source |
create_workspace | write | No description in the source |
create_workspace_blueprint | write | No description in the source |
move_block | write | No description in the source |
move_doc | write | No description in the source |
move_organize_node | write | No description in the source |
publish_doc | write | No description in the source |
rename_folder | write | No description in the source |
set_doc_journal | write | No description in the source |
set_doc_property | write | No description in the source |
set_mindmap_layout | write | No description in the source |
set_mindmap_lock | write | No description in the source |
set_mindmap_style | write | No description in the source |
update_block | write | No description in the source |
update_collection | write | No description in the source |
update_collection_rules | write | No description in the source |
update_comment | write | No description in the source |
update_database_row | write | No description in the source |
update_doc_icon | write | No description in the source |
update_doc_title | write | No description in the source |
update_edgeless_block | write | No description in the source |
update_folder_icon | write | No description in the source |
update_frame_children | write | No description in the source |
update_mindmap_node | write | No description in the source |
update_profile | write | No description in the source |
update_settings | write | No description in the source |
update_surface_element | write | No description in the source |
update_table_cell | write | No description in the source |
update_table_column_widths | write | No description in the source |
update_workspace | write | No description in the source |
upload_blob | write | No description in the source |
analyze_doc_fidelity | read | No description in the source |
append_block | read | No description in the source |
append_markdown | read | No description in the source |
append_semantic_section | read | No description in the source |
cleanup_blobs | read | No description in the source |
compose_database_from_intent | read | No description in the source |
current_user | read | No description in the source |
export_doc_markdown | read | No description in the source |
export_with_fidelity_report | read | No description in the source |
find_doc_by_title | read | No description in the source |
get_capabilities | read | No description in the source |
get_collection | read | No description in the source |
get_doc | read | No description in the source |
get_doc_icon | read | No description in the source |
get_edgeless_canvas | read | No description in the source |
get_folder_icon | read | No description in the source |
get_mindmap | read | No description in the source |
get_orphan_docs | read | No description in the source |
get_workspace | read | No description in the source |
inspect_template_structure | read | No description in the source |
instantiate_template_native | read | No description in the source |
list_children | read | No description in the source |
list_collections | read | No description in the source |
list_comments | read | No description in the source |
list_doc_properties | read | No description in the source |
list_docs | read | No description in the source |
list_docs_by_tag | read | No description in the source |
list_histories | read | No description in the source |
list_notifications | read | No description in the source |
list_organize_nodes | read | No description in the source |
list_surface_elements | read | No description in the source |
list_tags | read | No description in the source |
list_workspace_tree | read | No description in the source |
list_workspaces | read | No description in the source |
read_all_notifications | read | No description in the source |
read_database_cells | read | No description in the source |
read_database_columns | read | No description in the source |
read_doc | read | No description in the source |
reparent_mindmap_node | read | No description in the source |
replace_doc_with_markdown | read | No description in the source |
resolve_comment | read | No description in the source |
restore_doc | read | No description in the source |
search_docs | read | No description in the source |
sign_in | read | No description in the source |
trash_doc | read | No 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]{
"mcpServers": {
"affine-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"AFFINE_ADMIN_PASSWORD": "${AFFINE_ADMIN_PASSWORD}",
"AFFINE_MCP_HTTP_ALLOW_QUERY_TOKEN": "${AFFINE_MCP_HTTP_ALLOW_QUERY_TOKEN}",
"AFFINE_MCP_HTTP_ALLOW_UNAUTHENTICATED": "${AFFINE_MCP_HTTP_ALLOW_UNAUTHENTICATED}",
"AFFINE_MCP_HTTP_TOKEN": "${AFFINE_MCP_HTTP_TOKEN}"
}
}
}
}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
- !CAUTION B 81 / 100
First audit ·
2d13eb0ca77a
README badge
For maintainers · updates on every re-audit
[](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?
What tools does Affine expose?
Is Affine safe to connect to an agent?
What credentials does Affine need?
How does Affine run?
How current is this page?
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.
- What is the Affine MCP server?
- What tools does Affine expose?
- Is Affine safe to connect to an agent?