Learning Assistant MCP Server

Learning Assistant MCP Server

Provides educational tools for developers to learn programming concepts, review code, get best practices, compare approaches, generate learning paths, debug, explain code, and quiz themselves.

Category
Visit Server

README

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:

  1. explainConcept - Get simple explanations of programming concepts with examples
  2. reviewCode - Get constructive feedback on your code with improvement suggestions
  3. suggestBestPractice - Learn industry best practices for any programming task
  4. compareApproaches - Compare different solutions and understand tradeoffs
  5. generateLearningPath - Get a structured roadmap to learn any technology
  6. debugHelper - Understand and fix errors with guided debugging help
  7. explainThisCode - Get detailed explanations of how code works
  8. 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

  1. Clone this repository:
git clone https://github.com/YOUR_USERNAME/learning-assistant-mcp.git
cd learning-assistant-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. 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.

  1. 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 explain
  • level (optional): "beginner" | "intermediate" | "advanced"
  • language (optional): Programming language context

reviewCode

Reviews code and provides constructive feedback.

Parameters:

  • code (string): Code to review
  • language (string): Programming language
  • context (optional): What the code should do
  • focusAreas (optional): Array of focus areas

suggestBestPractice

Suggests best practices for programming tasks.

Parameters:

  • task (string): The task or area
  • technology (optional): Specific framework/library
  • currentApproach (optional): Your current approach

compareApproaches

Compares different programming approaches.

Parameters:

  • problem (string): The problem to solve
  • approaches (array): List of approaches to compare
  • criteria (optional): Comparison criteria

generateLearningPath

Creates structured learning roadmaps.

Parameters:

  • topic (string): What to learn
  • currentLevel: Your current level
  • goalLevel: Target proficiency
  • timeCommitment (optional): Available time

debugHelper

Helps debug errors and bugs.

Parameters:

  • error (string): Error message or bug description
  • code (optional): Relevant code
  • language (optional): Programming language
  • context (optional): What you were doing

explainThisCode

Provides detailed code explanations.

Parameters:

  • code (string): Code to explain
  • language (string): Programming language
  • detailLevel (optional): "overview" | "detailed" | "line-by-line"

quizMe

Generates practice questions.

Parameters:

  • topic (string): Topic to quiz on
  • difficulty (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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured