A JavaScript-based AI agent that takes user input from the terminal, processes and formats it using the Groq API through an MCP server, and sends the generated output directly to a Telegram bot.
- Terminal-based user input
- AI Agent built with JavaScript
- Groq API integration for fast AI responses
- MCP server for prompt orchestration
- Automatic message formatting
- Sends output directly to a Telegram bot
- JavaScript (Node.js)
- Groq API
- MCP Server
- Telegram Bot API
- CLI (Terminal)
AI-Automation_MCp-Server/ │ ├─ src/ │ ├─ agent.js # Main AI agent logic │ ├─ mcpClient.js # MCP server communication │ └─ telegram.js # Telegram bot integration │ ├─ .env.local ├─ .gitignore ├─ package.json └─ README.md
git clone https://github.com/guptasuraj125/AI-Automation_MCp-Server.git
cd AI-Automation_MCp-Server
npm install
.env
GROQ_API_KEY=your_groq_api_key
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
TELEGRAM_CHAT_ID=your_telegram_chat_id
for running the server
node mcp-server.js
after that for terminal input run this in different treminal
node agent.js