MCP Piazza
概览
作者提供的说明(英文原文)
Read-only Piazza access: activity, search, unread posts, full threads, and course info
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 23/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
- 你需要填写:PIAZZA_PASSWORD
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
PIAZZA_EMAIL,PIAZZA_PASSWORD,PIAZZA_COOKIE_FILE,PIAZZA_ANONYMIZE_STUDENTS,PIAZZA_FENCE_CONTENT,PIAZZA_MIN_INTERVAL,PIAZZA_CACHE_TTL
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"piazza": {
"command": "uvx",
"args": [
"mcp-piazza"
],
"env": {
"PIAZZA_EMAIL": "your-value",
"PIAZZA_PASSWORD": "your-value",
"PIAZZA_COOKIE_FILE": "your-value",
"PIAZZA_ANONYMIZE_STUDENTS": "your-value",
"PIAZZA_FENCE_CONTENT": "your-value",
"PIAZZA_MIN_INTERVAL": "your-value",
"PIAZZA_CACHE_TTL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add piazza --env PIAZZA_EMAIL=your-value --env PIAZZA_PASSWORD=your-value --env PIAZZA_COOKIE_FILE=your-value --env PIAZZA_ANONYMIZE_STUDENTS=your-value --env PIAZZA_FENCE_CONTENT=your-value --env PIAZZA_MIN_INTERVAL=your-value --env PIAZZA_CACHE_TTL=your-value -- uvx mcp-piazza运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"piazza": {
"command": "uvx",
"args": [
"mcp-piazza"
],
"env": {
"PIAZZA_EMAIL": "your-value",
"PIAZZA_PASSWORD": "your-value",
"PIAZZA_COOKIE_FILE": "your-value",
"PIAZZA_ANONYMIZE_STUDENTS": "your-value",
"PIAZZA_FENCE_CONTENT": "your-value",
"PIAZZA_MIN_INTERVAL": "your-value",
"PIAZZA_CACHE_TTL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"piazza": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-piazza"
],
"env": {
"PIAZZA_EMAIL": "your-value",
"PIAZZA_PASSWORD": "your-value",
"PIAZZA_COOKIE_FILE": "your-value",
"PIAZZA_ANONYMIZE_STUDENTS": "your-value",
"PIAZZA_FENCE_CONTENT": "your-value",
"PIAZZA_MIN_INTERVAL": "your-value",
"PIAZZA_CACHE_TTL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
PIAZZA_EMAILenvPiazza account email. Not needed after 'mcp-piazza login'.- Piazza account password. Not needed after 'mcp-piazza login'.
PIAZZA_COOKIE_FILEenvPath of the saved session file.PIAZZA_ANONYMIZE_STUDENTSenvReplace student names with pseudonyms.PIAZZA_FENCE_CONTENTenvMark post text as untrusted data.PIAZZA_MIN_INTERVALenvMinimum seconds between Piazza requests.PIAZZA_CACHE_TTLenvSeconds to keep feeds and posts in memory.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 jadenpxrk 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5727 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5727 个服务器的 62% 更新
- 基础检查结果等于或优于此分类中其他 5727 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
MCP Piazza 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:PIAZZA_PASSWORD
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.1.0)于24天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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 login
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:
claude mcp add --scope user --transport stdio piazza -- uvx mcp-piazza # Claude Code
codex mcp add piazza -- uvx mcp-piazza # Codex CLI
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
| Tool | Purpose |
|---|---|
list_courses | List your courses with ID, course number, term, role, active status, and folders. |
get_course_info | Get the course page: description, syllabus, office hours, general information, and staff with emails. |
get_unread_counts | Count unread posts in each active course. |
recent_activity | List posts with new activity since a time (24h, 7d, 2026-10-01), in all active courses or one course. |
list_posts | List post summaries. Filters: all, unread, following, unresolved, unanswered, mine, starred. Optional folder and paging. |
search_posts | Search posts by keywords in one course or in all active courses. |
get_post | Read one full thread: question, instructor answer, student answer, followups, replies, and poll data. |
get_posts | Read up to 20 full threads in one call. |
get_post_history | Show every version of a post, with a diff between versions. |
list_instructor_notes | List notes and polls written by instructors. |
get_attachment | Open an image or file from a post. The model can see images. |
get_course_stats | 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 |
|---|---|
catch_up | Read all posts since a time and summarize them, with actions for you. |
before_asking | Find out if a question was already asked and answered. |
exam_prep | Read all posts about an exam or topic and collect the facts. |
Many clients show prompts as slash commands.
| Skill | Purpose |
|---|---|
piazza-catch-up | The catch_up steps, for agents that use skills. |
piazza-exam-prep | The exam_prep steps. |
piazza-before-asking | The before_asking steps. |
Skills work in Claude Code, Cursor, Codex, opencode, and other agents. They need the server. To install them:
npx skills add jadenpxrk/mcp-piazza
| Resource | Content |
|---|---|
piazza://courses | Your courses |
piazza://courses/{course_id}/posts/{number} | 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 | mcp-piazza login, or the link from the first tool call | Most people. The page offers the three methods below. |
| Browser session | mcp-piazza login --browser | You are logged in to piazza.com in Chrome, Arc, Brave, Edge, Firefox, Safari, Chromium, Vivaldi, or Opera. This works with school SSO. |
| Password | mcp-piazza login --password | You want to type your email and password in the terminal. |
| Session cookie | mcp-piazza login --cookie | You want to paste the session_id cookie from the browser developer tools. |
| Environment variables | PIAZZA_EMAIL, PIAZZA_PASSWORD | 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 |
|---|---|---|
PIAZZA_EMAIL | none | Account email for automatic login. |
PIAZZA_PASSWORD | none | Account password for automatic login. |
PIAZZA_COOKIE_FILE | ~/.config/mcp-piazza/cookies.json | Path of the saved session. |
PIAZZA_ANONYMIZE_STUDENTS | false | Replace student names with pseudonyms. |
PIAZZA_FENCE_CONTENT | true | Mark post text as untrusted data. |
PIAZZA_KEEP_UNREAD | false | Mark unread posts unread again after the server reads them. |
PIAZZA_MIN_INTERVAL | 0.5 | Minimum seconds between Piazza requests. |
PIAZZA_CACHE_TTL | 60 | Seconds to keep feeds and posts in memory. 0 turns off the cache. |
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
<< >>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 src
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.