Metadata-Version: 2.3
Name: edstem-mcp
Version: 0.1.0
Summary: Read-only MCP server for EdStem courses and discussion threads
Keywords: edstem,ed-discussion,mcp
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Education
Requires-Dist: httpx2
Requires-Dist: mcp[cli]>=2.3.0
Requires-Dist: pydantic-settings
Requires-Python: >=3.11
Project-URL: Homepage, https://github.com/NOK1A766/edstem_mcp
Project-URL: Issues, https://github.com/NOK1A766/edstem_mcp/issues
Description-Content-Type: text/markdown

# EdStem MCP

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

Read Ed Discussion courses and threads from your agent that supports local `stdio` MCP servers.

## Install a PyPI release

With `uv` installed, run the install command for your operating system once.

- Windows runs `uv tool install --with tzdata edstem-mcp` to include the Sydney time-zone data.
- macOS runs `uv tool install edstem-mcp`.

Then run `edstem-mcp setup --base-url https://edstem.org/api` and enter your Ed API key at the hidden prompt. Give your agent the launch settings that setup displays.

## Get started

You’ll need `uv` and a personal Ed API key. The same setup command works on Windows and macOS.

### Option 1. Ask your agent to download it

Send this to an 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.
```

### Option 2. Download it from your terminal

With Git installed, run these commands in PowerShell on Windows or Terminal on macOS:

```sh
git clone https://github.com/NOK1A766/edstem_mcp.git
cd edstem_mcp
```

### Run setup

From the cloned repository, run one command:

```sh
uv run edstem-mcp setup --base-url https://edstem.org/api
```

Enter your Ed API key at the hidden prompt. Setup verifies it, saves it in Windows Credential Manager or macOS Keychain, and displays the launch settings for your agent.

If your agent asks for the launch settings, share the line that setup displays. Keep the API key in the terminal. Your agent uses those settings to register EdStem in its client, so you can complete setup without editing a configuration file.

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

If your institution uses a different Ed API endpoint, pass that URL with `--base-url`. 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 [setup](#run-setup).

   ![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)
