Lark MCP Server
A Model Context Protocol (MCP) server that integrates with Lark/Feishu APIs, allowing LLMs to interact with Lark services.
Features
- Query employee information using Lark's Contact API
- More features coming soon...
Prerequisites
- Node.js 16 or higher
- A Lark/Feishu application with App ID and App Secret
- Claude for Desktop or another MCP client
Installation
Copy
Usage
You can run the server in two ways:
1. Using Command Line Arguments (Recommended)
Copy
Replace <app_id>
and <app_secret>
with your Lark application credentials.
2. Using Environment Variables
Copy
Available Tools
get-user-info
Retrieves employee information using their ID.
Example usage in Claude:
Copy
Development
- Clone the repository
- Install dependencies:Copy
- Build the project:Copy
- Start the server in development mode:Copy
Configuration
The server prioritizes credentials in the following order:
- Command line arguments
- Environment variables
- Default values (if any)
Error Handling
- The server will validate credentials before starting
- API errors are properly handled and returned to the client
- Detailed error messages help with troubleshooting
License
MIT
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
This server cannot be installed
A server that enables LLMs to interact with Lark/Feishu services, currently supporting employee information queries via Lark's Contact API.