Skip to main content

Piazza MCP 服务器 (Piazza MCP Server)

这是一个基于模型上下文协议 (Model Context Protocol, MCP) 的服务器,它使用非官方的 piazza-api Python 库与 Piazza 进行集成。该服务器允许 AI 助手(如 Claude、Cursor 和 VS Code 扩展)安全地访问你的 Piazza 课程数据并进行交互。

功能特性

该服务器向 AI 助手暴露了以下 MCP 工具:

  • get_user_profile(): 获取当前 Piazza 用户的个人资料信息。
  • get_user_classes(): 获取当前用户加入的所有课程及其课程网络 ID。
  • get_post(network_id, post_id): 通过帖子 ID (CID) 检索指定课程网络 (network_id) 中的特定帖子,并自动将其内容(包含老师和学生的答案、跟进讨论)整理总结为结构化并且脱去庞杂 HTML 标签的整洁 Markdown。
  • read_attachment(url): 利用服务器当前的认证会话直接抓取帖子中的链接地址,自动下载提取课件文件 (PDF, PPTX, DOCX, TXT) 内的结构化正文文本,方便直接审阅。
  • search_posts(network_id, query): 使用文本查询在指定课程网络 (network_id) 中搜索帖子。
  • get_users(network_id, user_ids): 通过用户 ID 查找指定课程网络 (network_id) 中的用户资料。
  • get_all_users(network_id): 检索指定课程网络 (network_id) 中的所有用户/花名册列表。

配置与使用

服务器需要以下环境变量来与 Piazza 进行身份验证:

  • PIAZZA_EMAIL: 你的 Piazza 登录邮箱。
  • PIAZZA_PASSWORD: 你的 Piazza 登录密码。

为 MCP 客户端进行配置 (如 Claude Desktop)

要将此服务器用于支持 MCP 的客户端(例如 Claude Desktop),你可以使用 uvx 直接从项目目录运行:

{
  "mcpServers": {
    "piazza-mcp": {
      "command": "uvx",
      "args": [
        "piazza-mcp-server"
      ],
      "env": {
        "PIAZZA_EMAIL": "your_email@example.com",
        "PIAZZA_PASSWORD": "your_password"
      }
    }
  }
}

免责声明

这是一个非官方的集成项目。它不是由 Piazza Technologies Inc. 提供、支持或以任何方式建立附属关系的。请自行承担使用风险。

Metadata

Release files for piazza-mcp-server 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for piazza-mcp-server 0.1.2
File Size Uploaded Provenance
piazza_mcp_server-0.1.2.tar.gz 60.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for piazza-mcp-server 0.1.2
File Interpreter ABI Platform
piazza_mcp_server-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 67.7 kB

Release files / piazza_mcp_server-0.1.2.tar.gz

Download URL piazza_mcp_server-0.1.2.tar.gz
Size 60.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c125b2a608cabc5921c614311c10766f0e37e71af8c1facc48237cb25a696e29
BLAKE2b-256 checksum
How to use checksums
798e7980b8b2dfb18a533c151c02b5b659cd13f17a0528150a8cf05af5420c23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

Release files / piazza_mcp_server-0.1.2-py3-none-any.whl

Download URL piazza_mcp_server-0.1.2-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45ef399c526796704f062a4be33235e32a4c712637f6350d40ffe218a2bd8020
BLAKE2b-256 checksum
How to use checksums
ca7cb4053eab965940fd4aff67b6e6d80993b9fbf057c0f1853c055e02768be1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

Security for piazza-mcp-server 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for piazza_mcp_server-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page