trackmcp
Back to directory

MCP Educational Tutor

0 stars PythonOthers Updated Jul 8, 2025

Documentation

Educational Tutor

An experimental system that transforms documentation repositories into interactive educational content using AI and the Model Context Protocol (MCP).

๐ŸŒŸ Overview

This project consists of two main components:

1. ๐Ÿ“š Course Content Agent - Generates structured learning courses from documentation repositories

2. ๐Ÿ”ง MCP Educational Server - Provides standardized access to course content via MCP protocol

๐Ÿ—๏ธ Architecture

code
Documentation Repository โ†’ Course Content Agent โ†’ Structured Courses โ†’ MCP Server โ†’ AI Tutors

The system processes documentation, creates educational content, and exposes it through standardized tools for AI tutoring applications.

๐Ÿ“‚ Project Structure

code
tutor/
โ”œโ”€โ”€ course_content_agent/    # AI-powered course generation from docs
โ”‚   โ”œโ”€โ”€ main.py             # CourseBuilder orchestration
โ”‚   โ”œโ”€โ”€ modules.py          # Core processing logic
โ”‚   โ”œโ”€โ”€ models.py           # Pydantic data models
โ”‚   โ”œโ”€โ”€ signatures.py       # DSPy LLM signatures
โ”‚   โ””โ”€โ”€ about.md           # ๐Ÿ“– Detailed documentation
โ”œโ”€โ”€ mcp_server/             # MCP protocol server for course access
โ”‚   โ”œโ”€โ”€ main.py            # MCP server startup
โ”‚   โ”œโ”€โ”€ tools.py           # Course interaction tools
โ”‚   โ”œโ”€โ”€ course_management.py # Content processing
โ”‚   โ””โ”€โ”€ about.md           # ๐Ÿ“– Detailed documentation
โ”œโ”€โ”€ course_output/          # Generated course content
โ”œโ”€โ”€ nbs/                   # Jupyter notebooks for development
โ””โ”€โ”€ pyproject.toml         # Project configuration

๐Ÿš€ Quick Start

1. Install Dependencies and Create Virtual Environment

This project uses `uv` for fast Python package management.

bash
# Create a virtual environment
python -m uv venv

# Install dependencies in editable mode
.venv/bin/uv pip install -e .

2. Generate Courses from Documentation

bash
# Generate courses from a repository
.venv/bin/uv run python course_content_agent/test.py

Customize for Your Repository: Edit `course_content_agent/test.py` to change:

  • Repository URL (currently uses MCP docs)
  • Include/exclude specific folders
  • Output directory and caching settings

3. Start MCP Server

bash
# Serve generated courses via MCP protocol
.venv/bin/uv run python -m mcp_server.main

# Or customize course directory
COURSE_DIR=your_course_output .venv/bin/uv run python -m mcp_server.main

4. Test MCP Integration

bash
# Test server capabilities
.venv/bin/uv run python mcp_server/stdio_client.py

๐Ÿ“– Detailed Documentation

For comprehensive information about each component:

  • Course Content Agent: See `course_content_agent/about.md`
    • AI-powered course generation
    • DSPy signatures and multiprocessing
    • Document analysis and learning path creation
  • MCP Educational Server: See `mcp_server/about.md`
    • MCP protocol implementation
    • Course interaction tools
    • Integration with AI assistants

๐Ÿ”Œ MCP Integration with Cursor

To use the educational tutor MCP server with Cursor, create a `.cursor/mcp.json` file in your project root:

json
{
    "mcpServers": {
        "educational-tutor": {
            "command": "/path/to/tutor/project/.venv/bin/uv",
            "args": [
                "--directory",
                "/path/to/tutor/project",
                "run",
                "mcp_server/main.py"
            ],
            "env": {
                "COURSE_DIR": "/path/to/tutor/project/course_output"
            }
        }
    }
}

Setup Steps:

1. Create a virtual environment: `python -m uv venv`

2. Install dependencies: `.venv/bin/uv pip install -e .`

3. Update the `command` path and the path in `args` to your project directory.

4. Restart Cursor or reload the window.

5. Use `@educational-tutor` in Cursor chat to access course tools.

๐Ÿ”ง Development Status

Current Status: โœ… Functional MVP

  • Course generation from documentation repositories
  • MCP server for standardized content access
  • Multi-complexity course creation (beginner/intermediate/advanced)

Future Enhancements:

  • Support for diverse content sources (websites, videos)
  • Advanced search and recommendation systems
  • Integration with popular AI platforms

๐Ÿ› ๏ธ Technology Stack

  • AI Framework: DSPy for LLM orchestration
  • Content Processing: Multiprocessing for performance
  • Protocol: Model Context Protocol (MCP) for standardization
  • Models: Gemini 2.5 Flash for content generation
  • Data: Pydantic models for type safety

๐Ÿ“„ License

This project is experimental and intended for educational and research purposes.

Frequently asked questions

What is mcp-tutor?

mcp-tutor is MCP Educational Tutor

How do I install mcp-tutor?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is mcp-tutor open source?

Yes โ€” it is hosted on GitHub at https://github.com/moarshy/mcp-tutor.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP