About MCP-server
MCP-server is a simple MCP server for Moodle users to check course and activity information. It can be used with OpenAI models or a local Ollama LLM.
Key features
- 01View assignment due dates
- 02Check unread Moodle messages
- 03List incomplete quizzes
- 04View enrolled courses
Use cases
- 01Check upcoming assignment deadlines
- 02Find unread Moodle messages
- 03Review quizzes still to complete
MCP support
The MCP server provides Moodle-related capabilities for clients. The README does not detail the MCP tool interfaces.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP-server
I made a simple MCP server which can support your Moodle manipulation. You can use LLM models which are "OpenAI" and localLLM(ollama).
this MCP server can assist following thing,
- show the due date of your assignments
- show the unread messages from your moodle
- show the uncompleted quizes
- show all courses you take
File architecture
- .env : your environment settings
- client.py : process user's query, create a answer via LLM
- client_localLLM.py : when using a local LLM(ollama)
- server.py : run tools
- requirments.txt
- README.md
How to run
firstly, please input your information in .env file.
1. $ python -m venv venv
2. $ source venv/bin/activate # macOS/Linux
$ .\venv\Scripts\activate # windows PowerShell
3. $ pip install -r requirements.txt
4. $ python client.py server.py # when using OpenAI
($ python client_localLLM.py server.py # when using ollama model)
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.