open-feishu
MCP server from ztxtxwd/open-feishu-mcp-server
claude mcp add --transport stdio ztxtxwd-open-feishu-mcp-server node server.js \ --env FEISHU_APP_ID="your_feishu_app_id" \ --env FEISHU_APP_SECRET="your_feishu_app_secret" \ --env COOKIE_ENCRYPTION_KEY="your_random_string_for_cookie_encryption"
How to use
This MCP server implements a remote MCP with Feishu (Luo) OAuth integration. Users can authenticate via Feishu and connect through multiple clients to perform MCP tasks remotely. The server emphasizes zero-configuration workflows and token management, allowing clients like MCP Inspector, Cursor, and ChatWise to test and use the MCP tools without manual parameter juggling. You can inspect and test the server using the MCP Inspector, connect with Cursor to install and configure remote MCPs, or integrate through ChatWise for command-line style interactions that stream I/O through the MCP channels. The architecture is designed for Cloudflare Workers deployment with a Durable Objects-based MCP backend, supporting remote clients and standardized tool definitions. Ensure your Feishu app is configured with the required scopes and the OAuth redirect URL matches your deployment (production or local).
How to install
Prerequisites:
- Node.js 18+ and npm
- A Feishu Open Platform account and a Feishu OAuth app configured with the required permissions
- A Cloudflare Workers account (for production deployment) or local development setup as described
Install steps:
-
Clone the repository git clone <repository-url> cd open-feishu-mcp-server
-
Install dependencies npm install
-
Configure environment Create an environment file or set environment variables: FEISHU_APP_ID=your_feishu_app_id FEISHU_APP_SECRET=your_feishu_app_secret COOKIE_ENCRYPTION_KEY=any_random_string_here
-
Run in development mode (local) npm run dev
The server will run at http://localhost:8788
-
Deploy production (Cloudflare Workers)
- Ensure wrangler is installed and authenticated
- Set required secrets (FEISHU_APP_ID, FEISHU_APP_SECRET, COOKIE_ENCRYPTION_KEY)
- Configure wrangler.toml with your KV namespaces as instructed in the docs
- Deploy: npm run deploy
-
After deployment, note the subdomain assigned by Wrangler and configure the Feishu OAuth redirect URL accordingly.
Additional notes
Tips and caveats:
- Ensure Feishu app permissions include: 获取用户 ID, 获取用户任务信息, 获取用户授权凭证, 获取用户基本信息, and the appropriate redirect URI for your environment.
- For local development, add the redirect URI http://localhost:8788/callback in Feishu app security settings.
- The server uses Feishu OAuth to authenticate users; ensure the OAuth flow is reachable from your clients' environments.
- When testing with MCP Inspector, use the inspector URL patterns provided in the docs for production or local environments.
- If you switch from local to production, update redirect URLs and secrets accordingly and re-deploy.
Related MCP Servers
supermemory
Your memories are in ChatGPT... But nowhere else. Universal Memory MCP makes your memories available to every single LLM. No logins or paywall. One command to set it up.
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
Feishu
为 Cursor、Windsurf、Cline 和其他 AI 驱动的编码工具提供访问、编辑和结构化处理飞书文档的能力,基于 Model Context Protocol 服务器实现。
Security-Detections
MCP to help Defenders Detection Engineer Harder and Smarter
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management