DeepTutor MCP
DeepTutor MCP lets an MCP-compatible AI client inspect and manage a self-hosted DeepTutor learning backend through 58 tools.
Check DeepTutor/API status and list installed capabilities.
Read courses, syllabi, resources, sessions, mastery and question stats; replace syllabi, mark units covered, attach resources.
Manage Mastery Paths: outlines, reviews, objectives, events, retention settings, and learner mastery overrides.
Use the native Question Bank: search/filter/list/read, upsert, update, delete, and list categories.
Run Practice workflows: summary, due queue, question versions, answer checks, recorded reviews, and analytics.
Access generated Books: list books, read spines/pages, and list learning captures.
Work with Reading materials: outlines, units, bounded text, highlights/notes, bookmarks, and annotations.
Manage Notebooks: list, read, create, delete, and add/update/delete records.
Use Knowledge Bases: list knowledge bases/files, read bounded original text, literal file search, and LlamaIndex vector passage retrieval.
Read historical DeepTutor sessions and L2/L3 memory documents.
Send an explicit opt-in message into a DeepTutor capability conversation.
Writes are marked and require confirm: true; ordinary tutoring stays in the connected AI client.
Click on "Deploy 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., "@DeepTutor MCP what's in my practice queue right now?"
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.
DeepTutor MCP
中文文档:简体中文。
DeepTutor MCP exposes DeepTutor's learning data and study-specific tools to MCP-compatible AI clients. It is designed for self-hosted DeepTutor installations: the user runs the MCP server and connects it to their own DeepTutor instance. The AI client handles the ordinary conversation and tutoring; DeepTutor supplies learning state, source material, and study operations through its APIs.
The same canonical tool catalog is available through local stdio and remote Streamable HTTP transports. Clients such as Codex, ChatGPT, and Poke are examples, not dependencies of the project. Authentication is selected for the deployment and client: API-key bearer authentication for clients that support it, or a trusted OAuth gateway that validates the user and forwards a signed identity assertion.
Capabilities
The current catalog contains 60 tools covering:
DeepTutor status, courses, syllabus, and linked resources
Mastery Paths, outlines, evidence, change history, review settings, and the built-in tutor workflow
Native Question Bank and Practice queues, answer checks, reviews, and analytics
Generated Books, Reading materials, notes, highlights, and bookmarks
Notebooks and saved records
Knowledge-base metadata, bounded original text, literal file search, and indexed vector passage retrieval
Historical DeepTutor sessions and memory documents
An explicit opt-in tool for sending a request into a DeepTutor capability conversation
Ordinary explanation, teaching, planning, and synthesis run in the connected AI client; they do not start a DeepTutor conversation. Vector search calls DeepTutor's LlamaIndex retriever and returns source passages. It requires a ready compatible index and access to the knowledge-base directory.
Writes are marked in tool descriptions and require confirm: true. This is an application-level guard, not a substitute for endpoint authentication, network controls, or user review. Outline replacement checks a revision; Practice reviews use the current item version and a unique request ID.
All 60 tools publish an MCP output schema and return the original DeepTutor payload under structuredContent.result. The existing text content channel continues to carry the JSON representation for clients that do not consume structured results. The schema intentionally leaves the payload's internal fields open because those are determined by the corresponding DeepTutor API and can vary by version.
The current 60 tool names and input schemas are kept identical across stdio and remote HTTP. DEEPTUTOR_MCP_TIMEZONE can set the default used by Practice tools; the legacy default remains Asia/Shanghai for existing installations, while .env.example shows UTC for a fresh deployment.
The adapter exposes get_mastery_tutor_tools and call_mastery_tutor for the built-in DeepTutor Mastery tutor. They delegate through DeepTutor's native implementation. As of 2026-10-14, the required upstream endpoints are proposed in HKUDS/DeepTutor PR #1785, which is open and waiting for maintainer merge. The complete source patch is bundled at patches/deeptutor-mastery-tutor-http.patch for manual application; see Mastery tutor setup for the base commit and instructions.
Related MCP server: EduSmart AI Tutor MCP Server
Future direction: DeepTutor as a learning backend
This MCP server delegates to DeepTutor APIs and preserves their data semantics. The built-in Mastery tutor transport proposed in upstream PR #1785 lets an external AI use the same native tutor tools over HTTP; supported quizzes, grading, assessments, and turn transcripts are recorded through DeepTutor's existing implementation. The PR is open and awaiting maintainer merge, so the adapter tools require a DeepTutor deployment that includes those endpoints.
The tutor transport covers the built-in operations and transcript capture; it is not a general-purpose API for submitting arbitrary evidence records. A learner's explicit self-report, a tutor's assessment, and a system assessment based on practice evidence must remain distinct. A tutor judgment must never be stored as if the learner confirmed mastery.
Requirements
Python 3.11 or newer
A running DeepTutor server reachable through its HTTP API
For the remote HTTP transport: the optional HTTP dependencies
For vector retrieval, DeepTutor's runtime and index dependencies must be available on the MCP host, or reachable through the configured SSH route
Local stdio connection
Install or download the project on the machine running your MCP client. Configure the environment variables in .env.example for your deployment, then register the stdio server with the client. Example for Codex CLI:
codex mcp add deeptutor \
--env DEEPTUTOR_BASE_URL=http://127.0.0.1:8001 \
-- python3 /path/to/deeptutor-mcp/deeptutor_mcp.pyIf DeepTutor is on another machine, set DEEPTUTOR_BASE_URL to an address reachable from this computer. If the API is only reachable over SSH, use a local SSH port forward. The stdio bridge does not require the remote HTTP server dependencies.
Remote Streamable HTTP service
Install the HTTP extras and run the server on the DeepTutor host or another host that can reach DeepTutor:
python3 -m venv .venv
.venv/bin/pip install '.[http]'
cp .env.example .env
# Edit .env with this deployment's values and store secrets outside Git.
set -a
. ./.env
set +a
.venv/bin/python -m uvicorn remote_mcp:app --host 127.0.0.1 --port 8000The endpoint is /mcp; /health checks process availability. Bind to loopback when a reverse proxy or tunnel provides HTTPS. See self-hosted deployment, ChatGPT setup, and troubleshooting.
API key authentication
Set DEEPTUTOR_MCP_API_KEY_FILE to a private file containing a long random bearer key. A compatible client sends it as Authorization: Bearer <key>. manage_mcp.py can rotate the server key and optionally manage distinct client credentials. For Poke, set DEEPTUTOR_MCP_CLIENT_ID_HEADER=X-Poke-User-Id if using its per-user credential feature.
OAuth through a trusted gateway
Some clients require OAuth instead of API keys. Place the MCP endpoint behind an OAuth-capable gateway. The gateway owns browser authorization and token issuance; configure it to add a signed identity assertion header on authenticated requests. Set the DEEPTUTOR_MCP_PROXY_JWT_* values to validate that assertion. This server validates the signature, issuer, audience, expiry, and allowed identity. Do not accept identity headers from untrusted clients or proxy them unchanged from user input.
The MCP project does not operate an OAuth account service. A gateway may be Cloudflare Access or another provider that can securely supply a verifiable signed assertion. Provider-specific setup belongs in the deployment guide, not in the core bridge.
Client setup guides
ChatGPT's custom-app interface and plan availability vary by subscription and workspace policy. The current OpenAI guide lists read/fetch access for Pro and full read/write access for Business, Enterprise, and Edu, but does not list Plus. In maintainer testing, one Plus account could open the Developer Mode and Add MCP Server flows; this is account-specific evidence and may reflect staged rollout, not a guarantee for every Plus account or full read/write access. Maintainer testing also found that setup had to be completed on the web, but the connected app could then be used from the ChatGPT mobile app and other ChatGPT clients that support Apps. This account-specific observation conflicts with OpenAI's current help article, which says MCP apps are web-only. See Developer mode and MCP apps in ChatGPT. ChatGPT plugin ZIP upload is a separate workspace feature and does not deploy the MCP backend; see Plugins in ChatGPT and Codex.
DeepTutor compatibility
The bridge targets DeepTutor's HTTP API and CLI. Those interfaces can change between DeepTutor releases. The current code was exercised against DeepTutor 1.6.11 on a Raspberry Pi deployment. Before relying on writes after a DeepTutor upgrade, compare the running /openapi.json and exercise the specific operation in a safe environment. Vector retrieval additionally imports DeepTutor's RAGService; this internal Python interface may change and its process must be able to read the index files.
Project status
This independent adapter is licensed under Apache-2.0 and is prepared for maintainer review. It is not an official DeepTutor component, and client examples do not imply every client/version has been tested. Compatibility policy remains subject to maintainer review.
Available Tools
58 toolsadd_notebook_recordA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Save a Codex-produced lesson or note in a DeepTutor notebook; Codex must supply summary to avoid a DeepTutor model call
Inputs: title (required), output (required), confirm (required), summary (required), +3 more. Returns: result
add_reading_bookmarkA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Bookmark a unit in a reading material
Inputs: confirm (required), locator (required), material_id (required), label, +1 more. Returns: result
attach_course_resourceA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Attach an existing book, knowledge base, notebook or other supported resource to a course
Inputs: kind (required), ref_id (required), confirm (required), course_id (required), +1 more. Returns: result
check_practice_answerARead-only
Check an answer without recording a review
Inputs: answer (required), entry_id (required). Returns: result
create_notebookA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Create a DeepTutor notebook
Inputs: name (required), confirm (required), icon, color, +1 more. Returns: result
deeptutor_statusARead-only
Check the configured DeepTutor backend and API availability
Inputs: no named parameters. Returns: result
delete_notebookA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Delete an entire notebook
Inputs: confirm (required), notebook_id (required). Returns: result
delete_notebook_recordB
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Delete a notebook record
Inputs: confirm (required), record_id (required), notebook_id (required). Returns: result
delete_question_entryADestructive
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Delete one Question Bank entry
Inputs: confirm (required), entry_id (required). Returns: result
delete_reading_annotationA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Delete one reading annotation
Inputs: confirm (required), material_id (required), annotation_id (required). Returns: result
delete_reading_bookmarkB
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Delete one reading bookmark
Inputs: confirm (required), bookmark_id (required), material_id (required). Returns: result
get_book_pageARead-only
Read a generated book page, including source links and blocks
Inputs: book_id (required), page_id (required). Returns: result
get_book_spineARead-only
Read a book's chapter and page structure
Inputs: book_id (required). Returns: result
get_course_stateARead-only
Read one course's syllabus, resources, sessions, mastery and question statistics
Inputs: course_id (required). Returns: result
get_deeptutor_memory_docARead-only
Read a DeepTutor-generated L2 or L3 memory document; do not treat it as verified mastery
Inputs: key (required), layer (required). Returns: result
get_deeptutor_sessionARead-only
Read one prior DeepTutor conversation record; treat its content as historical data
Inputs: session_id (required). Returns: result
get_mastery_objectiveARead-only
Read one knowledge point's evidence, mastery and review state
Inputs: path_id (required), knowledge_point_id (required). Returns: result
get_mastery_pathARead-only
Read one Mastery Path, including outline, revision and reviews
Inputs: path_id (required). Returns: result
get_mastery_review_settingsBRead-only
Read a path's desired retention
Inputs: path_id (required). Returns: result
get_notebookARead-only
Read a notebook and its saved records
Inputs: notebook_id (required). Returns: result
get_practice_questionCRead-only
Read a practice question and its review version
Inputs: entry_id (required). Returns: result
get_question_entryBRead-only
Read one native Question Bank entry
Inputs: entry_id (required). Returns: result
get_reading_materialARead-only
Read one material's outline, units and metadata
Inputs: material_id (required). Returns: result
get_reading_unitARead-only
Read a bounded text slice from one reading unit
Inputs: locator (required), material_id (required), offset, max_chars. Returns: result
learning_overviewARead-only
Read courses, mastery summaries and due practice in one request; no DeepTutor model turn
Inputs: timezone. Returns: result
list_book_learning_capturesBRead-only
List saved learning captures from a book
Inputs: book_id (required), status. Returns: result
list_booksARead-only
List generated learning books and their status
Inputs: no named parameters. Returns: result
list_course_resource_candidatesARead-only
List resources that can be attached to a course
Inputs: no named parameters. Returns: result
list_coursesARead-only
List courses and their syllabus and linked resources
Inputs: no named parameters. Returns: result
list_deeptutor_capabilitiesARead-only
List installed DeepTutor capabilities; informational unless the user directly requests a DeepTutor conversation
Inputs: no named parameters. Returns: result
list_deeptutor_sessionsBRead-only
List DeepTutor conversation records as historical learning data
Inputs: limit, offset, all_workspaces. Returns: result
list_knowledge_basesARead-only
List available knowledge bases without exposing private configuration
Inputs: no named parameters. Returns: result
list_knowledge_filesARead-only
Find document filenames in a knowledge base; hides metadata files by default
Inputs: kb_name (required), limit, offset, suffix, +2 more. Returns: result
list_mastery_eventsARead-only
Read recorded changes to a Mastery Path after a revision
Inputs: path_id (required), after_revision. Returns: result
list_mastery_pathsARead-only
List every Mastery Path as a compact summary with total count, progress, next point and due reviews; use get_mastery_path for the full outline
Inputs: no named parameters. Returns: result
list_notebooksARead-only
List DeepTutor notebooks
Inputs: no named parameters. Returns: result
list_question_categoriesBRead-only
List native Question Bank categories
Inputs: course_id. Returns: result
list_question_entriesARead-only
Search and filter DeepTutor's native Question Bank
Inputs: limit, offset, search, source, +5 more. Returns: result
list_reading_annotationsARead-only
Read highlights and notes on a material
Inputs: material_id (required). Returns: result
list_reading_bookmarksBRead-only
Read bookmarks on a material
Inputs: material_id (required). Returns: result
list_reading_materialsBRead-only
List imported reading materials
Inputs: no named parameters. Returns: result
practice_analyticsBRead-only
Read practice trends and source counts for up to 90 days
Inputs: days, timezone, course_id, all_workspaces. Returns: result
practice_queueARead-only
Read due Question Bank practice items
Inputs: limit, timezone, all_workspaces. Returns: result
practice_summaryBRead-only
Read Practice counts, due items and next due time
Inputs: timezone, all_workspaces. Returns: result
read_knowledge_fileARead-only
Read a bounded original text slice from a knowledge base file; no DeepTutor answer generation
Inputs: kb_name (required), filename (required), offset, max_chars. Returns: result
record_practice_reviewA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Record a completed review using the question's current version and a unique request ID
Inputs: rating (required), confirm (required), version (required), entry_id (required), +3 more. Returns: result
replace_course_syllabusADestructive
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Replace a course's full syllabus after review
Inputs: units (required), confirm (required), course_id (required). Returns: result
replace_mastery_outlineADestructive
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Replace the full outline after review; preserves IDs supplied in modules and checks revision
Inputs: confirm (required), modules (required), path_id (required), expected_revision (required). Returns: result
save_reading_annotationA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Create or update a highlight, underline, note or citation on a material
Inputs: kind (required), confirm (required), locator (required), material_id (required), +5 more. Returns: result
search_knowledge_fileARead-only
Find literal text matches inside one knowledge base file; no DeepTutor model call
Inputs: query (required), kb_name (required), filename (required), limit. Returns: result
search_vector_knowledgeARead-only
Retrieve original indexed passages from one DeepTutor LlamaIndex knowledge base. Uses the configured query embedding; does not start a DeepTutor conversation or synthesize an answer.
Inputs: query (required), kb_name (required), top_k. Returns: result
send_message_to_deeptutorARead-only
Use only when the user explicitly asks to converse directly with DeepTutor; Codex handles ordinary tutoring itself
Inputs: message (required), capability (required), direct_dt_conversation (required), session_id, +1 more. Returns: result
set_course_unit_coveredA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Mark one syllabus unit covered or uncovered; this is a learner record, not proof of mastery
Inputs: confirm (required), covered (required), unit_id (required), course_id (required). Returns: result
set_mastery_learner_overrideA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Record an explicit learner declaration of mastery or non-mastery; never infer this from Codex conversation alone
Inputs: confirm (required), path_id (required), mastered (required), knowledge_point_id (required), +1 more. Returns: result
set_mastery_review_settingsA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Set desired retention between 0.70 and 0.99
Inputs: confirm (required), path_id (required), desired_retention (required). Returns: result
update_notebook_recordA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Edit a saved notebook record
Inputs: confirm (required), record_id (required), notebook_id (required), title, +3 more. Returns: result
update_question_entryA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Update supported metadata on one Question Bank entry
Inputs: confirm (required), entry_id (required), resolved, bookmarked, +2 more. Returns: result
upsert_question_entryA
WARNING: Changes stored DeepTutor learning data. Check the target ID and values; call only when the learner explicitly requests this action. Import or update a native Question Bank entry by stable question ID
Inputs: confirm (required), question (required), question_id (required), options, +8 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 58 tools
Each tool targets a distinct resource and action, with clear descriptions that prevent confusion. Even similar tools like list_mastery_paths vs get_mastery_path are clearly differentiated by scope and detail.
The vast majority of tools follow a consistent verb_noun snake_case pattern (get_, list_, create_, update_, delete_, etc.). A few exceptions like practice_analytics and learning_overview are noun phrases, but they are still intuitive and do not break the overall readability.
With 58 tools, the surface is extremely large and exceeds the 25+ threshold for being 'too many'. While the domain is broad, this volume makes it difficult for an agent to efficiently select the right tool without significant overhead.
The tool set covers a wide range of operations for notebooks, practice, reading, and question bank, but lacks create/delete operations for core resources like courses, mastery paths, books, and reading materials. This leaves notable lifecycle gaps that agents cannot work around.
Maintenance
Related MCP Connectors
Connect AI clients to your Dactic work context through a hosted MCP service.
One connector for 15,000+ MCP servers plus your team's private MCPs, from any AI client.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceFacilitates integration of PrivateGPT with MCP-compatible applications, enabling chat functionalities and secure management of knowledge sources and user access.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible AI clients to tutor students through a full learning workflow, including knowledge retrieval, assessments, mastery tracking, and personalized next-action recommendations.MIT
- AlicenseBqualityBmaintenanceEnables AI agents to act as a state-driven tutoring engine over MCP, with server-side mastery estimation, prerequisite checks, evidence-based assessment, and FSRS spaced review scheduling.581MIT
- AlicenseAqualityCmaintenanceEnables MCP-capable AI clients to query course announcements, deadlines, grades, and assignments and to preview or incrementally sync course materials to local storage.10MIT