feishu-reader
Click on "Install 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., "@feishu-readerextract this Feishu doc to markdown: https://example.feishu.cn/docx/abc123"
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.
Feishu Reader
This is a desktop application built with Python and PyQt6, designed to help users quickly extract Feishu documents (Docx / Wiki) and convert them into Markdown format for local storage.
🌟 Features
Graphical User Interface: Provides a clean and easy-to-use PyQt6 desktop interface.
One-Click Extraction: Supports pasting Feishu document/wiki links to fetch and generate
.mdfiles with a single click.Comprehensive Format Support: Parses and supports common Feishu document elements such as text, multi-level headings, code blocks, lists, quotes, tables, and Mermaid diagrams.
Image Localization: Automatically downloads images within the document to a local
assets_<doc_token>/directory and generates relative path references in the Markdown file.Permissions & Authentication:
Enter the Feishu App ID and App Secret directly in the interface to obtain an Access Token with one click.
Supports manual Token entry and a "Remember" checkbox to save credentials locally.
Local Storage: Automatically generates filenames with timestamps and saves them to a user-specified directory.
Related MCP server: Feishu MCP Server
🔑 Feishu App Configuration
This tool accesses documents via a Custom App on the Feishu Open Platform. The following configuration is required for the first use.
Step 1: Create a Custom App
Open the Feishu Open Platform and log in with an administrator account.
Go to the Developer Console → Click Create App in the top right corner → Select Custom App.
Enter the app name (e.g., "Document Extraction Tool"), description, upload an icon, and click Confirm.
Go to the app details page, and under the Credentials & Basic Info tab, copy:
App ID (e.g.,
cli_xxxxxxxxxxxxxxxx)App Secret (Click "View" to copy)
Step 2: Enable Required Permissions
Go to the app details page → Permissions & Scopes → Search for and enable the following permissions:
Permission Identifier | Permission Name | Purpose |
| View Wiki Info | Access |
| View New Documents | Read Block content of Feishu Docx format documents |
| Download Media | Download images and attachments from cloud documents |
| View Document Content | Get content of documents within the access scope |
| View New Documents | Get content of new documents |
Note: After enabling permissions, go to the Version Management & Release tab, create and release a version for the permissions to take effect.
Step 3: Share Documents with the App
By default, Feishu documents are only visible to authorized personnel. You must share the target document (or knowledge base) with the app bot:
Open the target Feishu document and click Share in the top right corner.
Search for your App Name in the sharing dialog and set the permission to Can View.
Click Confirm, and the app will be able to access the document.
For Wiki documents, you must add the app bot in the Member Management section of the Wiki and grant it viewing permissions.
🛠️ Installation and Running
Requirements
Python 3.10 or higher
Install Dependencies
pip install -r requirements.txtLaunch Desktop App
python main.py🔌 MCP Server Mode
Supports running as an MCP server, making it easy to call directly from AI tools like Claude and Cursor.
Configure Environment Variables
export FEISHU_APP_ID="cli_xxxxxxxxxxxxx"
export FEISHU_APP_SECRET="xxxxxxxxxxxxxxxx"Start MCP Server
python mcp_server.pyConfigure for Claude / Cursor
Add the following to ~/.claude.json or your project's MCP configuration:
{
"mcpServers": {
"feishu-reader": {
"command": "python",
"args": ["mcp_server.py"],
"env": {
"FEISHU_APP_ID": "cli_xxxxxxxxxxxxx",
"FEISHU_APP_SECRET": "xxxxxxxxxxxxxxxx"
},
"workingDirectory": "/path/to/feishu-reader-mcp"
}
}
}📖 User Guide
Enter Credentials: Enter the App ID and App Secret of your Feishu custom app at the top of the interface (saved automatically after first use).
Get Token: Click the [Refresh] button next to the Access Token row to automatically fetch and fill the Token; you can also paste an existing Token manually.
Paste Document Link: Paste the Feishu document or Wiki page link into the "Document URL" input box (supports
/docx/,/doc/, and/wiki/type links).Start Extraction: Click [Start Extraction] and select the directory to save the Markdown file in the pop-up window.
Wait for Completion: The log area at the bottom will display progress in real-time. Once finished, find the
.mdfile and theassets_xxx/image directory in the target folder.
📄 Project Structure
File | Description |
| Main entry point, contains PyQt6 interface definition and async worker logic |
| Feishu OpenAPI interaction layer, responsible for fetching Block trees and downloading images |
| Markdown conversion engine, maps various Feishu Blocks to Markdown syntax |
| MCP server mode entry point |
| Python dependency list |
💡 Notes
This tool is adapted for the new Feishu document format (based on
/docx/v1/documentsOpenAPI); older document formats may have formatting discrepancies.Image downloading requires the app to have the
docs:document.media:downloadpermission enabled and the document to be correctly shared with the app bot; otherwise, images will be skipped and the reason will be logged.API calls have rate limits (5 QPS / 10,000 per day); please avoid frequent repeated extractions for large documents.
The Token is valid for approximately 2 hours by default; click [Refresh] to re-obtain it after expiration.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Convert documents and web pages to clean Markdown: PDF, DOCX, XLSX, EPUB, scanned files, any URL.
Parse PDF/Word/PPT/HTML to Markdown; tables as JSON, image extraction, RAG chunking, page ranges.
Clean, repair, and convert AI-generated Markdown to HTML/PDF/DOCX/PNG; save and share documents.
High-fidelity PDF to structured Markdown conversion and document field extraction.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Feishu (Lark) APIs for document management, bot messaging, chat operations, and multi-dimensional table (Bitable) CRUD operations through natural language.341MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to read and interact with Feishu (Lark) documents, spreadsheets, and multi-dimensional tables. It provides tools for extracting content and metadata from various Feishu resources through secure OAuth or tenant-level authentication.3473MIT
- AlicenseAqualityDmaintenanceAllows AI assistants to fetch and read Enterprise WeChat documents in real time using cookie authentication and HTML-to-Markdown conversion.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI applications to access Feishu (Lark) knowledge base and cloud documents through the MCP protocol.341ISC
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ancienthu/feishu-reader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server