Skip to main content
Glama

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.


Related MCP server: personal-mcp

⚙️ Operating Modes & Configuration

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

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.

Available Tools

31 tools
add_knowledge_itemB

Adiciona uma nova anotação ou artigo à base de conhecimento.

Inputs: body (required), title (required), tags.

answer_prayerA

Marca um pedido de oração como respondido e registra as notas de agradecimento/resposta.

Inputs: prayer_id (required), answer_notes (required).

create_crm_customerB

Cadastra um novo cliente ou lead no CRM.

Inputs: name (required), email, notes, phone, +2 more.

create_devotionalB

Registra uma nova reflexão devocional diária.

Inputs: reflection (required), bible_verse (required), date, verse_text, +1 more.

create_journal_entryC

Adiciona uma nova página ao diário espiritual.

Inputs: content (required), date, mood, tags, +1 more.

create_prayer_requestA

Adiciona um novo pedido de oração.

Inputs: request (required), category.

create_reminderA

Agenda um novo lembrete com canais de envio de notificação.

Inputs: message (required), reminder_time (required), notify_chat, notify_site, +2 more.

create_taskB

Cria uma nova tarefa dentro de uma lista específica.

Inputs: content (required), list_id (required), due_at.

create_task_listB

Cria uma nova lista/pasta de tarefas no organizador.

Inputs: name (required).

create_transactionA

Registra um novo ganho (income), gasto (expense) ou transferência de valor, atualizando o saldo da conta associada.

Inputs: type (required), amount (required), account_id (required), description (required), +3 more.

delete_reminderB

Exclui um lembrete agendado.

Inputs: reminder_id (required).

delete_taskA

Exclui permanentemente uma tarefa.

Inputs: task_id (required).

get_finance_summaryA

Retorna o saldo total de todas as contas ativas e o totalizador de despesas/receitas.

Inputs: no named parameters.

get_health_logA

Busca o histórico de saúde completo para uma data (calorias, água, exercícios, sono, peso, humor, notas e refeições).

Inputs: date.

list_crm_customersA

Lista clientes e leads cadastrados no CRM do Lelly.

Inputs: status.

list_devotionalsB

Lista as reflexões diárias e devocionais registradas.

Inputs: limit.

list_finance_accountsA

Lista as contas financeiras cadastradas (Ex: banco, carteira, poupança) com seus saldos.

Inputs: no named parameters.

list_finance_categoriesB

Lista as categorias de receitas e despesas do organizador financeiro.

Inputs: type.

list_prayersB

Lista os pedidos de oração ativos ou respondidos.

Inputs: status.

list_remindersA

Lista os lembretes pendentes ou enviados.

Inputs: status.

list_spiritual_journalC

Lista as anotações do diário espiritual pessoal.

Inputs: limit.

list_tasksA

Lista as tarefas de uma lista específica ou todas as tarefas do usuário.

Inputs: list_id.

list_tasks_listsA

Lista todas as pastas/listas de tarefas no organizador de produtividade do Lelly.

Inputs: no named parameters.

list_transactionsB

Lista as transações financeiras recentes (gastos, ganhos e transferências).

Inputs: limit, account_id.

log_caloriesB

Registra ou adiciona calorias (kcal) consumidas em uma determinada data.

Inputs: kcal (required), date.

log_exerciseC

Registra uma atividade física realizada.

Inputs: exercise_type (required), duration_minutes (required), date, time, +3 more.

log_mealB

Registra uma refeição consumida no diário de saúde.

Inputs: meal_type (required), description (required), date, time, +1 more.

log_waterB

Registra ou adiciona água (ml) consumida em uma determinada data.

Inputs: ml (required), date.

search_knowledgeB

Pesquisa na base de conhecimento ou anotações pessoais do Lelly.

Inputs: query (required).

toggle_taskA

Marca uma tarefa como concluída ou reabre uma concluída.

Inputs: task_id (required).

update_health_logB

Atualiza ou define métricas gerais de saúde de uma vez (como horas de sono, peso, humor e notas).

Inputs: date, mood, notes, weight_kg, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 31 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action across clear domains (tasks, reminders, health, CRM, knowledge, finance, spiritual). Even within similar categories like health logs, the specific metric (water, calories, meal, exercise) is unambiguous. The only potential overlap is between spiritual journal and devotional entries, but descriptions clearly differentiate them.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern, using the same verb prefixes (list_, create_, get_, update_, delete_, log_, toggle_, search_, add_, answer_). Minor quirks like 'list_tasks_lists' are readable and do not break the overarching convention.

    Tool Count2/5

    The server exposes 31 tools, which exceeds the recommended range for a cohesive set. While it covers multiple domains, the sheer number makes the surface feel heavy and harder to navigate, especially with repeated list/create patterns across many resources.

    Completeness2/5

    Many resources lack essential CRUD operations. For example, tasks have no edit/update, reminders have no toggle/update, CRM has no update or delete, and finance transactions cannot be modified or removed. These gaps will cause agent failures when attempting normal lifecycle management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers