Udemy MCP Server
Allows interaction with Udemy, providing tools for searching courses with filters, viewing course details, curricula, reviews, and categories, as well as accessing the user's profile and enrolled courses.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Udemy MCP ServerSearch Udemy for beginner Python courses under $20 with good reviews"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š Udemy MCP Server (Python)
A Model Context Protocol (MCP) server that connects AI assistants ā such as Claude Desktop, Antigravity, Cursor, and others ā to the Udemy platform.
With your regular Udemy account you get access to both public features (searching courses, viewing curricula, reading reviews) and private features (your enrolled courses and profile info).
⨠Features
š Search courses ā by keyword, category, price, level, language, and more
š View course details ā descriptions, learning goals, prerequisites, ratings
š Browse curricula ā lecture outlines, durations, and free preview flags
ā Read reviews ā student ratings and written feedback
š·ļø List categories ā discover all top-level Udemy categories
š¤ View your profile ā display name, title, and avatar
š¦ List enrolled courses ā see everything you're currently learning
Related MCP server: Coursera MCP
š Project Structure
UdemyMcpPython/
āāā main.py # Entry point ā starts the MCP server
āāā requirements.txt # Python dependencies
āāā .env.example # Template for environment variables
āāā .gitignore
āāā README.md
āāā src/
āāā __init__.py # Package marker
āāā server.py # MCP tool definitions (7 tools)
āāā client.py # Async Udemy API client (httpx)š Getting Started
Prerequisites
Python 3.10+
A Udemy account (free or paid)
1. Clone the repository
git clone https://github.com/<your-username>/UdemyMcpPython.git
cd UdemyMcpPython2. Create a virtual environment & install dependencies
python -m venv .venv
source .venv/bin/activate # macOS / Linux
# .venv\Scripts\activate # Windows
pip install -r requirements.txt3. Configure environment variables
cp .env.example .envOpen .env and fill in your credentials (see Authentication below).
4. Run the server
python main.pyš Authentication
The server supports two authentication methods. You only need to set up one.
Method 1: Access Token (ā Recommended)
Use the session cookie from your regular Udemy login ā gives access to all tools including private ones.
Log into udemy.com in your browser.
Open Developer Tools (
F12orCmd + Option + Ion Mac /Ctrl + Shift + Ion Windows).Navigate to Application ā Cookies ā
https://www.udemy.com(in Firefox: Storage ā Cookies).Find the cookie named
access_tokenand copy its value.Paste it into your
.envfile:
UDEMY_ACCESS_TOKEN=your_access_token_hereMethod 2: API Client Credentials
If you have Udemy Developer / Affiliate API keys:
Go to Udemy API Clients.
Copy your Client ID and Client Secret.
Add them to
.env:
UDEMY_CLIENT_ID=your_client_id
UDEMY_CLIENT_SECRET=your_client_secretAPI Client credentials provide access to public endpoints only (course search, details, curriculum, reviews, categories). Private endpoints (profile, enrolled courses) require Method 1.
š ļø Available MCP Tools
Tool | Description | Auth Required |
| Fetch profile details of the logged-in user | ā Access Token |
| List courses you are enrolled in (with completion %) | ā Access Token |
| Search courses with rich filters (category, price, rating, level, language, ordering) | ā |
| Get course overview, prerequisites, learning goals, instructors, and subscriber count | ā |
| View lecture outline, content durations, and free preview availability | ā |
| Read student ratings and review comments (filterable by star rating) | ā |
| List all top-level course categories on Udemy | ā |
āļø MCP Client Configuration
Add the following to your MCP client's configuration file (mcp_config.json, claude_desktop_config.json, etc.):
{
"mcpServers": {
"udemy": {
"command": "/absolute/path/to/UdemyMcpPython/.venv/bin/python",
"args": ["/absolute/path/to/UdemyMcpPython/main.py"],
"env": {
"UDEMY_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN_HERE"
}
}
}
}Replace/absolute/path/to/UdemyMcpPython with the actual path where you cloned the project. On Windows, use the .venv\Scripts\python.exe path instead.
š§° Tech Stack
Component | Technology |
Language | Python 3.10+ |
MCP Framework |
|
HTTP Client |
|
Config |
|
Validation |
|
š License
This project is open-source. Feel free to use and modify it for your own purposes.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Connect your Moodle to AI assistants: courses, content, grading and reports from the chat.
Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.
Create, edit, translate, and export SCORM eLearning modules from a connected AI assistant.
Search companies, enrich contacts, and reveal emails and phones from your AI agent.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI systems to interact with Canvas Learning Management System data, allowing users to access courses, assignments, quizzes, planner items, files, and syllabi through natural language queries.227MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to programmatically interact with Coursera, including enrolling in courses, completing lectures, solving quizzes, submitting assignments, earning certificates, and pushing them to LinkedIn.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to seamlessly interact with the Teachable API, managing courses, users, enrollments, progress tracking, and more.14MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to read your Moodle courses, list materials, quizzes, and search content to plan exam preparation through natural language.1
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/uzairasif98/UdemyMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server