MCP Server My Lark Doc
by T0UGH
A Model Context Protocol server designed for searching and accessing documents within Lark (Feishu). It provides tools to retrieve document content and search within Lark Wiki for seamless integration with LLMs.
Last updated: N/A
What is MCP Server My Lark Doc?
This is a Model Context Protocol (MCP) server that allows you to search and access documents from Lark (Feishu). It supports both Lark Doc and Wiki document types, providing raw content in text format suitable for processing by Large Language Models (LLMs).
How to use MCP Server My Lark Doc?
- Install the server using
uvx mcp-server-my-lark-doc
. 2. Configure your Lark App ID and App Secret from the Lark Open Platform. 3. Ensure your Lark App has the required permissions (wiki:wiki:readonly, wiki:node:read, docx:document:readonly, search:docs:read). 4. Set the environment variables LARK_APP_ID, LARK_APP_SECRET, OAUTH_HOST (optional), and OAUTH_PORT (optional). 5. Configure the server in your Claude desktop environment as shown in the example.
Key features of MCP Server My Lark Doc
Supports Lark Doc and Wiki document types
OAuth-based user authentication with automatic token refresh
Returns raw document content in text format
Provides a search tool for Lark Wiki
Comprehensive error reporting
Use cases of MCP Server My Lark Doc
Retrieving content from Lark documents for LLM processing
Searching for information within Lark Wiki using keywords
Integrating Lark documents into LLM-powered applications
Building chatbots that can access and utilize Lark document content
FAQ from MCP Server My Lark Doc
What should I do if I get 'Lark client not properly initialized' error?
What should I do if I get 'Lark client not properly initialized' error?
Check your LARK_APP_ID and LARK_APP_SECRET environment variables to ensure they are correctly configured.
What does 'Invalid Lark document URL format' mean?
What does 'Invalid Lark document URL format' mean?
Verify that the document URL you are using is in the correct format (e.g., https://xxx.feishu.cn/docx/xxxxx or https://xxx.feishu.cn/wiki/xxxxx).
What if I get 'Failed to get document content'?
What if I get 'Failed to get document content'?
Check the document permissions and token validity. Ensure that your Lark app has the necessary permissions to access the document.
What if I get 'Failed to get app access token'?
What if I get 'Failed to get app access token'?
Check your application credentials (LARK_APP_ID and LARK_APP_SECRET) and your network connection to the Lark Open Platform.
What if I get 'Authorization timeout'?
What if I get 'Authorization timeout'?
This means the user didn't complete authorization within 5 minutes. Try again and make sure to authorize the application promptly.