Alaiy-Mcp-Server

Akashkittu/Alaiy-Mcp-Server

3.2

If you are the rightful owner of Alaiy-Mcp-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Claude AI Voice Assistant – Alaiy MCP Server is a full-stack voice assistant project that integrates Claude AI with ElevenLabs voice synthesis, supporting both WhatsApp and Telegram platforms.

Tools
2
Resources
0
Prompts
0

šŸŽ¤ Claude AI Voice Assistant – Alaiy MCP Server

A full-stack voice assistant project that connects Claude AI with ElevenLabs voice synthesis, and supports both WhatsApp and Telegram integrations.

This project was built for the Alaiy Computer Scientist Skill Test, simulating a multi-platform, voice-based conversational experience powered by Claude and ElevenLabs.


šŸš€ Features

  • šŸ¤– Claude MCP Assistant Integration
  • šŸ”Š ElevenLabs Text-to-Speech (TTS) for realistic voice generation
  • šŸ’¬ WhatsApp Messaging using Twilio Webhook
  • šŸ“² Telegram Bot Integration
  • 🧠 Chat history memory (platform-aware)
  • 🌐 Web-based UI with theme toggle and voice playback

🧩 Tech Stack

  • Backend: Node.js + Express
  • Frontend: HTML/CSS/JS (Vanilla)
  • APIs: Claude (MCP), ElevenLabs, Twilio WhatsApp, Telegram Bot API

šŸ“ Folder Structure

Alaiy-Mcp-Server/
ā”œā”€ā”€ server.js
ā”œā”€ā”€ .env.example
ā”œā”€ā”€ public/
│   └── index.html
ā”œā”€ā”€ elevenlabs/
│   ā”œā”€ā”€ voice.js
│   ā”œā”€ā”€ claude.js
│   ā”œā”€ā”€ twilio.js
│   └── telegram.js
ā”œā”€ā”€ uploads/          (auto-generated audio files)
ā”œā”€ā”€ .gitignore
└── package.json

āš™ļø Setup Instructions (Run Locally)

1. Clone the Repo

git clone https://github.com/Akashkittu/Alaiy-Mcp-Server.git
cd Alaiy-Mcp-Server

2. Install Dependencies

npm install

3. Create .env File

Create a .env file in the root directory and fill it like this:

PORT=3000

# Claude MCP
MCP_API_KEY=your_claude_api_key
MCP_ASSISTANT_ID=your_claude_assistant_id

# ElevenLabs
ELEVENLABS_API_KEY=your_elevenlabs_api_key
VOICE_ID=your_elevenlabs_voice_id

# Twilio WhatsApp
TWILIO_ACCOUNT_SID=your_twilio_sid
TWILIO_AUTH_TOKEN=your_twilio_auth_token
TWILIO_PHONE_NUMBER=+your_twilio_number

# Telegram
TELEGRAM_BOT_TOKEN=your_telegram_bot_token

āœ… You can copy .env.example and rename it to .env


4. Start the Server

node server.js

Then visit:
🌐 http://localhost:3000/


šŸ“² How to Use WhatsApp Integration (via Twilio + LocalTunnel)

To enable Twilio to access your local server, follow these steps:

Step 1: Start the server

node server.js

Step 2: Open a new terminal and run LocalTunnel

npx localtunnel --port 3000

This will give you a URL like:

https://bold-mango-lion.loca.lt

Step 3: Update the Webhook in Twilio Console

https://your-localtunnel-url/whatsapp

Example:

https://bold-mango-lion.loca.lt/whatsapp

Step 4: Update twilio.js if you're pushing from server

If you're sending messages from the backend using twilio.js, update the url with the new localtunnel link inside the sendVoiceMessage() function.