Connects Claude to ParentSquare's undocumented internal APIs by scraping the web interface with saved session cookies. Exposes 25+ tools including get_feeds for browsing school posts with inline image content, get_calendar_events for ICS parsing, get_directory for staff lookups, list_conversations for messages, and get_post which downloads PDFs and images so Claude can read flyers and calendars directly. Handles automatic re-authentication with 1Password CLI or environment variables, including MFA flow via submit_mfa_code. Auto-discovers your schools and students on first run. Reach for this when you need to query school communications programmatically or want Claude to summarize posts, extract calendar details from attached PDFs, or look up staff contact info. Not affiliated with ParentSquare and uses unstable endpoints that could break.
An MCP (Model Context Protocol) server that gives Claude access to ParentSquare, a school-parent communication platform. Since ParentSquare has no public API, this server scrapes the web interface using saved session cookies.
Available on the MCP Registry as io.github.thehesiod/psquare and on PyPI as parentsquare-mcp.
This project is not affiliated with, endorsed by, or sponsored by ParentSquare, Inc. "ParentSquare" and all related names, logos, and trademarks are the property of ParentSquare, Inc.
This server communicates with ParentSquare's undocumented internal APIs (scraping the web UI and calling its non-public
/api/v2/JSON endpoints) — these are not published, not guaranteed to be stable, and may change or be blocked at any time without notice. Use of those interfaces may violate ParentSquare's Terms of Service; you are responsible for reviewing the ToS and deciding whether your use is acceptable.Use at your own risk. The authors and contributors accept no responsibility for any consequences of using this software, including but not limited to: account suspension or termination, data loss or corruption, missed or incorrect notifications, MFA lockouts, leaked session cookies, IP blocks, or any other direct or indirect damages. No warranty is provided — see LICENSE for the full MIT no-warranty clause.
If ParentSquare publishes an official API, this project should be considered deprecated in favor of that.
get_feeds — Browse paginated school feed with titles, authors, summaries, and attachment namesget_post — Full post details with body text, comments, poll results, signup items, and inline image/PDF content (Claude can "see" attached calendars, flyers, etc.)get_group_feed — Posts from a specific groupget_calendar_events — Events from ICS calendar as structured JSON (title, start/end, location, description)list_conversations / get_conversation — Read message threadsget_directory — Staff directory as structured JSON (name, role, phone, user_id)get_staff_member — Full staff details with email, office hours, and inline profile photolist_photos — Photo gallery with URLslist_files — Document filesdownload_file — Download any attachment to local disklist_signups — Sign-up and RSVP posts with progress tracking (e.g. "53/103 Items")list_notices — Alerts and secure documentslist_polls — Polls with vote counts and winning optionslist_forms — Permission slips and signable formslist_payments — Payment items with prices and summary statslist_volunteer_hours — Logged volunteer hours with totalslist_schools — Schools and students as structured JSONlist_school_features — Available sections per school (parsed from sidebar)list_groups — Groups with member counts, descriptions, and membership statuslist_links — Quick-access links (Google Drive, external sites)get_student_dashboard — School, grade, classes, and teachers as structured JSONsubmit_mfa_code — Complete MFA verification with a 6-digit code~/.parentsquare_cookies.jsonCredentials can be provided in either of two ways (checked in this order):
PS_USERNAME and PS_PASSWORDop) — with a "Parentsquare" item containing username and password fieldsclaude mcp add --transport stdio parentsquare -- uvx --from "parentsquare-mcp @ git+https://github.com/thehesiod/psquare-mcp" parentsquare-mcp
To enable PDF text extraction for post attachments (optional, AGPL-3.0 licensed):
claude mcp add --transport stdio parentsquare -- uvx --from "parentsquare-mcp[pdf] @ git+https://github.com/thehesiod/psquare-mcp" parentsquare-mcp
No further configuration needed. The server auto-discovers your schools, students, and user ID from ParentSquare on first use. Authentication is handled automatically — when the session expires, the server loads your credentials from environment variables (or 1Password CLI) and re-authenticates (including MFA if needed).
To use environment variables with Claude Code, add an env block to your MCP config:
{
"mcpServers": {
"parentsquare": {
"command": "uvx",
"args": ["parentsquare-mcp"],
"env": {
"PS_USERNAME": "your@email.com",
"PS_PASSWORD": "your-password"
}
}
}
}
Security note: environment variables place your password in plaintext inside your MCP config file. If you chose a password manager specifically to avoid that, prefer the 1Password CLI path.
The server uses requests + BeautifulSoup to scrape ParentSquare's server-rendered HTML pages. Each tool follows the pattern:
PSClient.get_page() or JSON via PSClient.get_json() (auto-relogins on session expiry)parsers/ that extracts structured data into dataclassesData-lookup tools (list_schools, get_directory, get_calendar_events, get_student_dashboard, get_staff_member) return structured JSON for easy programmatic access. Content tools (get_post, get_feeds, get_conversation) return markdown.
On first use, the server auto-discovers your schools, students, and user ID from ParentSquare (no config file needed).
For get_post, image attachments are downloaded and returned as MCP Image objects (so Claude can see them), and PDF attachments have their text extracted via pymupdf. get_staff_member also returns inline profile photos.
Groups use a GraphQL endpoint (/graphql) instead of HTML scraping. The directory and staff details use the internal /api/v2/ JSON:API.
| Package | Purpose | License |
|---|---|---|
mcp | Model Context Protocol SDK | MIT |
requests | HTTP client | Apache 2.0 |
beautifulsoup4 | HTML parsing | MIT |
icalendar | ICS calendar parsing | BSD |
pymupdf | PDF text extraction (optional) | AGPL-3.0 |
MIT — see LICENSE. Note: the optional pymupdf dependency is AGPL-3.0 licensed.
mcp-name: io.github.thehesiod/psquare