Skip to main content

tutor-contrib-openedxmcp

PyPI CI License: AGPL-3.0

Tutor plugin that stands up the Open edX Admin MCP for staff/superusers:

  1. Installs the openedx-mcp Django app into the LMS/CMS image (the REST facade at /api/mcp/ and /api/mcp/cms/).
  2. Runs a standalone openedxmcp container — an MCP streamable-http server that proxies to that facade, fronted by Caddy at mcp.<LMS_HOST>.

The MCP server holds no secrets: each request carries its own MCP key, forwarded to the facade as X-MCP-Key. Authorization is enforced by the facade (is_staff/is_superuser, live). No Hasura, no external stack. Ulmo.

Architecture

Claude / MCP client ──(Bearer key)──▶ openedxmcp container (MCP proxy)
                                         │  X-MCP-Key
                             ┌───────────┴───────────┐
                       LMS /api/mcp/           CMS /api/mcp/cms/
                    (people, enroll,          (course authoring,
                     analytics, certs,          modulestore)
                     reports, retire)

Install

pip install tutor-contrib-openedxmcp
tutor plugins enable openedxmcp

# The openedx-mcp Django app auto-installs into the openedx image (Dockerfile
# patch) — no extra step. Each plugin release pins the matching openedx-mcp
# version. To use another version/source, append to Tutor's list, e.g.
#   tutor config save --append OPENEDX_EXTRA_PIP_REQUIREMENTS=openedx-mcp==0.1.9

tutor images build openedx openedxmcp    # rebuild LMS/CMS w/ the app; build MCP server
tutor local launch                        # or: tutor k8s launch
tutor local do init                        # migrations -> MCPKey tables

Then mint a key in Django admin (Open edX Admin MCP → MCP keys) and connect a client to https://mcp.<LMS_HOST>/mcp. The key-creation banner prints ready-to- paste connect steps. Full connect/security/tool docs live in the openedx-mcp README.

Config

Key Default Meaning
OPENEDXMCP_IMAGE openedxmcp:latest MCP server image tag
OPENEDXMCP_ENDPOINT mcp.{{ LMS_HOST }} public MCP host
OPENEDXMCP_PORT 8080 server port
OPENEDXMCP_LMS_BASE_URL http://lms:8000 in-cluster LMS upstream
OPENEDXMCP_CMS_BASE_URL http://cms:8000 in-cluster CMS upstream
OPENEDXMCP_PUBLIC_URL https://{{ ENDPOINT }}/mcp shown in the Django key page (injected into LMS/CMS as OPENEDX_MCP_PUBLIC_URL)

The Django app auto-installs via a Dockerfile patch (openedx-dockerfile-post-python-requirements), pinned to the openedx-mcp version this plugin release was tested with. To use another version/source, append to Tutor's standard OPENEDX_EXTRA_PIP_REQUIREMENTS list.

What ships

  • Docker image build context (templates/openedxmcp/build/…) — the MCP proxy.
  • Patches: caddyfile (route /mcp*), docker-compose services (+ healthcheck), k8s deployment/service (+ readiness/liveness on /health), openedx-common-settings (injects OPENEDX_MCP_PUBLIC_URL), openedx-dockerfile-post-python-requirements (pip-installs the app).

The MCP server exposes an unauthenticated /health for probes.

Develop

pip install ruff build
ruff check tutoropenedxmcp
python -m build .          # CI asserts the wheel ships templates/

See CHANGELOG.md · CONTRIBUTING.md.

Metadata

Release files for tutor-contrib-openedxmcp 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tutor-contrib-openedxmcp 0.2.2
File Size Uploaded Provenance Actions
tutor_contrib_openedxmcp-0.2.2.tar.gz 26.0 kB With provenance Details for tutor_contrib_openedxmcp-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tutor-contrib-openedxmcp 0.2.2
File Interpreter ABI Platform Actions
tutor_contrib_openedxmcp-0.2.2-py3-none-any.whl Python 3 none any Details for tutor_contrib_openedxmcp-0.2.2-py3-none-any.whl

Total release size: 58.2 kB

Release files / tutor_contrib_openedxmcp-0.2.2.tar.gz

Download URL tutor_contrib_openedxmcp-0.2.2.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8ec5305a1ec4ea38f5a899ec9fdb5138fb0077f5a778ae5d8e5d1fa8f81704f0
BLAKE2b-256 checksum
How to use checksums
d149c20e9b351dc41b6b6bd05994c428da1074c1db7ac07bb1da91a6ef20569e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / tutor_contrib_openedxmcp-0.2.2-py3-none-any.whl

Download URL tutor_contrib_openedxmcp-0.2.2-py3-none-any.whl
Size 32.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0395a8ed6e8e2da40c6f2ae8fe5e5d05e4643c665c2596b60c8064779ca58ac4
BLAKE2b-256 checksum
How to use checksums
1bfce55da9f9d6ecd440024e2c1a4e018e16d0c2fabeadab48ef6481ecc8dc18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for tutor-contrib-openedxmcp 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tutor_contrib_openedxmcp-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page