learn-mcp

softchris/learn-mcp

3.3

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

MCP-Learn is a Model Context Protocol server designed to enhance search capabilities for Microsoft Learn.

Tools
3
Resources
0
Prompts
0

🚀 MCP-Learn: Model Context Protocol Server

Welcome to MCP-Learn!
Your friendly neighborhood Model Context Protocol (MCP) server 🦸‍♂️—making searches for Learn agentic

✨ Features

  • Fast & Lightweight: Blazing fast context handling.
  • 🔒 Secure: Built-in authentication and authorization.
  • 🔄 Flexible Protocols: Supports multiple context protocols.
  • 🧩 Extensible: Easy to add your own plugins.
  • 📊 Metrics: Real-time stats and monitoring.
  • 🛠️ Developer Friendly: Clean API and great docs.

📦 Install

You're recommended to create a virtual environment for this project.

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Then, install the required packages:

git clone https://github.com/your-org/mcp-learn.git
cd mcp-learn
pip install requests "mcp[cli]"

🏃 Run

Start server with:

cd src
python server.py # should start a server on http://localhost:8000

Start client with:

python client.py

Tools

  • learn_filter, returns the filters available for Microsoft Learn.
  • free_text, takes a parameters query and returns a list of search results from Microsoft Learn.
  • topic_search, takes a parameter topic and category and returns a list of search results from Microsoft Learn. For example topic "Azure" and category "products".

Use with Visual Studio Code

Use in Vs Code by adding an entry to .vscode/mcp.json and its "servers" section like so:

{
  "servers": [
    {
      "type": "sse",
      "url": "http://localhost:8000/sse"
    }
  ]
}

In Agent mode, type a prompt like so:

Do a free text search for JavaScript, use a tool

Demo

License

This project is licensed under the MIT License. See the file for details.

🤝 Contributing

Pull requests welcome! For major changes, please open an issue first.

Happy hacking! 🎉