Feishu MCP Server provides a powerful integration between AI coding tools like Cursor and Feishu (Lark) documents based on the Model Context Protocol. This implementation enables AI tools to directly access, read, and modify Feishu documents, making document interaction more efficient than traditional copy-paste methods.
The fastest way to get started is using NPX:
npx feishu-mcp --feishu-app-id=<your-feishu-app-id> --feishu-app-secret=<your-feishu-app-secret>
# Alternative package managers
pnpx feishu-mcp --feishu-app-id=<your-feishu-app-id> --feishu-app-secret=<your-feishu-app-secret>
yarn dlx feishu-mcp --feishu-app-id=<your-feishu-app-id> --feishu-app-secret=<your-feishu-app-secret>
bunx feishu-mcp --feishu-app-id=<your-feishu-app-id> --feishu-app-secret=<your-feishu-app-secret>
You can also access the published version at: https://smithery.ai/server/@cso1z/feishu-mcp
For tools like Windsurf, Cline, and Claude Desktop that use configuration files:
{
"mcpServers": {
"feishu-mcp": {
"command": "npx",
"args": ["-y", "feishu-mcp", "--stdio"],
"env": {
"FEISHU_APP_ID": "<your-feishu-app-id>",
"FEISHU_APP_SECRET": "<your-feishu-app-secret>"
}
}
}
}
# Clone repository
# Install dependencies
pnpm install
# Copy .env.example to .env and add your credentials
# Run the server
pnpm run dev
You can configure the server using environment variables or command line arguments:
FEISHU_APP_ID
: Your Feishu application ID (required)FEISHU_APP_SECRET
: Your Feishu application secret (required)PORT
: Port to run the server on (default: 3333)--version # Show version number
--feishu-app-id # Your Feishu application ID
--feishu-app-secret # Your Feishu application secret
--port # Port to run the server on
--stdio # Run in command mode instead of HTTP/SSE
--help # Show help menu
Settings > AI > MCP Servers
http://localhost:3333
(or your configured port)Cmd+K
or Ctrl+K
)https://vq5xxxxx7bc.feishu.cn/drive/folder/FPKvfjdxxxxx706RnOc
https://vq5ixxxx7bc.feishu.cn/docx/J6T0d6exxxxxxxDdc1zqwnph
For permission issues, refer to the Feishu documentation on cloud documents and knowledge base common questions.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.