MCP Server My Lark Doc
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., "@MCP Server My Lark Doc search wiki for design specs"
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.
MCP Server My Lark Doc
A Model Context Protocol server for searching and accessing Lark(Feishu) documents.
Features
Document Content Access
Supports both Lark Doc and Wiki document types
Automatically handles document type detection and ID extraction
Returns raw content in text format for LLM processing
Authentication
OAuth-based user authentication
Automatic token refresh and expiration management
Customizable OAuth callback server
Error Handling
Comprehensive error reporting for authentication issues
Clear feedback for invalid document URLs
Detailed error messages for troubleshooting
Related MCP server: feishu-mcp-server
Installation
uvx mcp-server-my-lark-docConfiguration
Get your Lark App ID and App Secret
Visit the Lark Open Platform: https://open.larkoffice.com/app
Make Sure your Lark App has Permissions below
wiki:wiki:readonly
wiki:node:read
docx:document:readonly
search:docs:readEnvironment Variables
Before using this MCP server, you need to set up your Lark application credentials:
Create a Lark application in Lark Open Platform
Get your App ID and App Secret
Configure environment variables:
export LARK_APP_ID="your_app_id"
export LARK_APP_SECRET="your_app_secret"
export OAUTH_HOST="localhost" # OAuth callback server host (default: localhost)
export OAUTH_PORT="9997" # OAuth callback server port (default: 9997)Usage
Configure in Claude desktop:
"mcpServers": {
"lark_doc": {
"command": "uvx",
"args": ["mcp-server-my-lark-doc"],
"env": {
"LARK_APP_ID": "your app id",
"LARK_APP_SECRET": "your app secret",
"OAUTH_HOST": "localhost", // optional
"OAUTH_PORT": "9997" // optional
}
}
}Available Tools
get_lark_doc_content
Purpose: Retrieve document content from Lark
Args: documentUrl (string) - The URL of the Lark document
Returns: Document content in text format
Supports:
Doc URLs: https://xxx.feishu.cn/docx/xxxxx
Wiki URLs: https://xxx.feishu.cn/wiki/xxxxx
search_wiki
Purpose: Search documents in Lark Wiki
Args:
query (string) - Search keywords
page_size (int, optional) - Number of results to return (default: 10)
Returns: JSON string containing search results with following fields:
title: Document title
url: Document URL
create_time: Document creation time
update_time: Document last update time
Error Messages
Common error messages and their solutions:
"Lark client not properly initialized": Check your LARK_APP_ID and LARK_APP_SECRET
"Invalid Lark document URL format": Verify the document URL format
"Failed to get document content": Check document permissions and token validity
"Failed to get app access token": Check your application credentials and network connection
"Failed to get wiki document real ID": Check if the wiki document exists and you have proper permissions
"Document content is empty": The document might be empty or you might not have access to its content
"Authorization timeout": ser didn't complete authorization within 5 minutes
Development Notes
OAuth Callback Server
Default configuration:
Host: localhost
Port: 9997 Customize via environment variables:
OAUTH_HOST: Set callback server host
OAUTH_PORT: Set callback server port
License
MIT License
Available Tools
2 toolsget_lark_doc_contentC
Get Lark document content
Args:
documentUrl: Lark document URL
Inputs: documentUrl (required).
search_wikiC
Search Lark Wiki
Args:
query: Search keywords
page_size: Number of results to return (default: 10)
Inputs: query (required), page_size.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one retrieves document content by URL, the other searches the wiki by keywords. There is no ambiguity or overlap.
Both tools use a consistent verb_noun pattern with snake_case: 'get_lark_doc_content' and 'search_wiki'. The naming convention is uniform and predictable.
With only 2 tools, the server feels underdeveloped for a document/wiki domain. Typical servers of this scope would include list, create, update, or delete operations, making this minimal.
The tool surface is incomplete for Lark Doc: it only provides content retrieval and wiki search, but lacks essential operations like listing documents, editing, or managing wiki pages. Major gaps exist.
Maintenance
Related MCP Connectors
Knowledge base MCP for AI agents on iknow.dev. Search, read, and maintain via OAuth.
Search and manage your team's knowledge from MCP clients.
Make your knowledge agent-ready. One MCP endpoint, 5 connectors, 3 search modes.
Hosted MCP for Google Workspace, Atlassian and Notion: one OAuth, per-user accounts, write access.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn 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.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI applications to access Feishu (Lark) knowledge base and cloud documents through the MCP protocol.17 npm1ISC
- AlicenseBqualityDmaintenanceEnables interaction with Feishu (Lark) via MCP for sending messages, managing calendar events, searching documents, and reading/writing bitable records.8Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables interacting with Feishu (Lark) multidimensional tables through MCP tools. Supports listing tables, reading records, searching records and apps, and getting views.-