Skip to main content
Glama

edstem-mcp

MCP server for Ed Discussion — expose Ed's full API to Claude and other MCP clients.

Setup

npm install
npm run build

Set your API token (get one at https://edstem.org/us/settings/api-tokens):

export ED_API_TOKEN=your_token
export ED_REGION=us  # optional: us (default), au, etc.

Related MCP server: Ed Discussions MCP Server

Claude Code

Add to ~/.claude.json:

{
  "mcpServers": {
    "edstem": {
      "command": "node",
      "args": ["/path/to/edstem-mcp/dist/index.js"],
      "env": {
        "ED_API_TOKEN": "your_token"
      }
    }
  }
}

Tools (24)

Tool

Description

get_user

Get authenticated user info and enrolled courses

list_threads

List threads in a course (sortable, paginated)

get_thread

Get thread by global ID with comments

get_course_thread

Get thread by course-local number (the # in the UI)

search_threads

Search threads by title, content, or category

post_thread

Create a new thread (supports markdown input)

edit_thread

Edit an existing thread

lock_thread

Lock a thread

unlock_thread

Unlock a thread

pin_thread

Pin a thread

unpin_thread

Unpin a thread

endorse_thread

Endorse a thread

unendorse_thread

Remove thread endorsement

star_thread

Star/bookmark a thread

unstar_thread

Remove star

post_comment

Post a comment or answer on a thread

reply_to_comment

Reply to an existing comment

endorse_comment

Endorse a comment

unendorse_comment

Remove comment endorsement

accept_answer

Accept a comment as the answer

list_users

List course roster (staff/admin)

list_user_activity

List a user's threads and comments

upload_file_from_url

Upload a file to Ed from a URL

format_content

Preview markdown to Ed XML conversion

search_threads filters one page of threads at a time, ordered newest first. Its limit (default 50, maximum 100) controls how many threads are fetched before filtering; offset (default 0) lets you search older pages. Increase offset by limit to continue searching. An empty search result can mean that page has no matches, even when older pages do; use list_threads at the same offset to check whether a page exists.

Resources (2)

Resource

URI

Description

User Info

edstem://user

Authenticated user details

Courses

edstem://courses

Enrolled courses list

Prompts (3)

Prompt

Description

check_assignment

Look up assignment details, requirements, and staff clarifications

unanswered_questions

List unresolved questions in a course

my_activity

Show your recent posts and comments in a course

Content Format

Thread and comment content uses Ed's XML document format. This server auto-converts markdown to Ed XML, so you can write content naturally:

# Heading
**Bold** and *italic* text with `inline code`

- Bullet list
- Items

1. Numbered
2. List

> [!info] This becomes an Ed callout

Pass raw Ed XML (starting with <document) to bypass conversion.

Testing

npm test

Rebuilds the TypeScript sources before running Node's built-in test runner (node:test). Tests cover content conversion, the API client, paginated search, and MCP capability discovery and content formatting over stdio. API tests mock HTTP requests; the stdio test uses a dummy token and makes no Ed API calls.

Available Tools

24 tools
accept_answerA

Accept a comment as the answer to a question thread

Inputs: thread_id (required), comment_id (required).

edit_threadC

Edit an existing thread. Only provided fields are updated.

Inputs: thread_id (required), title, content, type, +5 more.

endorse_commentC

Endorse a comment (staff)

Inputs: comment_id (required).

endorse_threadC

Endorse a thread (staff)

Inputs: thread_id (required).

format_contentA

Convert markdown text to Ed Discussion XML format (preview, no API call)

Inputs: markdown (required).

get_course_threadA

Get a thread by its course-local number (the # shown in the Ed UI)

Inputs: course_id (required), thread_number (required).

get_threadA

Get a thread by global ID, including all comments and answers

Inputs: thread_id (required).

get_userB

Get authenticated user info and enrolled courses

Inputs: no named parameters.

list_threadsC

List discussion threads in a course

Inputs: course_id (required), limit, offset, sort.

list_user_activityB

List a user's recent threads and comments in a course

Inputs: user_id (required), course_id (required), limit, offset, +1 more.

list_usersA

List all users enrolled in a course (requires staff/admin)

Inputs: course_id (required).

lock_threadB

Lock a thread (prevent new replies)

Inputs: thread_id (required).

pin_threadC

Pin a thread to the top

Inputs: thread_id (required).

post_commentB

Post a comment or answer on a thread. Content can be markdown.

Inputs: thread_id (required), content (required), type, is_private, +1 more.

post_threadB

Create a new discussion thread. Content can be markdown (auto-converted to Ed XML).

Inputs: course_id (required), title (required), category (required), content (required), +5 more.

reply_to_commentC

Reply to an existing comment

Inputs: comment_id (required), content (required), is_private, is_anonymous.

search_threadsB

Search threads in a course by title, content, or category

Inputs: course_id (required), query (required), category, limit.

star_threadC

Star/bookmark a thread

Inputs: thread_id (required).

unendorse_commentC

Remove endorsement from a comment

Inputs: comment_id (required).

unendorse_threadC

Remove endorsement from a thread

Inputs: thread_id (required).

unlock_threadC

Unlock a thread

Inputs: thread_id (required).

unpin_threadC

Unpin a thread

Inputs: thread_id (required).

unstar_threadC

Remove star from a thread

Inputs: thread_id (required).

upload_file_from_urlA

Upload a file to Ed from a URL, returns the static file link

Inputs: url (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 24 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific resources and actions (e.g., get_thread vs. list_threads, post_thread vs. edit_thread). However, some overlap exists between post_comment and reply_to_comment, as both involve adding comments, though the latter specifies replying to an existing comment. Tools like star_thread and unstar_thread are clearly paired opposites, reducing ambiguity.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, using snake_case uniformly. Actions are clear (e.g., get, list, post, edit, lock, unlock) and paired opposites are consistently prefixed (e.g., endorse/unendorse, pin/unpin). This predictability makes it easy for an agent to understand and select tools.

    Tool Count3/5

    With 24 tools, the count is borderline high for a discussion forum server, potentially feeling heavy. While the tools cover many operations, some might be niche (e.g., format_content, upload_file_from_url) or staff-only (e.g., endorse_comment), which could be consolidated or omitted without losing core functionality. A more streamlined set of 15-20 tools might be more appropriate.

    Completeness5/5

    The tool surface provides comprehensive coverage for a discussion forum domain, including full CRUD/lifecycle operations for threads and comments (create, read, update, delete via editing/removing actions), moderation features (lock, pin, endorse), search, user management, and file uploads. There are no obvious gaps, and agents can handle typical workflows without dead ends.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers