Lelly MCP Server

Lelly MCP Server

Connects Lelly.chat workspace with AI agents, offering tools for tasks, reminders, health tracking, CRM, knowledge base, finance, and spiritual journaling via MCP.

Category
访问服务器

README

Lelly MCP Server 🚀

Lelly MCP Server is the official implementation of the Model Context Protocol (MCP) built to connect the Lelly.chat workspace with AI agents and coding tools (such as Claude Code, Claude Desktop, Cursor, and more).

This integration empowers your AI assistants to interact directly with your tasks, scheduled reminders (delivered via WhatsApp, Email, Site, or Chat), health tracking journals (water, calories, exercise, sleep), CRM pipeline, personal finance ledger, spiritual devotionals, and personalized knowledge base — bringing your organizational workspace straight to your terminal and code editor.


🛠️ Exposed Tools & Features

The MCP server exposes a rich set of database-driven tools for your AI agents:

1. Task Organizer (Tasks & Lists)

  • list_tasks_lists: Fetch all task lists/folders in your Lelly organizer.
  • list_tasks: Retrieve list items (includes task content, status, planned/completed Pomodoros, and due dates), with optional list filtering.
  • create_task_list: Create a new task list/folder.
  • create_task: Add a new task to a specific list with an optional due date.
  • toggle_task: Mark a task as completed or reopen a finished one.
  • delete_task: Permanently remove a task from a list.

2. Reminders Scheduling (Reminders)

  • list_reminders: Retrieve scheduled reminders, with optional status filtering (pending/sent).
  • create_reminder: Schedule a reminder with custom delivery channels (WhatsApp, Email, On-Site Notification, and Chatbot Alert).
  • delete_reminder: Cancel and delete a scheduled reminder.

3. Health & Wellness Tracker (Health & Wellness)

  • get_health_log: Fetch the complete health dashboard log of a day (water, sleep, calories, weight, mood, notes, meals, and exercises).
  • log_water: Record or add water intake (ml) for a specific date.
  • log_calories: Record or add calorie consumption (kcal) for a specific date.
  • log_meal: Log a meal with a description, calories, and time (breakfast, lunch, dinner, etc.).
  • log_exercise: Log physical activity with duration, intensity, calories burned, and notes.
  • update_health_log: Modify general daily metrics like sleep hours, weight, mood rating, and daily notes.

4. CRM Commercial Pipeline (Leads & Customers)

  • list_crm_customers: Fetch leads and customers registered in Lelly's CRM, with status filtering.
  • create_crm_customer: Register a new lead or customer with contact details (name, email, phone, company) and notes.

5. Knowledge Base (Knowledge Base)

  • search_knowledge: Search through articles or notes stored in your Lelly Knowledge Base.
  • add_knowledge_item: Save a new article, note, or code snippet with a title, body, and custom tags.

6. Personal Finance Ledger (Finance)

  • list_finance_accounts: List active accounts (banks, wallets, investments) with their respective balances.
  • list_finance_categories: Fetch your category list for budgeting (income, expense, transfer).
  • list_transactions: Retrieve recent transactions, optionally filtered by account.
  • create_transaction: Record a new transaction (income, expense, or transfer) and automatically adjust the associated account balances within a database transaction.
  • get_finance_summary: Get a quick financial summary including total active balance, historical incomes/expenses, and net cash flow.

7. Spiritual Journal & Devotionals (Spiritual Life)

  • list_devotionals: Fetch recent scripture reflections and devocionais log.
  • create_devotional: Log a new devotional page (bible verse, verse text, reflection, and life application).
  • list_prayers: Retrieve active, answered, or archived prayer requests.
  • create_prayer_request: Record a new prayer request with an optional category.
  • answer_prayer: Mark a prayer request as answered and record notes of thanks.
  • list_spiritual_journal: Fetch spiritual diary notes.
  • create_journal_entry: Add an entry page to your spiritual journal with emotional/spiritual mood states and tags.

⚙️ Operating Modes & Configuration

Lelly MCP Server can run in two different modes depending on your setup:

1. Cloud Mode (SaaS - Recommended)

If you are using the official hosted platform at Lelly.chat, you do not need to expose your database. The server will securely forward your tool requests to Lelly's secure public endpoint using a Developer API Key.

To enable Cloud Mode, configure the following environment variables:

LELLY_API_URL=https://lelly.chat
LELLY_API_KEY=sk_live_your_api_key_here

(You can generate your Developer API Key inside your dashboard settings on Lelly.chat).

2. Local Mode (Self-Hosted)

If you run a self-hosted instance of Lelly or prefer to connect directly to your local MySQL database, configure your local database credentials instead:

DB_HOST=localhost
DB_USER=your_mysql_user
DB_PASS=your_mysql_password
DB_NAME=your_lelly_database
USER_ID=11 # The user ID on your local Lelly database (defaults to 11)

🚀 Setup & Installation

  1. Clone the repository:

    git clone git@github.com:robincoelho/lelly-mcp-server.git
    cd lelly-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Configure Environment: Create a .env file in the root folder and configure it using either Cloud Mode or Local Mode variables as described above.


🔌 Connecting to AI Clients

1. Claude Code (CLI)

Start Claude Code and load the Lelly MCP server by providing the absolute path to index.js:

claude --mcp lelly=node,/absolute/path/to/lelly-mcp-server/index.js

(Make sure to replace /absolute/path/to/ with your project's actual local folder path).

2. Claude Desktop

Open your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the server to mcpServers using your preferred mode:

Example (Cloud Mode):

{
  "mcpServers": {
    "lelly": {
      "command": "node",
      "args": ["/absolute/path/to/lelly-mcp-server/index.js"],
      "env": {
        "LELLY_API_URL": "https://lelly.chat",
        "LELLY_API_KEY": "sk_live_your_api_key_here"
      }
    }
  }
}

Example (Local Mode):

{
  "mcpServers": {
    "lelly": {
      "command": "node",
      "args": ["/absolute/path/to/lelly-mcp-server/index.js"],
      "env": {
        "DB_HOST": "localhost",
        "DB_USER": "your_mysql_user",
        "DB_PASS": "your_mysql_password",
        "DB_NAME": "your_lelly_database",
        "USER_ID": "11"
      }
    }
  }
}

3. Cursor

  1. Go to Cursor Settings -> Features -> MCP.
  2. Click + Add New MCP Server.
  3. Fill in the configuration:
    • Name: Lelly
    • Type: stdio
    • Command: node /absolute/path/to/lelly-mcp-server/index.js
  4. Click Save. (If you run Cursor, make sure to define the environment variables in a global .env file in the lelly-mcp-server directory).

🔒 License

This project is licensed under the MIT License - see the LICENSE file for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选