Learning-Assistant-MCP
An MCP server that helps developers understand what they’re building by explaining concepts, reviewing approaches, and guiding them toward better solutions.
Learning Assistant MCP Server 🎓
An educational MCP (Model Context Protocol) server that helps developers learn, understand code, and improve their programming skills through AI-powered tools.
Features 🚀
This MCP server provides 8 powerful learning tools:
- explainConcept - Get simple explanations of programming concepts with examples
- reviewCode - Get constructive feedback on your code with improvement suggestions
- suggestBestPractice - Learn industry best practices for any programming task
- compareApproaches - Compare different solutions and understand tradeoffs
- generateLearningPath - Get a structured roadmap to learn any technology
- debugHelper - Understand and fix errors with guided debugging help
- explainThisCode - Get detailed explanations of how code works
- quizMe - Test your knowledge with auto-generated practice questions
Installation 📦
Prerequisites
- Node.js 18.0.0 or higher
- Cursor IDE or any MCP-compatible client
Setup
- Clone this repository:
git clone https://github.com/YOUR_USERNAME/learning-assistant-mcp.git
cd learning-assistant-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
- Configure your MCP client (e.g., Cursor IDE):
Add to your ~/.cursor/mcp.json:
{
"mcpServers": {
"learning-assistant": {
"command": "node",
"args": [
"/absolute/path/to/learning-assistant-mcp/dist/index.js"
]
}
}
}
Replace /absolute/path/to/learning-assistant-mcp with the actual path where you cloned the repository.
- Restart Cursor IDE
Usage 💡
Once installed, you can use the tools in Cursor Chat:
Example Prompts
- "Explain what closures are in JavaScript for a beginner"
- "Review this code and suggest improvements"
- "What are the best practices for error handling in React?"
- "Compare REST API vs GraphQL"
- "Create a learning path to master TypeScript"
- "Help me debug this error: Cannot read property 'map' of undefined"
- "Explain what this regex pattern does: /^[a-z]+$/i"
- "Quiz me on JavaScript async/await with 5 questions"
Development 🛠️
# Run in development mode
npm run dev
# Build TypeScript
npm run build
# Run the built server
npm start
Project Structure 📁
learning-assistant-mcp/
├── src/
│ └── index.ts # Main server implementation
├── dist/ # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
└── README.md
Tools Reference 📚
explainConcept
Explains programming concepts in beginner-friendly terms.
Parameters:
concept(string): The concept to explainlevel(optional): "beginner" | "intermediate" | "advanced"language(optional): Programming language context
reviewCode
Reviews code and provides constructive feedback.
Parameters:
code(string): Code to reviewlanguage(string): Programming languagecontext(optional): What the code should dofocusAreas(optional): Array of focus areas
suggestBestPractice
Suggests best practices for programming tasks.
Parameters:
task(string): The task or areatechnology(optional): Specific framework/librarycurrentApproach(optional): Your current approach
compareApproaches
Compares different programming approaches.
Parameters:
problem(string): The problem to solveapproaches(array): List of approaches to comparecriteria(optional): Comparison criteria
generateLearningPath
Creates structured learning roadmaps.
Parameters:
topic(string): What to learncurrentLevel: Your current levelgoalLevel: Target proficiencytimeCommitment(optional): Available time
debugHelper
Helps debug errors and bugs.
Parameters:
error(string): Error message or bug descriptioncode(optional): Relevant codelanguage(optional): Programming languagecontext(optional): What you were doing
explainThisCode
Provides detailed code explanations.
Parameters:
code(string): Code to explainlanguage(string): Programming languagedetailLevel(optional): "overview" | "detailed" | "line-by-line"
quizMe
Generates practice questions.
Parameters:
topic(string): Topic to quiz ondifficulty(optional): "easy" | "medium" | "hard"questionCount(optional): Number of questions (1-10)questionType(optional): Type of questions
Contributing 🤝
Contributions are welcome! Please feel free to submit a Pull Request.
License 📄
MIT License - see LICENSE file for details
Author ✨
Muhammad Yasir Khan
Support 💬
If you have questions or need help, please open an issue on GitHub.
Máy chủ liên quan
clinical-trial-eligibility
Standardized matching logic for patient eligibility against clinical trial criteria.
Sequential Thinking MCP Server
A tool for dynamic and reflective problem-solving using a structured thinking process.
Clarify Prompt MCP
An MCP server that transforms vague prompts into platform-optimized prompts for 58+ AI platforms across 7 categories — with support for registering custom platforms and providing markdown instruction files.
Google Workspace
Integrates Google Workspace services like Calendar, Drive, and Gmail with AI assistants.
Atlassian Jira
Integrates AI with Atlassian Jira to manage projects, search for issues, and view development information like commits and pull requests.
Taiga MCP Bridge
Interact with the Taiga project management platform through an MCP bridge, allowing AI tools to manage project resources.
atlassian-mcp-server
Atlassian’s Remote Model Context Protocol (MCP) Server to allow LLMs to talk to Jira, Confluence, OpsGenie, and many other Atlassian prodcuts
Handwriting OCR
Recognize and extract text from handwritten documents using the Handwriting OCR service.
P-Link.io
HTTP402 implementation - Gives agents the capacity to pay 402 links and send money to any email, request money
spring-openproject-mcp-server
MCP server to manage OpenProject work-packages realized in Java.