Affine MCP Server
MCP server by DAWNCR0W Verified · npm:@mseep
Affine MCP Server lets AI assistants work with AFFiNE workspaces and documents over stdio or HTTP. It suits people who want to automate AFFiNE Cloud or self-hosted workspace tasks from tools like Claude Code, Cursor, or Codex CLI.
Install Affine MCP Server
Built from the published package, never by AI.
claude mcp add affine-mcp-server -- npx -y @mseep/affine-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"affine-mcp-server": {
"args": [
"-y",
"@mseep/affine-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"affine-mcp-server": {
"args": [
"-y",
"@mseep/affine-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"affine-mcp-server": {
"args": [
"-y",
"@mseep/affine-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add affine-mcp-server -- npx -y @mseep/affine-mcp-server{
"mcpServers": {
"affine-mcp-server": {
"args": [
"-y",
"@mseep/affine-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add affine-mcp-server npx -y @mseep/affine-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the affine-mcp-server block.
About
Affine MCP Server is a Model Context Protocol server for AFFiNE. It exposes AFFiNE workspaces and documents to AI assistants over stdio by default, or over HTTP at a /mcp endpoint. The source says it supports both AFFiNE Cloud and self-hosted deployments.
The server is backed by AFFiNE GraphQL, WebSocket, and REST APIs and offers 108 MCP tools. These cover workspace, document, database, organization, and comment workflows. The source says it is aimed at people who run a local stdio server for clients such as Claude Code, Codex CLI, Cursor, or Claude Desktop, and at teams that expose a remote HTTP endpoint for hosted clients.
Written from the project's README and checked against it.
Tools it gives your assistant
set_doc_journalSets and clears native AFFiNE Journal dates on a document.delete_docRemoves workspace page metadata and requests content deletion, with a warning on partial results.trash_docMoves a document to trash for recoverable cleanup, according to the source.Code block toolsCreates and updates code blocks with optional native preview state and language readback.Database row metadataReads native database created-by and created-time columns from row metadata.
What you need
- Node.js 20.18.1 or later
- An AFFiNE Cloud account or a self-hosted AFFiNE instance
- A signed-in browser session cookie for AFFiNE Cloud
- Docker, optional, for running the container image
Try asking
- Set the journal date for my meeting notes document to today
- Move the outdated draft page to trash so I can recover it later
- Update the code block in my API doc and set its language to Python
Good to know
- Browser-local workspaces stored only in local storage are not accessible.
- AFFiNE 0.27+ removed the personal-access-token API, so token tools are not exposed.
- AFFiNE Cloud blocks programmatic email and password sign-in, so browser session authentication is required.
- Some AFFiNE servers keep content after delete_doc, so use trash_doc for recoverable cleanup.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Affine MCP Server
All alternatives →LearnHouse is an open source learning platform for building courses, learning paths and communities in your own academy. Its MCP server lets AI assistants read and build courses in your organization.
Agent-Native Calendar is the Calendar agent in Agent-Native, an open-source TypeScript framework for building agents with UIs. The README describes it as a way to find time, schedule events, and manage bookings. It is aimed at developers building agent apps.
Agent-Native Clips is the Clips agent from the Agent-Native framework, an open-source TypeScript project. It records and helps people understand meetings, screens, and voice notes.
Agent-Native Slides is the Slides agent in the Agent-Native open-source framework, described as a way to create and edit on-brand presentations. It is aimed at developers who build agents with a purpose-built UI.
AIHawk is an AI job application bot. It finds recent job postings that match your resume, then fills in and sends applications on the company's own forms after you pick the jobs.
Connects AI assistants to Microsoft 365 and Office services through the Microsoft Graph API. It suits users and administrators who want an assistant to work with Outlook, calendar, OneDrive, Teams and SharePoint data.
Compare with LearnHouse, Agent-Native Calendar or Agent-Native Clips
Affine MCP Server: common questions
Does Affine MCP Server work with AFFiNE Cloud and self-hosted AFFiNE?
The source says it supports both AFFiNE Cloud and self-hosted deployments. For AFFiNE Cloud it requires browser-session authentication.
Which transports does it support?
It supports stdio, which is the default, and HTTP at the /mcp path. The source says HTTP can be used for hosted or browser-connected clients.
Can it delete documents permanently?
delete_doc requests content deletion, but some servers may retain content. The source recommends trash_doc for recoverable cleanup.
How do I install Affine MCP Server?
In Claude Code run claude mcp add affine-mcp-server -- npx -y @mseep/affine-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Affine MCP Server the official server?
Affine MCP Server is published by npm:@mseep from its verified domain in the official MCP Registry.
Is Affine MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Affine MCP Server safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Affine MCP Server?
Similar MCP servers: LearnHouse, Agent-Native Calendar, Agent-Native Clips, Agent-Native Slides.
Does Affine MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
