Skip to main content
Glama
README.md
# EdStem MCP

![EdStem MCP — Read EdStem discussions in Codex](https://raw.githubusercontent.com/NOK1A766/edstem_mcp/edstem-server-foundation/assets/edstem-mcp-banner.png)

**Give your AI agent reading access to Ed Discussion.**

List active courses, pull unpinned staff threads, and rank discussions by views, replies, or likes over a local `stdio` MCP server.

<p>
  <a href="https://pypi.org/project/edstem-mcp/"><img src="https://img.shields.io/pypi/v/edstem-mcp?logo=pypi&logoColor=white&color=orange" alt="PyPI"></a>
  <a href="https://www.python.org/"><img src="https://img.shields.io/badge/Python-3.11+-3776AB?logo=python&logoColor=white" alt="Python 3.11+"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License: MIT"></a>
  <a href="https://github.com/NOK1A766/edstem_mcp/releases"><img src="https://img.shields.io/github/v/release/NOK1A766/edstem_mcp?logo=github" alt="Release"></a>
</p>



## Installation

### Easy! Ask your agent to download it

Send this to your agent that can run terminal commands and configure local MCP servers:

```text
Clone https://github.com/NOK1A766/edstem_mcp and give me the setup command to run in my terminal.
After I enter my Ed API key there, register EdStem as a local stdio MCP server in this client.
```
Or with `uv` installed, run this in PowerShell on Windows or Terminal on macOS:

```sh
uvx edstem-mcp setup --base-url https://edstem.org/api
```
and then ask your agent to run and finish the setup.

Once connected, try asking **“Which of my Ed courses are active this year?”**

If your institution uses a different Ed API endpoint, use that URL in both setup and the server environment. Rerun setup to rotate your key.

## How to create an Ed API key

If you don’t have an Ed API key yet, follow this walkthrough. Ed calls it an **API token**.

1. Sign in to Ed and click your profile icon in the top-right corner of the dashboard.

   ![Ed dashboard with the profile icon in the top-right corner](https://raw.githubusercontent.com/NOK1A766/edstem_mcp/edstem-server-foundation/assets/api-key/01-dashboard.png)

2. Select **Settings** from the profile menu.

   <img src="https://raw.githubusercontent.com/NOK1A766/edstem_mcp/edstem-server-foundation/assets/api-key/02-settings.png" alt="Profile menu with an arrow pointing to Settings" width="460">

3. Select **API Tokens** in the Settings sidebar.

   <img src="https://raw.githubusercontent.com/NOK1A766/edstem_mcp/edstem-server-foundation/assets/api-key/03-api-tokens.png" alt="Settings sidebar with an arrow pointing to API Tokens" width="435">

4. Click **Create Token**.

   ![API Tokens page with an arrow pointing to Create Token](https://raw.githubusercontent.com/NOK1A766/edstem_mcp/edstem-server-foundation/assets/api-key/04-create-token.png)

5. Click the copy icon before dismissing the confirmation. Ed shows the full token only once. Paste it into the hidden prompt when you run [installation setup](#installation).

   ![Token confirmation with the token covered and an arrow pointing to the copy icon](https://raw.githubusercontent.com/NOK1A766/edstem_mcp/edstem-server-foundation/assets/api-key/05-copy-token.png)