Read-only MCP server that lets AI agents search and read your Ed Discussion (edstem.org) courses
pip install ed-discussion-mcp==0.1.2 Copy PIP instructions
An MCP server that lets AI agents (Claude Code, Claude Desktop, Cursor, VS Code, Codex and others) search and read your Ed Discussion courses. You can then ask things like:
Read-only and local. The server runs on your own machine, signs in with your own Ed API token, and only reads from Ed: it never posts, edits or reacts. Your token is sent only to Ed.
Keep in mind that the agent sees whatever your Ed account can see, including private threads. Thread content it reads goes to the AI model your client uses, just as if you had pasted it into the chat.
This project uses Ed's unofficial API, so an Ed update could break it. It is not affiliated with Ed.
Every result includes the author's role (student or staff), timestamps, whether the post was edited, and a link to the thread.
The server runs with uv's uvx, which downloads ed-discussion-mcp from PyPI and runs it in an isolated environment; there is nothing else to install.
# macOS / Linux curl -LsSf https://astral.sh/uv/install.sh | sh # Windows (PowerShell) powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" 2. Create an Ed API token Go to edstem.org/us/settings/api-tokens (use your own region in place of us), create a token, and copy it.
Most MCP clients accept this standard config. Put your token in place of your_token:
{ "mcpServers": { "ed-discussion": { "command": "uvx", "args": ["ed-discussion-mcp"], "env": { "ED_API_TOKEN": "your_token" } } } } Your token goes in your client's own config file on your machine. Don't put it in a file you commit or share.
claude mcp add ed-discussion --scope user -e ED_API_TOKEN=your_token -- \ uvx ed-discussion-mcp Claude Desktop Open Settings → Developer → Edit Config, add the standard config to claude_desktop_config.json, and restart Claude Desktop.
Add the standard config to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), or open Settings → MCP → Add new MCP Server.
Run MCP: Open User Configuration from the Command Palette and add the server. VS Code uses servers rather than mcpServers, and can ask for your token once and store it securely instead of keeping it in the file:
{ "inputs": [ { "type": "promptString", "id": "ed-api-token", "description": "Ed API token", "password": true } ], "servers": { "ed-discussion": { "type": "stdio", "command": "uvx", "args": ["ed-discussion-mcp"], "env": { "ED_API_TOKEN": "${input:ed-api-token}" } } } } Codex codex mcp add ed-discussion --env ED_API_TOKEN=your_token -- \ uvx ed-discussion-mcp Or add it to ~/.codex/config.toml:
By default, your client launches the server and talks to it over stdio. Some clients, such as Open WebUI, instead connect to a server that is already running at a URL. For those, start the server yourself with --http:
ED_API_TOKEN=your_token ED_MCP_AUTH_TOKEN=choose-a-long-random-secret \ uvx ed-discussion-mcp --http It serves MCP over Streamable HTTP at http://127.0.0.1:8001/mcp (change it with --host and --port). Point your client at that URL and set the header Authorization: Bearer ; most clients have a bearer token or headers field for this. Requests without the token are rejected. If you leave ED_MCP_AUTH_TOKEN unset, the server makes up a token and prints it at startup, but it changes every time the server restarts.
For example, in Open WebUI go to Admin Settings → External Tools, add a server of type MCP (Streamable HTTP), enter the URL, and choose Bearer authentication with your token.
The server listens only on your own machine (127.0.0.1) unless you pass --host. If your client runs in Docker (for example Open WebUI in Docker Desktop), start the server with --host 0.0.0.0 and use http://host.docker.internal:8001/mcp as the URL. That makes the server reachable from your network too, so the token is all that stands between it and your Ed account. Use a long random one.
git clone https://github.com/GalacticQuasar/ed-discussion-agent.git cd ed-discussion-agent uv sync Put your credentials in a .env file in the repo root (it is gitignored):
ED_API_TOKEN=your_api_token uv run --env-file .env ed-discussion-mcp runs the server from your working copy. Claude Code does this automatically through .mcp.json when you open the repo (approve the server when prompted). uvx --no-cache --from . ed-discussion-mcp runs it the way users will, from a fresh build. --no-cache matters here: without it, uvx reuses its first build of the local package even after you change the code. The package lives in src/ed_discussion_mcp/: server.py defines the MCP tools, and ed_api.py handles credentials, regions and Ed's REST API.
experiments/ holds prototypes that are not part of the package. They use the package's ed_api module and read credentials from .env. uv sync installs their dependencies.
ed discussion edstem mcp model context protocol
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




