edstem-mcp
edstem-mcp lets MCP clients like Claude interact with Ed Discussion through its full API, enabling reading, searching, posting, and managing course threads, comments, and files.
Get authenticated user info and enrolled courses (also resources
edstem://userandedstem://courses).List, search, and retrieve threads by global ID or course-local number.
Create, edit, lock/unlock, pin/unpin, endorse/unendorse, star/unstar threads.
Post comments/answers, reply to comments, endorse/unendorse comments, accept answers.
List course roster (staff/admin) and a user's recent activity.
Upload a file to Ed from a public URL.
Convert markdown to Ed XML for preview (
format_content), with automatic markdown conversion for posts.Use prompts:
check_assignment,unanswered_questions,my_activity.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@edstem-mcp find all unanswered questions about the midterm in course 1234"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
edstem-mcp
MCP server for Ed Discussion — expose Ed's full API to Claude and other MCP clients.
Setup
npm install
npm run buildSet 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 authenticated user info and enrolled courses |
| List threads in a course (sortable, paginated) |
| Get thread by global ID with comments |
| Get thread by course-local number (the # in the UI) |
| Search threads by title, content, or category |
| Create a new thread (supports markdown input) |
| Edit an existing thread |
| Lock a thread |
| Unlock a thread |
| Pin a thread |
| Unpin a thread |
| Endorse a thread |
| Remove thread endorsement |
| Star/bookmark a thread |
| Remove star |
| Post a comment or answer on a thread |
| Reply to an existing comment |
| Endorse a comment |
| Remove comment endorsement |
| Accept a comment as the answer |
| List course roster (staff/admin) |
| List a user's threads and comments |
| Upload a file to Ed from a URL |
| 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 |
| Authenticated user details |
Courses |
| Enrolled courses list |
Prompts (3)
Prompt | Description |
| Look up assignment details, requirements, and staff clarifications |
| List unresolved questions in a course |
| 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 calloutPass raw Ed XML (starting with <document) to bypass conversion.
Testing
npm testRebuilds 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 toolsaccept_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
Scored across 24 tools
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.
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.
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.
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
Related MCP Connectors
Official MCP bridge to Exogram—the Personal AI Agent for your work, people, and life.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Search and manage your team's knowledge from MCP clients.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceMCP server for Ed Discussion that enables viewing profile, courses, lessons, threads, and submitting slide answers via natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Ed Discussions (EdStem) course discussions, manage threads, comments, and facilitate Q&A, with tools for analytics and read status control.MIT
- AlicenseNot gradedqualityDmaintenanceEnables querying and interacting with Ed Discussion platform courses, lessons, threads, activity, quizzes, and lesson progress through MCP tools.Apache 2.0
- AlicenseAqualityCmaintenanceAn MCP server and CLI for Ed Discussion that gives LLMs access to threads, comments, attendance, moderation, file uploads, and instant local search through 43 tools.432MIT