Skip to main content

MCP server for ParentSquare school communication platform

Project description

ParentSquare MCP Server

MCP Registry PyPI

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.

Features

Feed & Posts

  • get_feeds — Browse paginated school feed with titles, authors, summaries, and attachment names
  • get_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 group

Calendar

  • get_calendar_events — Events from ICS calendar as structured JSON (title, start/end, location, description)
  • Falls back to guiding Claude to search feed posts for image/PDF calendars when ICS is empty

Communication

  • list_conversations / get_conversation — Read message threads
  • get_directory — Staff directory as structured JSON (name, role, phone, user_id)
  • get_staff_member — Full staff details with email, office hours, and inline profile photo

Media & Files

  • list_photos — Photo gallery with URLs
  • list_files — Document files
  • download_file — Download any attachment to local disk

Participate

  • list_signups — Sign-up and RSVP posts with progress tracking (e.g. "53/103 Items")
  • list_notices — Alerts and secure documents
  • list_polls — Polls with vote counts and winning options
  • list_forms — Permission slips and signable forms
  • list_payments — Payment items with prices and summary stats
  • list_volunteer_hours — Logged volunteer hours with totals

Groups & Discovery

  • list_schools — Schools and students as structured JSON
  • list_school_features — Available sections per school (parsed from sidebar)
  • list_groups — Groups with member counts, descriptions, and membership status
  • list_links — Quick-access links (Google Drive, external sites)

Student

  • get_student_dashboard — School, grade, classes, and teachers as structured JSON

Authentication

  • submit_mfa_code — Complete MFA verification with a 6-digit code
  • Supports MCP elicitation for inline MFA prompts
  • Session cookies persisted to ~/.parentsquare_cookies.json
  • Credentials loaded from 1Password CLI on session expiry

Setup

Prerequisites

  • 1Password CLI (op) with a "Parentsquare" item containing username and password fields

Install in Claude Code

claude mcp add --transport stdio parentsquare -- uvx --from 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 "psquare-mcp[pdf] @ git+https://github.com/thehesiod/psquare-mcp" parentsquare-mcp

That's It

No further configuration needed. The server auto-discovers your schools, students, and user ID from ParentSquare on first use. Authentication is handled automatically via 1Password CLI — when the session expires, the server loads your credentials from 1Password and re-authenticates (including MFA if needed).

How It Works

The server uses requests + BeautifulSoup to scrape ParentSquare's server-rendered HTML pages. Each tool follows the pattern:

  1. Fetch the HTML page via PSClient.get_page() or JSON via PSClient.get_json() (auto-relogins on session expiry)
  2. Parse with a dedicated parser in parsers/ that extracts structured data into dataclasses
  3. Return results as either structured JSON dicts (for data-lookup tools) or markdown text (for content-rich tools)

Data-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.

Dependencies

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

License

MIT — see LICENSE. Note: the optional pymupdf dependency is AGPL-3.0 licensed.

mcp-name: io.github.thehesiod/psquare

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parentsquare_mcp-0.1.3.tar.gz (75.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parentsquare_mcp-0.1.3-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file parentsquare_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: parentsquare_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 75.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for parentsquare_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 22027fcc2aa34d4d78f2026a4499f73416f62d8275c5628180baa8e3b2727c77
MD5 fa2aebd7c5c7d131eed90ec87306b6ab
BLAKE2b-256 f466e349eae58e8234ac12ba63fe479a0c3638efbf1fc3a003d85a9b3841dbee

See more details on using hashes here.

File details

Details for the file parentsquare_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: parentsquare_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for parentsquare_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f16fcd3885ee8353182a4ec6c6826df31da873720a0dcb5df94603e03da7ee
MD5 69019b175f3840a96faa6584dd90201e
BLAKE2b-256 c3c7d22ccc5ea15945234147a1937fa6b14f003241d5558b9a3dbc069f4a4c3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page