edstem-mcp
Exposes the full Ed Discussion API to MCP clients, enabling users to manage threads, comments, and course activity through natural language. It provides comprehensive tools for searching and posting content, featuring automatic conversion from markdown to Ed's internal XML format.
README
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.
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 (22)
| 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 |
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
Uses Node's built-in test runner (node:test). Tests cover the markdown-to-XML content converter and API client (URL construction, headers, error handling).
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.