DAMI Robot MCP Server
Connects to Moodle API to enable a voice robot to query student information such as attendance, homework, and scores, using read-only tools.
README
DAMI Robot MCP Server
MCP stdio server cho Xiaozhi/imcp.pro để kết nối robot với Moodle API local_damirobot_api.
Luồng:
Xiaozhi / imcp.pro
→ damirobot-mcp-server
→ Moodle API /local/damirobot_api/api/tool.php
→ reply_text ngắn
→ Xiaozhi đọc bằng giọng nói
Yêu cầu
- Node.js 18+
- Moodle đã cài
local_damirobot_apibản v1.0.8 trở lên - API token của
local_damirobot_api
Biến môi trường
Không đưa token vào GitHub. Khi chạy local, copy .env.example thành .env. Khi chạy trên imcp.pro, nhập trong Environment Variables / Secrets.
MOODLE_BASE_URL=https://elearning.anhngumsmy.com
MOODLE_API_TOKEN=PASTE_MOODLE_API_TOKEN_HERE
MOODLE_TOOL_ENDPOINT=/local/damirobot_api/api/tool.php
DEFAULT_COURSEID=4
DEFAULT_USERID=
DEFAULT_GROUPID=
VOICE=1
REQUEST_TIMEOUT_MS=15000
LOG_LEVEL=info
Test local trên Windows
Mở CMD trong thư mục này:
npm install
npm start
Server sẽ chạy qua STDIO, nên bình thường sẽ không hiện giao diện chat. Để test dễ hơn, dùng mock tester trước. Server này chủ yếu để imcp/Xiaozhi gọi.
Kiểm tra cú pháp:
npm run check
Cấu hình trên imcp.pro
Cách A: From Git Repository
- Upload toàn bộ thư mục này lên GitHub, ví dụ:
https://github.com/yourname/damirobot-mcp-server
- Trong imcp.pro → Add MCP Server → From Git Repository:
Git Repository URL: https://github.com/yourname/damirobot-mcp-server
Category: Other hoặc Education nếu có
Add to public: không tick
- Sau khi tạo, nếu có mục Environment Variables, thêm:
MOODLE_BASE_URL=https://elearning.anhngumsmy.com
MOODLE_API_TOKEN=TOKEN_THẬT_CỦA_BẠN
DEFAULT_COURSEID=4
VOICE=1
Cách B: Manual STDIO + npx
Nếu imcp.pro cho cấu hình thủ công:
Mode: STDIO
Command: npx
Arguments:
-y
github:yourname/damirobot-mcp-server
Environment Variables như trên.
Tool có sẵn
test_connectionfind_studentget_student_summaryget_student_attendanceget_missing_homeworkget_student_suspend_statusget_student_dami_statusget_student_latest_scoresget_student_goal_statusget_course_risk_students
Ghi chú an toàn
- Server này chỉ gọi API read-only của Moodle.
- Không chứa token trong code.
- Không sửa/xóa/đình chỉ/check-in/feed DAMI.
- Token phải đặt trong Environment Variables.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.