
Mcp Piazza
io.github.jadenpxrkPublished by GitHub account jadenpxrkv0.1.0Updated Oct 24, 2026
Read-only Piazza access: activity, search, unread posts, full threads, and course info
Overview
A read-only MCP server for Piazza that lets an assistant browse courses, search posts, read full threads, and summarize activity.
- What you can do
- List courses and read course info, office hours, staff, and statistics pages, with unread counts per course and recent activity since a given time. List and search post summaries by filters such as unread, unresolved, unanswered, mine, or starred, and read full threads including answers, followups, replies, polls, and version history. Open images and files attached to posts, and list instructor notes and polls. Run built-in prompts and skills to catch up on a period, check whether a question was already answered, or collect facts for exam prep.
- When to use it
- Useful for students and course staff who follow Piazza discussions and want an assistant to summarize what they missed, find existing answers before asking, or gather posts about an exam or topic.
- Requirements
- Runs locally as a Python package through uvx. Needs a Piazza account and a one-time login, either through a browser login page, an existing browser session, a password, or a pasted session cookie; PIAZZA_EMAIL and PIAZZA_PASSWORD enable automatic login. Session cookies are saved to a local file whose path can be set with PIAZZA_COOKIE_FILE. Network access to piazza.com is required.
Installation
In SourceWeft
- Open Mcp Piazza in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-piazza
[CI] [PyPI] [Python] [OpenSSF Scorecard] [License: MIT]
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:
You 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:See docs/clients.md for Claude Desktop, Cursor, VS Code, Windsurf, Zed, Gemini CLI, and other clients.
-
Ask: "List my Piazza courses."
Tools, prompts and resources
Every tool accepts a course ID, a course number such as CSE 12 or cse12, or part of the course name.
Many clients show prompts as slash commands.
Skills work in Claude Code, Cursor, Codex, opencode, and other agents. They need the server. To install them:
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.
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
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
See 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.
Source: README.md at commit 42303db
Tools
0Version history
1- v0.1.0LatestOct 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
