Model Context Protocol (MCP) Server + Feishu OAuth
@ztxtxwd
关于 Model Context Protocol (MCP) Server + Feishu OAuth
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"feishu": {
"command": "npx",
"arguments": "-y mcp-remote http://localhost:8788/sse"
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Model Context Protocol (MCP) Server + Feishu OAuth?
This is an MCP server that supports remote connections, with Feishu OAuth built‑in for authentication. It is derived from Cloudflare’s remote MCP GitHub OAuth demo and replaces GitHub OAuth with Feishu OAuth, integrating tools from the official Feishu/Lark OpenAPI MCP library. It is intended for developers who want to deploy a remote MCP server authenticated via Feishu account.
How to use Model Context Protocol (MCP) Server + Feishu OAuth?
Clone the repository, install dependencies (npm install), create a Feishu application on the Feishu Open Platform, set secrets via Wrangler (FEISHU_APP_ID, FEISHU_APP_SECRET, COOKIE_ENCRYPTION_KEY), create a KV namespace, then deploy with wrangler deploy. Users connect via an MCP client (e.g., Inspector, Claude Desktop, Cursor) using the SSE endpoint https://mcp-feishu-oauth.<your-subdomain>.workers.dev/sse and authenticate with their Feishu account.
Key features of Model Context Protocol (MCP) Server + Feishu OAuth
- Remote MCP server with built‑in Feishu OAuth authentication.
- Deployable to Cloudflare Workers (Cloudflare Workers, KV, Wrangler).
- Includes math (“add”) and Feishu user info tools.
- Generate image tool restricted to configurable Feishu user IDs.
- Integrates Feishu/Lark MCP tools: documents, messages, tasks, OCR, dictionary, helpdesk.
- Uses User Access Tokens for secure Feishu API access.
- Supports multiple MCP clients: Inspector, Claude Desktop, Cursor, Windsurf.
Use cases of Model Context Protocol (MCP) Server + Feishu OAuth
- Provide an MCP server that only Feishu‑authenticated users can access.
- Enable AI assistants (e.g., Claude Desktop) to perform Feishu operations like searching documents or sending messages.
- Restrict sensitive tools to specific Feishu users for fine‑grained access control.
- Serve as a reference for integrating other OAuth providers with MCP on Cloudflare Workers.
FAQ from Model Context Protocol (MCP) Server + Feishu OAuth
What runtime or dependencies are required?
It runs on Cloudflare Workers and requires Node.js (for local development), Wrangler CLI, and a Cloudflare account with Workers Paid plan (for KV). Dependencies include workers-oauth-provider, durable-mcp, and mcp-remote libraries.
How does authentication work?
The server acts as an OAuth server to MCP clients and as an OAuth client to Feishu. Users sign in with their Feishu account; the server obtains a User Access Token from Feishu and uses it for tool invocations that call Feishu APIs.
Can I restrict which tools users can access?
Yes. Basic tools (“add”, “userInfoFeishu”) are available to all authenticated Feishu users. The “generateImage” tool is restricted to a configurable set of Feishu user IDs defined in ALLOWED_USER_IDS. You can extend this pattern for other tools.
What transports and authentication methods are supported?
The server uses Server‑Sent Events (SSE) for transport. Authentication is OAuth 2.1 with Feishu as the identity provider. MCP clients connect to the /sse endpoint and are redirected through the Feishu OAuth flow.
Where does authentication data live?
Tokens and authentication state are stored in a Cloudflare Workers KV namespace named OAUTH_KV. The server uses Cloudflare Durable Objects for persistent state management across requests.
沟通协作 分类下的更多 MCP 服务器
MCP Communicator (Telegram)
qpd-vAn MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.
Telegram MCP Server
chigwellTelegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings.
Gmail
shinzo-labsMCP Implementation for Gmail Services
Discord Mcp
SaseQA MCP server for the Discord integration. Enable your AI assistants to seamlessly interact with Discord. Enhance your Discord experience with powerful automation capabilities.
WhatsApp MCP Server
lharriesWhatsApp MCP server
评论