# affine-mcp-server-integration

affine-mcp-server-integration connects AI assistants to AFFiNE workspaces via the Model Context Protocol. Useful for searching, editing, and organizing docs directly from chat.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 116 installs · ★ 9 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/affine-mcp-server-integration/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/affine-mcp-server-integration

## What it does

This skill provides setup guidance and operational rules for `affine-mcp-server`. It enables coding assistants to talk to AFFiNE Cloud or self-hosted instances. The underlying server exposes 85 tools covering workspace listings, document search, template creation, and trash restoration.

Execution happens locally via `stdio` using the npm package or over HTTP through an official Docker container. Local credentials can be stored via `affine-mcp login` with file permissions set to 600. Without a valid API token or login credentials, calls to the AFFiNE workspace fail immediately.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill affine-mcp-server-integration -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/affine-mcp-server-integration/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/affine-mcp-server-integration/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill affine-mcp-server-integration -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/affine-mcp-server-integration/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill affine-mcp-server-integration -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/affine-mcp-server-integration/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/mcp-skills skills/affine-mcp-server-integration
```

2. **Manually: put the files in place**
- File: `.github/skills/affine-mcp-server-integration/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill affine-mcp-server-integration -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/affine-mcp-server-integration
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/affine-mcp-server-integration/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill affine-mcp-server-integration -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/affine-mcp-server-integration/SKILL.md

## When to use it
- connect Claude Code or Cursor to an AFFiNE workspace
- create and modify documents programmatically via MCP tools
- deploy a remote HTTP MCP bridge using Docker
- diagnose connectivity and active configuration using affine-mcp doctor

## Example prompts
- Connect my Claude Code session to my AFFiNE workspace
- Search AFFiNE notes for meeting notes and summarize them
- Run affine-mcp doctor to check my connection status

## Similar
- [qmd](https://affpapa.org/en/nevibecode/skills/qmd.md) — skill · 4200 installs
- [knowledge-base](https://affpapa.org/en/nevibecode/skills/knowledge-base.md) — skill · 875 installs
- [wiki](https://affpapa.org/en/nevibecode/skills/agricidaniel-wiki.md) — skill · 589 installs
- [save](https://affpapa.org/en/nevibecode/skills/save.md) — skill · 559 installs
- [company-brain](https://affpapa.org/en/nevibecode/skills/company-brain.md) — skill · 407 installs
- [obsidian-source-ingestion](https://affpapa.org/en/nevibecode/skills/obsidian-source-ingestion.md) — skill · 329 installs

From the same set: [reason-machines/mcp-skills](https://affpapa.org/en/nevibecode/by/reason-machines/mcp-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
