
Mcp Piazza
io.github.jadenpxrk由 GitHub 账号 jadenpxrk 发布v0.1.0更新于 Oct 24, 2026
Read-only Piazza access: activity, search, unread posts, full threads, and course info
概览
一个只读的 Piazza MCP 服务器,让助手浏览课程、搜索帖子、阅读完整讨论串并汇总动态。
- 可以做什么
- 列出课程并读取课程信息、答疑时间、教职人员和统计页面,同时提供各课程未读数和指定时间以来的最新动态。按未读、未解决、未回答、我的、星标等筛选条件列出和搜索帖子摘要,并阅读完整讨论串,包括回答、追问、回复、投票和版本历史。打开帖子附带的图片和文件,列出教师笔记和投票。使用内置提示和技能来补看某段时间的内容、确认问题是否已被回答,或为考试复习收集事实。
- 适用场景
- 适合关注 Piazza 讨论的学生和课程工作人员,希望助手汇总错过的内容、在提问前查找已有答案,或收集关于某场考试或主题的帖子。
- 运行要求
- 通过 uvx 作为本地 Python 包运行。需要 Piazza 账号并完成一次登录,可通过浏览器登录页、已有浏览器会话、密码或粘贴会话 cookie 完成;PIAZZA_EMAIL 和 PIAZZA_PASSWORD 可启用自动登录。会话 cookie 保存在本地文件,路径可用 PIAZZA_COOKIE_FILE 设置。需要访问 piazza.com 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Piazza,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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.
来源:README.md,提交 42303db
工具
0版本历史
1- v0.1.0最新Oct 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
