AppFlowy MCP
AppFlowy MCP lets you drive AppFlowy Cloud through MCP tools for authentication, workspace and page management, content editing, databases, search, publishing, quick notes, AI chat, files, and Markdown import/export.
Authentication: log in, refresh tokens.
Workspaces & spaces: list, create, update, delete, leave, view settings/usage; list/create/update spaces.
Pages: create, get, update, move/reorder, duplicate, favorite/pin, list recent/favorites/trash, trash/restore/delete permanently, restore/empty all trash.
Page content: get collab as Markdown; append raw blocks, plain text, or Markdown; create Markdown pages; save pages; import Markdown files/directories.
Databases & rows: list databases/fields, create fields, list/get/create/upsert/update/delete/restore rows, find updated rows.
Search: full-text/semantic search and AI-generated cited summaries.
Publishing: publish/unpublish, manage namespace, list published views, get outline, public comments/reactions, duplicate published page.
Quick notes: list/create/update/delete.
AI chat: create/delete chats, settings, list messages, ask questions.
Files & user: upload local files, get user profile.
Members & invitations: list/update/remove/invite members, list/accept invitations.
Exports: export page/space/workspace as Markdown.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AppFlowy MCP list my workspaces"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AppFlowy MCP
An MCP server and CLI for AppFlowy: 128 tools covering workspaces, spaces, pages, document content (incl. collab-level editing with snapshot/restore), Markdown import & export, PDF/ZIP export, databases & rows, search, members and invitations, sharing, comments, publishing, notifications, file upload, and AI chat & meeting transcription. Distributed as a single static Rust binary — the same appflowy binary is the MCP server (appflowy serve) and a full CLI.
Quick start
Install (details and more platforms: docs/installation.md):
# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/weironz/appflowy_mcp/main/install.sh | sh
# Windows (PowerShell)
irm https://raw.githubusercontent.com/weironz/appflowy_mcp/main/install.ps1 | iexWire up an MCP client (docs/mcp-connect.md for Codex / Claude Desktop / Cursor, HTTP mode, and troubleshooting):
claude mcp add --scope user appflowy \
-e APPFLOWY_EMAIL=you@example.com \
-e APPFLOWY_PASSWORD=your-password \
-- appflowy serveOr drive it from a shell:
appflowy login
appflowy use my-workspace
appflowy export -o ./backup # whole workspace → Markdown tree (incremental on reruns)
appflowy search "quarterly report"Related MCP server: appflowy-mcp
Highlights
Two personalities, one binary: MCP server (stdio by default, Streamable HTTP with
--http) and a scriptable CLI with workspace/PATH addressing.Collab-faithful export: whole-workspace Markdown export with inline formatting decoded natively from yjs collabs (tables, math, nested lists), incremental on reruns; server-side PDF export and owner-only workspace ZIP backup.
Full-fidelity import: Markdown files & directories (images uploaded in parallel, sibling order preserved), CSV → database, doc/docx/html/pdf → pages, Notion
.ziparchives, all as resumable server-side tasks.Writes where it matters: pages, blocks, append (order-safe), collab-level document editing — replace a block's text, detach a block, snapshot and restore (CRDT-correct rebuild semantics) — plus database-row documents and row update/delete/restore.
Agent-grade errors: typed errors keep HTTP status/code end-to-end; input validation returns
isError: truetool results (MCP SEP-1303) so the model can self-correct.
Documentation
Where | What |
Installers, manual/source install, uninstall, asset matrix | |
Client setup & troubleshooting (Codex, Claude, Cursor, HTTP) | |
CLI reference: auth chain, addressing, every command, cron/CI | |
The full 128-tool catalog | |
How an AI client should use the tools (paste-ready block + recipes) | |
Module map, design notes, adding a tool, release process | |
What's shipped and what's deliberately deferred | |
Docs index |
Requirements & credentials
The server authenticates with environment variables (.env also works):
APPFLOWY_EMAIL=you@example.com
APPFLOWY_PASSWORD=your-password
APPFLOWY_BASE_URL=https://beta.appflowy.cloud # only for self-hostedThe CLI can use those, or persistent tokens from appflowy login (~/.config/appflowy-cli/credentials.json). Most write operations need a workspace plus a parent view id (workspace → space → page).
Notes
The original Python implementation was removed in v0.8.0 (see tag
v0.8.0for those sources); PyPI packages are frozen atappflowy-mcp0.8.0 /appflowy-cli0.6.4.Some endpoints are implemented from AppFlowy source routes that are not in the public OpenAPI document; newer commercial-cloud capabilities degrade with a clear 404 or a documented fallback on older self-hosted images.
Logs always go to stderr (stdout stays the JSON-RPC channel).
License
Apache License 2.0 — Copyright 2026 weironz.
Available Tools
81 toolsappflowy_accept_invitationB
Accept a workspace invitation by invite_id.
Inputs: invite_id (required).
appflowy_add_published_commentB
Add a comment to a published view, optionally replying to another comment.
Inputs: content (required), view_id (required), reply_comment_id.
appflowy_add_published_reactionC
Add an emoji reaction to a comment on a published view.
Inputs: view_id (required), comment_id (required), reaction_type (required).
appflowy_append_blocks_to_pageC
Append raw AppFlowy document blocks to the end of a page.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_append_markdown_to_pageB
Append Markdown content to an existing document page.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_append_page_contentC
Default tool for appending AI answers, notes, summaries, or generated content to an existing AppFlowy document page. The content_format defaults to markdown.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_append_text_to_pageC
Append one or more plain-text paragraph blocks to the end of a page.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_chat_askA
Ask the workspace AI a question in an existing chat and wait for the answer (non-streaming). Returns both the question message id and the AI answer. Create a chat first with appflowy_create_chat.
Inputs: chat_id (required), question (required), workspace_id (required).
appflowy_create_chatA
Create an AI chat in a workspace. Optionally pass rag_ids (page view ids) the AI should use as context. Returns the chat_id for follow-up calls.
Inputs: request (required), workspace_id (required).
appflowy_create_database_fieldB
Add a new field (column) to a database.
Inputs: request (required), database_id (required), workspace_id (required).
appflowy_create_markdown_pageA
Create a document page from Markdown content. Prefer appflowy_save_page for general AI answer or note saving.
Inputs: request (required), workspace_id (required).
appflowy_create_pageC
Create a page under a space or parent page.
Inputs: request (required), workspace_id (required).
appflowy_create_quick_noteC
Create a quick note from plain text (or raw block data).
Inputs: request (required), workspace_id (required).
appflowy_create_rowC
Create a new row in a database.
Inputs: request (required), database_id (required), workspace_id (required).
appflowy_create_spaceC
Create a space in a workspace.
Inputs: request (required), workspace_id (required).
appflowy_create_workspaceC
Create a new workspace.
Inputs: request (required).
appflowy_delete_chatC
Delete an AI chat.
Inputs: chat_id (required), workspace_id (required).
appflowy_delete_page_from_trashB
Permanently delete a trashed page.
Inputs: page_id (required), workspace_id (required).
appflowy_delete_quick_noteC
Delete a quick note.
Inputs: workspace_id (required), quick_note_id (required).
appflowy_delete_workspaceB
Permanently delete a workspace and everything in it. Irreversible.
Inputs: workspace_id (required).
appflowy_duplicate_pageC
Duplicate a page and all of its child pages.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_duplicate_published_pageB
Duplicate a published page or template into a workspace. dest_view_id is the destination parent Space or Page (not the workspace_id).
Inputs: dest_view_id (required), workspace_id (required), published_view_id (required).
appflowy_empty_trashA
Permanently delete ALL trashed pages in a workspace. Irreversible.
Inputs: workspace_id (required).
appflowy_export_pageA
Export a single page as a local Markdown file, preserving inline formatting (bold, italic, links, code). Child pages are not included; use appflowy_export_space for a whole subtree.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_export_spaceA
Export a space (or any page subtree) to a local directory of Markdown files, mirroring appflowy_import_markdown_directory: a page with children becomes a folder whose own content is README.md, leaf pages become .md files. Non-document views (grids, boards) are skipped with warnings.
Inputs: request (required), workspace_id (required), space_view_id (required).
appflowy_export_workspaceB
Export every space in a workspace to a local directory tree of Markdown files. Each space becomes a top-level folder; pages follow the appflowy_export_space layout.
Inputs: request (required), workspace_id (required).
appflowy_favorite_pageC
Favorite, unfavorite, pin, or unpin a page.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_get_chat_settingsC
Get an AI chat's settings (name, rag_ids, metadata).
Inputs: chat_id (required), workspace_id (required).
appflowy_get_collabA
Get a document's content as Markdown via the raw collab endpoint. This reads collab storage directly, bypassing the lazy page-view path, so it can recover pages that appflowy_get_page / export report as 'Collab not found' or return empty.
Inputs: page_id (required), workspace_id (required), title.
appflowy_get_database_fieldsC
Get fields of a specific database.
Inputs: database_id (required), workspace_id (required).
appflowy_get_pageC
Get page view details and collab data.
Inputs: page_id (required), workspace_id (required).
appflowy_get_published_commentsC
List comments on a published view.
Inputs: view_id (required).
appflowy_get_published_outlineA
Get the full page tree of a published workspace by its publish namespace. Public: no membership in that workspace is required.
Inputs: publish_namespace (required).
appflowy_get_published_reactionsA
List reactions on a published view, optionally filtered to one comment.
Inputs: view_id (required), comment_id.
appflowy_get_publish_namespaceB
Get the workspace publish namespace (the subdomain published pages live under).
Inputs: workspace_id (required).
appflowy_get_row_detailsC
Get details of specific rows by IDs.
Inputs: row_ids (required), database_id (required), workspace_id (required), with_doc.
appflowy_get_updated_rowsB
Find updated rows in a database after a specific datetime.
Inputs: after (required), database_id (required), workspace_id (required).
appflowy_get_user_profileA
Get the authenticated user's profile (uid, email, name, latest workspace).
Inputs: no named parameters.
appflowy_get_workspace_folderB
Get a workspace folder tree. Use root_view_id to expand a specific space/page and depth to control recursion.
Inputs: workspace_id (required), depth, root_view_id.
appflowy_get_workspace_settingsC
Get workspace settings (search indexing, AI model).
Inputs: workspace_id (required).
appflowy_get_workspace_usageC
Get workspace storage usage (consumed capacity in bytes).
Inputs: workspace_id (required).
appflowy_import_markdown_directoryB
Recursively import a local Markdown directory into AppFlowy. Every local folder becomes an AppFlowy page, Markdown files become child pages, and local image references are uploaded and inserted in place.
Inputs: request (required), workspace_id (required).
appflowy_import_markdown_fileB
Import one local Markdown file as an AppFlowy page. Local image references in Markdown are resolved relative to the file, uploaded to AppFlowy, and replaced with AppFlowy file URLs when upload_assets is true.
Inputs: request (required), workspace_id (required).
appflowy_invite_membersB
Invite people to a workspace by email with a role (Owner, Member, Guest).
Inputs: request (required), workspace_id (required).
appflowy_leave_workspaceC
Leave a workspace you are a member of.
Inputs: workspace_id (required).
appflowy_list_chat_messagesA
List messages in an AI chat, newest first. Use limit to bound the page size and before_message_id to page backwards through history.
Inputs: chat_id (required), workspace_id (required), limit, before_message_id.
appflowy_list_databasesC
List all databases in a workspace.
Inputs: workspace_id (required).
appflowy_list_favoritesC
List favorite pages in a workspace.
Inputs: workspace_id (required).
appflowy_list_invitationsA
List workspace invitations sent to the authenticated user, optionally filtered by status (Pending, Accepted, Rejected).
Inputs: status.
appflowy_list_membersC
List members of a workspace with their roles.
Inputs: workspace_id (required).
appflowy_list_published_viewsC
List all published pages in a workspace.
Inputs: workspace_id (required).
appflowy_list_quick_notesA
List quick notes in a workspace, with optional search and pagination.
Inputs: workspace_id (required), limit, offset, search_term.
appflowy_list_recentB
List recently viewed pages in a workspace.
Inputs: workspace_id (required).
appflowy_list_rowsC
List all row IDs in a database.
Inputs: database_id (required), workspace_id (required).
appflowy_list_spacesB
List all spaces in a workspace. Spaces are folder views where is_space is true.
Inputs: workspace_id (required), depth.
appflowy_list_trashC
List trashed pages in a workspace.
Inputs: workspace_id (required).
appflowy_list_workspacesA
List all workspaces for the authenticated user.
Inputs: no named parameters.
appflowy_loginA
Login to AppFlowy. Tokens are stored in the server; they are not returned to avoid leaking credentials into tool output.
Inputs: request (required).
appflowy_move_pageA
Move a page to a new parent and/or reorder it among its siblings. Set new_parent_view_id to the destination parent (pass the page's current parent to reorder in place) and prev_view_id to the sibling to place it after (omit to put it first).
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_move_page_to_trashC
Move a page to trash.
Inputs: page_id (required), workspace_id (required).
appflowy_publish_pageC
Publish a page to the web so anyone with the link can view it.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_refresh_tokenB
Refresh the access token. Uses the stored refresh token unless one is provided. Tokens are not returned.
Inputs: request (required).
appflowy_remove_membersC
Remove members from a workspace by email.
Inputs: emails (required), workspace_id (required).
appflowy_reorder_favoriteC
Reorder a page within the favorites list. prev_view_id is the favorite to place it after (omit to put it first).
Inputs: page_id (required), workspace_id (required), prev_view_id.
appflowy_reorder_pagesA
Reorder the direct child pages of a space or page in one call. Give either an explicit page_ids order or sort_by name/created_at/last_edited_time. AppFlowy has no bulk-sort endpoint, so this chains the per-page move endpoint, skipping pages already in place.
Inputs: request (required), workspace_id (required).
appflowy_restore_all_from_trashC
Restore all trashed pages in a workspace.
Inputs: workspace_id (required).
appflowy_restore_page_from_trashC
Restore a page from trash.
Inputs: page_id (required), workspace_id (required).
appflowy_save_pageA
Default tool for saving AI answers, notes, summaries, or generated content as a new AppFlowy document page. The content_format defaults to markdown, so Markdown headings, lists, links, code blocks, and rich text are converted to AppFlowy blocks unless content_format is explicitly set to plain_text.
Inputs: request (required), workspace_id (required).
appflowy_searchA
Search documents in a workspace by keyword or natural-language query (full-text plus semantic search when the server has indexing enabled). Returns matching documents with object_id (the page view_id), preview, and score.
Inputs: query (required), workspace_id (required), limit, preview_size.
appflowy_search_summaryB
Search the workspace and return an AI-generated, cited summary that answers the query over the matched documents. Runs a document search first, then summarizes the results (each summary lists its source object_ids).
Inputs: query (required), workspace_id (required), limit, only_context.
appflowy_set_publish_namespaceC
Rename the workspace publish namespace.
Inputs: workspace_id (required), new_namespace (required).
appflowy_unpublish_pageC
Unpublish a page from the web.
Inputs: page_id (required), workspace_id (required).
appflowy_update_chat_settingsB
Update an AI chat's name, rag_ids, or metadata.
Inputs: chat_id (required), request (required), workspace_id (required).
appflowy_update_memberB
Update a workspace member's role (Owner, Member, Guest) or name.
Inputs: request (required), workspace_id (required).
appflowy_update_pageC
Update a page name, icon, lock state, or extra metadata.
Inputs: page_id (required), request (required), workspace_id (required).
appflowy_update_quick_noteA
Replace a quick note's content with plain text (or raw block data).
Inputs: request (required), workspace_id (required), quick_note_id (required).
appflowy_update_spaceC
Update a space name, icon, color, or permission.
Inputs: request (required), space_id (required), workspace_id (required).
appflowy_update_workspaceB
Update a workspace name and/or icon.
Inputs: request (required), workspace_id (required).
appflowy_update_workspace_settingsC
Update workspace settings: disable_search_indexing and/or ai_model.
Inputs: request (required), workspace_id (required).
appflowy_upload_fileA
Upload a local file to AppFlowy file storage and return its URL, which can be referenced from image or file blocks in pages.
Inputs: request (required), workspace_id (required).
appflowy_upsert_rowC
Update existing row or create if it doesn't exist.
Inputs: request (required), database_id (required), workspace_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 81 tools
Multiple content-creation and append tools overlap, notably save_page vs create_markdown_page and append_page_content vs append_markdown_to_page, which can cause selection uncertainty. However, explicit default-tool hints and clear scope labels (published, workspace, trash, database, chat) help distinguish most of the large surface.
The vast majority of tools follow an appflowy_verb_noun pattern with recognizable resource domains. Minor deviations such as chat_ask's noun_verb order, favorite as a verb, and the mix of delete/remove/empty prevent a perfect score.
81 tools is far beyond the typical MCP server surface and represents an extreme count by the rubric. Many page-creation and append variants could be consolidated, making the set heavier and harder for an agent to navigate.
Workspace, page, trash, favorite, publishing, and chat workflows are covered in depth. However, database support is missing row/field update and delete operations, page content can only be created or appended rather than replaced, and there is no way to list existing chats, leaving some dead ends.
Maintenance
Related MCP Connectors
MCP server for Appcircle mobile CI/CD platform.
MCP server for interacting with the Supabase platform
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for hubNote, enabling AI assistants to manage workspaces, pages, and data rows via natural language.9 npmMIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted, token-scoped Model Context Protocol server for AppFlowy. It gives AI agents tools to read and edit your AppFlowy workspaces while bounding each client to exactly the pages you allow via per-token tree-shaped scopes.8MIT
- AlicenseCqualityDmaintenanceMCP server for managing Yonote workspace, providing 56 tools for documents, collections, users, groups, comments, sharing, favorites, revisions, events, and views via AI assistants.1001GPL 2.0
- AlicenseAqualityDmaintenanceMCP server that provides role-based access control for Outline workspaces, allowing users to interact with docs, users, and admin tools according to their assigned role.15MIT