lark-wiki-migration
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., "@lark-wiki-migrationMigrate https://my.feishu.cn/wiki/SOURCE to https://my.feishu.cn/wiki/TARGET"
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.
English | 中文
Lark Wiki Migration
A cross-AI-product migration tool for Feishu (Lark) wiki spaces. Give it a source wiki link and a target wiki link, and it migrates all docx documents from the source space to the target, preserving the tree structure.
Available through:
CLI:
lark-wiki-migrate <source> <target>Claude Code skill: triggered by natural language
MCP Server: any MCP-compatible AI product (Codex, Workbuddy, etc.)
Prerequisites
Lark CLI installed and configured:
lark-cli config initUser authentication completed:
lark-cli auth login --domain allThe logged-in account must have both:
Read permission on the source wiki space
Create document permission on the target wiki space
Related MCP server: lark-mcp
Installation
git clone https://github.com/LiChunyu77/lark-wiki-migration.git
cd lark-wiki-migration
./install.shinstall.sh will:
Symlink the
lark-wiki-migratecommand into~/.local/binAutomatically install the Claude Code skill if
~/.claude/skillsis detected
After installation, make sure ~/.local/bin is in your PATH:
export PATH="$HOME/.local/bin:$PATH"CLI Usage
# Migrate
lark-wiki-migrate "https://my.feishu.cn/wiki/SOURCE" "https://my.feishu.cn/wiki/TARGET"
# Preview only, create nothing
lark-wiki-migrate "https://my.feishu.cn/wiki/SOURCE" "https://my.feishu.cn/wiki/TARGET" --dry-run
# Skip confirmation
lark-wiki-migrate "https://my.feishu.cn/wiki/SOURCE" "https://my.feishu.cn/wiki/TARGET" --yesClaude Code Usage
Restart Claude Code after installation, then say:
Migrate https://my.feishu.cn/wiki/SOURCE to https://my.feishu.cn/wiki/TARGET
Claude will automatically invoke lark-wiki-migrate and return the result.
MCP Server Usage
Works with any MCP-compatible AI client.
Configure the MCP server:
{ "mcpServers": { "lark-wiki-migration": { "command": "python3", "args": ["/absolute/path/to/mcp_server.py"] } } }The client will expose a
migrate_feishu_wikitool that accepts:source: source wiki URL or tokentarget: target wiki URL or tokendry_run: optional, scan only without creating anything
How It Works
lark-cli docs +fetchreads the source document XMLlark-cli docs +create --doc-format xmlcreates native docx documents under the target wikiRecursively walks the source wiki tree, preserving the hierarchy
Output
Each migration creates a dedicated working directory under ~/lark-wiki-migrations/ by default:
~/lark-wiki-migrations/
└── wiki-migration-<slug>-<timestamp>/
├── manifest.json
├── source_tree.json
└── migration_state.jsonsource_tree.json: source wiki structuremigration_state.json: resumable migration statemanifest.json: metadata for this migration run
Environment Variables
export LARK_WIKI_MIGRATION_DIR=~/my-migrations # Custom working directory base pathNotes
Only docx documents are migrated; embedded spreadsheets, bitables, whiteboards, and similar objects are not fully migrated
Images and attachments are usually preserved, but access-restricted resources may fail
The tool only uses the local
lark-clilogin session; it does not collect, upload, or store any credentialsThe tool operates through official APIs and can only access content your account already has permission to access — it does not bypass any permission restrictions
Compared with manually copying/exporting documents one by one, this tool supports batch migration, preserves the wiki hierarchy, and can resume interrupted migrations
Make sure you have legitimate access to both the source and target wiki spaces
Use of this tool must comply with the Feishu Open Platform terms of service and your organization's IP policies
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
MCP server for FormBro Canadian immigration application automation.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA zero-configuration MCP server enabling AI assistants to interact with Feishu (Lark) workspace through OAuth authentication, supporting document operations, content creation, and advanced file management.13 npmMIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to search, read, create, and update Feishu/Lark documents and wiki pages. It facilitates seamless document management and wiki searches through OAuth-authenticated API access.20 npm-
- AlicenseNot gradedqualityCmaintenanceMCP server for Feishu/Lark API integration, enabling AI agents to send messages, manage groups, create and edit documents and spreadsheets, and search knowledge bases.MIT
- AlicenseNot gradedqualityDmaintenanceOfficial MCP server for Feishu/Lark OpenAPI, enabling AI assistants to interact with Feishu/Lark platform for document processing, messaging, calendar scheduling, and more.4,817 npmMIT