Udemy MCP Server

March 31, 2025 ยท View on GitHub

A Model Context Protocol (MCP) server implemented in Node.js for the Udemy Instructor API.

Features

  • Retrieve list of courses
  • Retrieve course questions
  • Retrieve course reviews

Note: An access token for the Udemy Instructor API is required to use this server.

API

Tools

  • get-taught-courses

    • Get a list of courses taught by the instructor
    • Input:
      • page (number, optional): Page number (default: 1)
      • page_size (number, optional): Number of courses per page (default: 100)
    • Returns course title, ID, URL, paid/free status, and instructor information
  • get-course-questions

    • Get a list of questions for a course
    • Input:
      • course_id (string): Course ID
      • page (number, optional): Page number (default: 1)
      • page_size (number, optional): Number of questions per page (default: 100)
    • Returns question title, content, creation date, number of replies, and other details
  • get-course-reviews

    • Get a list of reviews for courses
    • Input:
      • status (string, optional): Specify "commented" to get only reviews with comments
      • page (number, optional): Page number (default: 1)
      • page_size (number, optional): Number of reviews per page (default: 100)
    • Returns review rating, content, author, creation date, and other details

Usage

Environment Variables

Add the following environment variable to your .env file:

UDEMY_API_TOKEN=your_api_token_here

MCP Server Registration

Add the following configuration to your mcp.json:

{
  "mcpServers": {
    "udemy-instructor-mcp": {
      "command": "npx",
      "args": ["-y", "udemy-instructor-mcp"],
      "description": "Udemy MCP Server for instructor API",
      "env": {
        "UDEMY_API_TOKEN": "your_api_token_here"
      }
    }
  }
}

Build and Install

# Create a .env file (replace the access token with your own)
cp .env.example .env
# Build
npm run build
# Link
npm link
# Test execution
npx udemy-instructor-mcp

License

This MCP server is provided under the MIT License. For more details, please refer to the LICENSE file in the project repository.