Skip to main content
Glama

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.

release license

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 | iex

Wire 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 serve

Or 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 .zip archives, 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: true tool results (MCP SEP-1303) so the model can self-correct.

Documentation

Where

What

docs/installation.md

Installers, manual/source install, uninstall, asset matrix

docs/mcp-connect.md

Client setup & troubleshooting (Codex, Claude, Cursor, HTTP)

docs/cli.md

CLI reference: auth chain, addressing, every command, cron/CI

docs/tools.md

The full 128-tool catalog

docs/agent-guide.md

How an AI client should use the tools (paste-ready block + recipes)

docs/development.md

Module map, design notes, adding a tool, release process

docs/ROADMAP.md

What's shipped and what's deliberately deferred

docs/README.md

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-hosted

The 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.0 for those sources); PyPI packages are frozen at appflowy-mcp 0.8.0 / appflowy-cli 0.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 tools
appflowy_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_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

    C2.8/5.0

    Scored across 81 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count1/5

    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.

    Completeness3/5

    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

    ActivitySlowing
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      8
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      MCP server for managing Yonote workspace, providing 56 tools for documents, collections, users, groups, comments, sharing, favorites, revisions, events, and views via AI assistants.
      100
      1
      GPL 2.0