Skip to main content
Glama

Ed Stem MCP Server

Model Context Protocol (MCP) server for Ed Discussion platform integration.

Features

This MCP server provides Claude Code with tools to interact with Ed Stem:

  • Get user info: View your enrolled courses

  • List threads: Browse course discussions with filters (unresolved, unanswered, etc.)

  • Get thread: Read full thread with all comments

  • Post thread: Create new discussion threads

  • Edit thread: Update existing threads

  • Search threads: Find threads by keywords

  • List users: View course enrollment

Related MCP server: edstem-mcp

Installation

  1. Clone the repository:

git clone <repository-url>
cd edstem-mcp
  1. Create virtual environment and install dependencies:

python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
  1. Get your Ed API token:

  2. Create .env file:

cp .env.example .env
# Edit .env and add your token

Configuration

Add to your Claude Code MCP settings file:

Linux/Mac: ~/.claude_code/mcp_settings.json

{
  "mcpServers": {
    "edstem": {
      "command": "/home/jeremy/edstem-mcp/venv/bin/python",
      "args": ["/home/jeremy/edstem-mcp/server.py"],
      "env": {
        "ED_API_TOKEN": "your_token_here"
      }
    }
  }
}

Replace /home/jeremy with your actual home directory path, and add your actual token.

Usage Examples

Once configured, you can use natural language in Claude Code:

  • "List recent threads in my CSE 421 course"

  • "Show me unanswered questions in course 12345"

  • "Create a thread asking about the homework deadline"

  • "Search for threads about dynamic programming"

  • "Get details for thread #6789"

Available Tools

get_user_info

Get information about authenticated user and enrolled courses.

list_threads

List threads in a course with optional filtering.

  • Parameters:

    • course_id (required): Course ID

    • limit (optional): Maximum threads to return (default: 30)

    • offset (optional): Pagination offset (default: 0)

    • sort (optional): Sort order - 'new', 'top', 'trending' (default: 'new')

    • filter (optional): Filter threads - 'unresolved', 'unanswered', 'mine', 'following'

get_thread

Get detailed thread information including all comments.

  • Parameters: thread_id

post_thread

Create a new thread.

  • Parameters: course_id, title, content, category, subcategory, is_private, is_anonymous

edit_thread

Edit an existing thread.

  • Parameters: thread_id, title, content, category

search_threads

Search for threads by keyword.

  • Parameters: course_id, query, limit

list_users

List users enrolled in a course.

  • Parameters: course_id

Resources

The server exposes:

  • edstem://user - Current user information and courses

Improvements & Features

Enhanced Search (v1.1)

  • Content search: Search now looks in both thread titles AND content (not just titles)

  • Better results: More accurate matching for finding relevant discussions

Thread Filtering

  • Unresolved: Show only threads without accepted answers

  • Unanswered: Show threads with no responses yet

  • Mine: Show only threads you created

  • Following: Show threads you're following

Error Handling

  • Specific error types: Authentication errors, API errors, and validation errors are handled separately

  • Detailed messages: Clear error messages help diagnose issues

  • Graceful degradation: Errors don't crash the server

Debugging & Logging

  • Log file: All operations logged to /tmp/edstem-mcp.log

  • Structured logging: Timestamps, log levels, and detailed messages

  • Tool tracking: Every tool call is logged with its parameters

  • Error tracing: Full exception tracebacks for debugging

Standardized Output

All tools now return consistent data structures:

  • list_threads: Returns {threads: [...], count: N, limit: M, offset: O}

  • list_users: Returns {users: [...], count: N}

  • search_threads: Returns {threads: [...], count: N, query: "..."}

Security Notes

  • Treat your API token as a password - anyone with it can access your Ed account

  • Never commit .env or tokens to version control

  • The Ed API is in beta and may change without notice

License

MIT

Credits

Uses the unofficial edapi library for Ed Stem API access.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    • Thought Industries MCP server for ChatGPT, Claude and any AI agent: list learners, enroll learner in course, import and invite learners, read content actions log, set content status and add learner to waitlist in your own Thought Industries account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Thought Industries yourself; Cotlet does not store your password and you need no Thought Industries API key. About the official Thought Industries API: Thought Industries has a REST API and a GraphQL API, but no MCP server you can connect today (checked 23 Oct 2026). Both APIs need a key an admin creates under Settings > Security, and the Claude plugin lists "a Thought Industries instance with API access enabled" as a prerequisite. Setup and FAQ: https://cotlet.dev/integrations/thought-industries-api-mcp-server

    • AI-powered corporate learning platform — manage courses, users, and insights via Claude.

      https://api.timeml.ai/api/v1/mcp
    • Udemy MCP server for ChatGPT, Claude and any AI agent: create coupon, update course, send announcement and get revenue report in your own Udemy account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Udemy yourself; Cotlet does not store your password and you need no Udemy API key. About the official Udemy API: Udemy has an Instructor API that lists your courses, reads reviews, and reads and answers Q&A questions and direct messages (checked 12 Oct 2026). It has no coupons, announcements, review responses, course edits or revenue. Setup and FAQ: https://cotlet.dev/integrations/udemy-api-mcp-server

      https://cotlet.dev/mcp/v1/udemy
    • Teachable MCP server for ChatGPT, Claude and any AI agent: update lecture, create coupon, send email, reply to comment and list enrollments in your own Teachable account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Teachable yourself; Cotlet does not store your password and you need no Teachable API key. About the official Teachable API: Teachable has a public API, but only on the Growth plan and up, and it reads courses and lecture content and manages users, enrollments, pricing plans and transactions (checked 11 Oct 2026). Lesson editing, coupons, emails to students and comments are not in it. Setup and FAQ: https://cotlet.dev/integrations/teachable-api-mcp-server

    Related MCP Servers