piazza-mcp
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., "@piazza-mcp What did I miss on Piazza this week?"
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.
mcp-piazza
A read-only Model Context Protocol server for Piazza. It works with every MCP client: Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, Cline, Codex, Gemini CLI, Goose, opencode, JetBrains, LM Studio, Continue, and others.
Ask your assistant about your courses:
"What did I miss on Piazza this week?"
"Are there unresolved questions about HW3 in CSE 12?"
"Did anyone already ask about the midterm room?"
"When are the TA office hours?"
"What did the instructor change in @142?"
The server only reads data. It cannot post, edit, endorse, or delete.
Quick start
Install uv.
Log in one time. The command opens a login page in your browser:
uvx mcp-piazza loginYou can also skip this step. If the server has no session, the first tool call opens the same page and shows its link.
Add the server to your client. The server command is
uvxwith the argumentmcp-piazza. For example:claude mcp add --scope user --transport stdio piazza -- uvx mcp-piazza # Claude Code codex mcp add piazza -- uvx mcp-piazza # Codex CLISee docs/clients.md for Claude Desktop, Cursor, VS Code, Windsurf, Zed, Gemini CLI, and other clients.
Ask: "List my Piazza courses."
Related MCP server: Horizon
Tools, prompts and resources
Tool | Purpose |
| List your courses with ID, course number, term, role, active status, and folders. |
| Get the course page: description, syllabus, office hours, general information, and staff with emails. |
| Count unread posts in each active course. |
| List posts with new activity since a time ( |
| List post summaries. Filters: |
| Search posts by keywords in one course or in all active courses. |
| Read one full thread: question, instructor answer, student answer, followups, replies, and poll data. |
| Read up to 20 full threads in one call. |
| Show every version of a post, with a diff between versions. |
| List notes and polls written by instructors. |
| Open an image or file from a post. The model can see images. |
| Get the data from the course Statistics page. |
Every tool accepts a course ID, a course number such as CSE 12 or cse12, or part of the course name.
Prompt | Purpose |
| Read all posts since a time and summarize them, with actions for you. |
| Find out if a question was already asked and answered. |
| Read all posts about an exam or topic and collect the facts. |
Many clients show prompts as slash commands.
Skill | Purpose |
| The |
| The |
| The |
Skills work in Claude Code, Cursor, Codex, opencode, and other agents. They need the server. To install them:
npx skills add jadenpxrk/mcp-piazzaResource | Content |
| Your courses |
| One full thread |
See docs/tools.md for parameters and output fields, and docs/workflows.md for examples.
Authentication
Piazza has no public API. This server uses piazza-api, which logs in as the Piazza website does.
Method | How | Use it when |
Login page |
| Most people. The page offers the three methods below. |
Browser session |
| You are logged in to piazza.com in Chrome, Arc, Brave, Edge, Firefox, Safari, Chromium, Vivaldi, or Opera. This works with school SSO. |
Password |
| You want to type your email and password in the terminal. |
Session cookie |
| You want to paste the |
Environment variables |
| You want automatic login when the session expires. |
All methods save only the session cookies to ~/.config/mcp-piazza/cookies.json with file mode 600. They do not save your password.
When the session expires, the next tool call opens the login page again. mcp-piazza logout deletes the session.
Configuration
Variable | Default | Purpose |
| none | Account email for automatic login. |
| none | Account password for automatic login. |
|
| Path of the saved session. |
|
| Replace student names with pseudonyms. |
|
| Mark post text as untrusted data. |
|
| Mark unread posts unread again after the server reads them. |
|
| Minimum seconds between Piazza requests. |
|
| Seconds to keep feeds and posts in memory. |
See docs/configuration.md for examples and the command line.
Privacy and safety
Read-only. The server has no tools that change Piazza data. The only write is the optional
PIAZZA_KEEP_UNREADrestore.Prompt-injection fencing. Other course members write the post text. The server puts that text between
<<<UNTRUSTED PIAZZA TEXT ...>>>markers, and the server instructions tell the model to treat it as data.Student pseudonyms. When
PIAZZA_ANONYMIZE_STUDENTS=true, other students show asStudent 3f2a1c. Staff keep their names. Your own posts show asyou.Local only. The server runs on your computer. It sends your cookies only to
piazza.com.
See docs/privacy.md for the full model and its limits.
Development
uv sync
uv run pytest # offline tests, no Piazza account needed
uv run ruff check src tests
uv run ruff format src tests
uv run mypy srcSee AGENTS.md for the project layout and rules.
Limitations
Piazza can change its internal API at any time. If tools fail after a Piazza update, see docs/troubleshooting.md.
When the server reads a full post, Piazza marks the post as read and counts a view, as the website does. Set
PIAZZA_KEEP_UNREAD=trueto mark unread posts unread again.The course page files and links (the Resources tab) are not available.
get_course_infoshows the names of the resource sections only.Piazza does not document the poll format.
get_postreturns the poll data as Piazza sends it.Some instructors hide the Statistics page. For those courses,
get_course_statsreturns an error.
License
MIT. This project is not affiliated with Piazza.
Available Tools
12 toolsget_attachmentGet AttachmentARead-onlyIdempotent
Open a file or image that a post links to, such as an [image: ...] link or a piazza.com upload link.
Images come back as images that the model can see. Text files come back as text. Other files, such as PDFs, come back as an embedded file if the client supports it. The maximum size is 10 MB.
Inputs: url (required).
get_course_infoGet Course InfoARead-onlyIdempotent
Get the course page: description, syllabus, office hours, general information, dates, and the staff list with names, roles and emails. Use it to find who teaches the course or when office hours are.
Inputs: course (required). Returns: id, url, name, term, +14 more
get_course_statsGet Course StatsBRead-onlyIdempotent
Get the data from the course Statistics page. Some instructors hide this page from students.
Inputs: course (required). Returns: object
get_postGet PostBRead-onlyIdempotent
Read one full thread: the question or note, both answers, and followups with replies.
number is the post number that Piazza shows as @123.
Inputs: course (required), number (required). Returns: url, poll, tags, type, +16 more
get_post_historyGet Post HistoryARead-onlyIdempotent
Show every version of a post, oldest first, with author and time.
With diff=true, version 1 has the full text and each later version has only a diff from the version before. Use it to see what an instructor changed in an announcement or a question.
Inputs: course (required), number (required), diff. Returns: url, course, number, versions
get_postsGet PostsBRead-onlyIdempotent
Read up to 20 full threads from one course in one call. A post that cannot be read has an "error" field.
Inputs: course (required), numbers (required). Returns: posts
get_unread_countsGet Unread CountsARead-onlyIdempotent
Count the posts with unread content in each course. Sends one request per course.
By default only active courses are counted. Courses with no unread posts are left out.
Inputs: include_inactive. Returns: total, courses
list_coursesList CoursesARead-onlyIdempotent
List the user's Piazza courses with ID, course number, term, role, active status, and post folders.
Other tools accept the ID, the course number, or part of the name. Set refresh=true to reload from Piazza.
Inputs: refresh. Returns: result
list_instructor_notesList Instructor NotesBRead-onlyIdempotent
List notes and polls written by instructors, such as announcements and logistics, most recent first.
Inputs: course (required), limit. Returns: count, posts, query, course, +2 more
list_postsList PostsARead-onlyIdempotent
List post summaries for a course, most recent activity first.
filter: "unread" = posts with content the user has not read. "following" = posts the user follows. "unresolved" = unanswered questions and posts with unresolved followups. "unanswered" = questions with no answer. "mine" = the user's own posts that show their name. "starred" = posts the user starred. folder: only posts in this folder, for example "hw1". list_courses shows the folder names. Summaries have a short snippet only. Call get_post or get_posts for full threads.
Inputs: course (required), limit, filter, folder, +1 more. Returns: count, posts, query, course, +2 more
recent_activityRecent ActivityBRead-onlyIdempotent
List posts with new activity since a time, in all active courses or in one course.
since: a relative age such as 24h, 7d or 2w, or an ISO date such as 2026-10-01. The default is 7d. Use this tool for questions such as "what did I miss this week". Courses without activity are left out.
Inputs: limit, since, course, include_inactive. Returns: query, since, courses
search_postsSearch PostsARead-onlyIdempotent
Search posts by keywords, like the Piazza search box, in one course or in all active courses.
Use it before the user asks a new question, to find duplicates. Returns post summaries grouped by course.
Inputs: query (required), limit, course. Returns: query, since, courses
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have distinct purposes (e.g., get_course_stats vs get_course_info vs list_courses), but there is potential overlap between get_post and get_posts, and between list_posts and recent_activity; however, descriptions clarify their differences. The main ambiguity is that get_posts can read multiple threads, which might be confused with get_post or list_posts, but it's minor because of clear guidance.
All tool names follow a consistent snake_case pattern with verb_noun structure (e.g., get_course_stats, list_courses, get_post_history). No deviations or mixed conventions are present.
12 tools is well-scoped for a Piazza client, covering courses, posts, search, activity, and attachments without being excessive or too thin. Each tool appears to earn its place.
The tool surface covers many key operations: listing courses/posts, searching, reading threads, getting attachments, and instructor notes. However, obvious gaps exist: there is no tool to create or reply to posts, and no way to mark posts as read/unread or star/unstar, which are common Piazza actions. These gaps are minor but could limit agent workflows.
Maintenance
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Read-only MCP server for RZ AI Labs — query its services, workshops, and contact info.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for Piazza Q&A platform, enabling course management, post creation, search, and user interactions via reverse-engineered API.22MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that connects AI assistants to university D2L Brightspace and Piazza, enabling query of courses, grades, assignments, deadlines, files, and Piazza posts.7MIT
- AlicenseAqualityBmaintenanceRead-only MCP server for Canvas LMS that exposes tools to list courses, assignments, grades, submissions, syllabi, announcements, modules, pages, and files, without any write operations.1126 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only access to University of Waterloo Learn and Piazza, allowing users to view courses, assignments, grades, submissions, discussions, and more through an MCP server.MIT