Skip to main content

Parro API client and OpenAPI spec

Read your child's school news from the terminal or from Claude: an unofficial, read-only client and API description for Parro, the Dutch parent–school communication app by Topicus (ParnasSys). It reads announcements, newsletters (including the text inside PDF attachments), the calendar, chats and class info.

Client checks Latest release Python 3.10+ Standard library only Read-only Code: MIT Spec: CC BY 4.0

Terminal output of parro-client overview: unread counts, the latest announcements with author and date, the coming calendar items and chats with unread messages. Invented example data.

All pictures in this README show invented example data from the test suite.

Not affiliated with or endorsed by Topicus, ParnasSys or Parro. Behaviour was observed, not documented by the vendor, and may change at any time. Only documented GET endpoints and the standard OAuth2 login flow are used and described.

Quick start

  1. Install it, on Windows, macOS or Linux (Python 3.10 or newer). pipx or uv keep it in its own environment and put the commands on your PATH:
    pipx install parro-api-client
    
    Or uv tool install parro-api-client. To read PDF newsletters as text, install "parro-api-client[attachments]" instead. Straight from GitHub: pipx install git+https://github.com/chris-swift-dev/parro-api-client.
  2. Log in. You type the password; the login then lasts up to 8 hours:
    parro-client login --prompt
    
  3. See what is new:
    parro-client overview
    

Update with pipx upgrade parro-api-client. Without installing anything: download a release from the Releases page, unpack it, and run python3 parro_cli.py wherever this README says parro-client.

For Claude and other MCP clients, see MCP server. API explorers: the spec is browsable in Swagger UI.

What it does

parro-client a command-line client: readable markdown at a terminal, JSON when piped (jq)
parro-client-mcp an MCP server over stdio for Claude and other MCP clients
parro/ the library both use: login, API calls, summaries, attachments
openapi/parro.public.openapi.json the OpenAPI 3.0.3 description of the API (contract version 224)

The Parro web app talks to a Topicus "geon" REST API at https://rest-v2.parro.com/rest/v2. This client speaks that API and adds three things:

  1. It strips the geon boilerplate. A three-group list is 2.8 KB of JSON carrying about 300 bytes of information. Every command returns a compact summary; --raw (MCP: raw: true) gives the untouched payload.
  2. It reads attachments. Newsletters arrive as PDFs; attachment / parro_attachment returns their text. Photos come back as images (MCP) or can be saved (CLI).
  3. It shows the data the way the app does. Announcements once each with author and groups, an agenda per day, conversations in reading order, an overview of what is new. Every id stays visible, so the next command is always at hand.

It only ever reads: the Parro API only receives GET, and POST goes only to the login server's token, revoke and login-form endpoints. Standard library only; PyMuPDF / pypdf (PDF text) and Pillow (photo downscaling) are optional.

flowchart LR
  you([You, at a terminal]) --> cli[parro-client]
  claude([Claude or another MCP client]) --> mcp[parro-client-mcp]
  cli --> core["parro/<br>login · API calls · summaries · markdown"]
  mcp --> core
  core -- "GET only" --> api[(Parro REST API)]
  core -- "login, refresh, logout" --> idp[(ParnasSys login server)]
  core -- "attachments" --> cdn[(Attachment CDN)]
  core --- disk[("~/.parro: tokens, cache, archive")]

What it looks like

At a terminal the CLI prints markdown; piped into another program it prints JSON. --format (or PARRO_FORMAT) chooses explicitly. Dates are shown in the school's time zone, labels are English, content is shown as written. Calendar items that ask parents to help (driving, reading aloud) are marked helpers wanted; with --details you see how many signed up, and whether you did.

The agenda: calendar --details Terminal output of parro-client calendar --details: the agenda per day with times, groups, locations, descriptions, an attachment and RSVP markers. Invented example data.
Announcements: announcements Terminal output of parro-client announcements: each announcement with author, groups, date, a three-line preview and its attachments. Invented example data.

tests/snapshots/ holds the output of every view.

Command line

parro-client --help
parro-client login --prompt              # type the password; the login lasts up to 8 hours
parro-client status
parro-client overview                    # what is new, like the app's home screen
parro-client announcements --limit 5 --unread-only
parro-client attachment <announcement-id> --text
parro-client calendar --details          # agenda with location, description and helper slots
parro-client calendar-link               # Parro's own link to subscribe from Google/Apple/Outlook
parro-client calendar --ics parro.ics --details # or: an .ics file to import
parro-client sync                        # keep a local archive (repeat to update)
parro-client privacy                     # can you still change your children's privacy choices?
parro-client announcements --format json | jq '.announcements[].title'
parro-client get /accountsettings
parro-client token                       # paste into Swagger UI → Authorize → bearerToken

Commands: login [--prompt], logout, status, token, login-url, login-finish <url>, overview, me, children, privacy [--link CHILD_ID], groups [--previous], unread, system-news [--full], announcements [--group ID] [--limit N] [--unread-only] [--full], announcement <id>, calendar [--group ID] [--limit N] [--details] [--past] [--ics FILE], calendar-link, attachment <event-id> [--attachment-id ID | --all] [--save-to DIR] [--text], chatrooms, chat-messages <chatroom-id>, sync [--to DIR] [--previous] [--photos], cache info|clear, get <path> [--param k=v ...] [--limit N] [--offset N]. Global options: --format auto|json|markdown, --login-method, --raw, --compact, --no-cache, --verbose. --full shows whole texts instead of a 3-line preview.

Exit codes: 0 ok · 1 API/network error · 2 usage · 3 not logged in · 4 login halted.

MCP server

Ask Claude about school, and it reads Parro for you. An illustration with the invented test data:

You: Do I need to do anything for school in the coming weeks?

Claude calls parro_overview, parro_calendar {"details": true} and parro_announcement, then answers: Two things need a reply: the trip to the Natuurmuseum on Thursday 12 November (group 6 still needs two parents who can drive; there is a permission form attached) and the parent–teacher talks for group 3 on 17 November (pick a ten-minute slot). Friday 13 November is a study day: no school, but the after-school care is open.

Tool What it gives you
parro_auth_status Login state, account, role, token expiry, whether automatic login is halted. Start here when something fails.
parro_login Log in with PARRO_USERNAME and the password; optional method.
parro_login_url / parro_login_finish Browser login without a stored password (OAuth2 + PKCE).
parro_logout Revoke the tokens at the IdP and forget them.
parro_me Account and school.
parro_children Children linked to the account.
parro_groups Classes and school-wide groups, with the ids other tools need.
parro_announcements The main feed. Merges all groups, newest first, full text + attachment list.
parro_announcement One announcement by id, with author.
parro_attachment Downloads an attachment of an announcement or calendar item and returns its text (PDF/docx/txt/csv/html) or the image.
parro_calendar Calendar items from today on, soonest first; details: true adds location, description and helper slots, past: true earlier items.
parro_chatrooms / parro_chat_messages Conversations.
parro_unread Unread counts per category.
parro_get Escape hatch: GET any /rest/v2 path not covered above.
parro_overview What is new: unread counts, latest announcements, coming up, unread chats.
parro_calendar_link The personal link to subscribe to the Parro agenda (keep it secret).
parro_privacy Per child: can parents change the privacy choices now, and when were they last changed; link: true gives the page to change them (keep it secret).

Every tool takes an optional format: json (default) or markdown, a readable view that keeps every id. The first 16 tools have the same names and arguments as the original server, so existing MCP configurations keep working.

With the package installed (Quick start), Claude Code:

claude mcp add parro -s user -- parro-client-mcp

Claude Desktop (claude_desktop_config.json) does not see your shell's PATH, so give the full path of the command: which parro-client-mcp (Windows: where parro-client-mcp) prints it.

{
  "mcpServers": {
    "parro": {
      "command": "/Users/you/.local/bin/parro-client-mcp",
      "env": { "PARRO_USERNAME": "you@example.com", "PARRO_PASSWORD_FILE": "/path/to/password-file" }
    }
  }
}

Without installing it first, uv can start it on demand: "command": "uvx", "args": ["--from", "parro-api-client", "parro-client-mcp"] (also with the full path of uvx for Claude Desktop). From an unpacked release: "command": "python3", "args": ["/path/to/parro-api-client/parro_mcp.py"].

Testing without an MCP client: parro-client-mcp tools, then parro-client-mcp call parro_announcements '{"limit": 5}'. PDF text needs PyMuPDF or pypdf, photo downscaling Pillow (installed with "parro-api-client[attachments]"); without them everything else works, and the attachment tool says what to install. Running it in Docker: DEPLOY.md.

Logging in

Logging in is OAuth2 against the ParnasSys login server. By default the client does exactly what a browser does (the login form); tokens are stored in ~/.parro-mcp/tokens.json (mode 0600) and refresh themselves, but a login lasts at most 8 hours: the login server's limit, however often the client refreshes. After that, log in again. With PARRO_USERNAME and a password file set, the client (and the MCP server) logs in again on its own when needed: one password check per 8 hours. parro-client status (MCP: parro_auth_status) shows until when the current login lasts.

The login server locks the account after a few failed logins. When a password is rejected, the client stops logging in on its own, so a typo costs one attempt, not one per call. status then shows automatic_login_halted; fix the password and run parro-client login once.

Credentials: PARRO_USERNAME plus PARRO_PASSWORD_FILE (or PARRO_PASSWORD), or login --prompt, or no password at all with login-url / login-finish. Login methods, the lockout latch and why there is no automatic browser redirect: docs/LOGIN.md. Every environment variable: docs/CONFIGURATION.md.

The agenda in your own calendar app

  • calendar-link prints Parro's own subscription link (GET /calendar/sync). Paste it into Google Calendar (Other calendars → From URL), Apple Calendar (New Calendar Subscription) or Outlook (Subscribe from web), and the calendar keeps itself up to date. The link is a secret: anyone who has it can read your Parro calendar without logging in. ParnasSys lists agenda syncing as a feature of the paid Parro Ouderapp, so not every school may offer it.
  • calendar --ics FILE writes an iCalendar file of the upcoming items (--past for earlier ones, --details for locations and descriptions, - for standard output). It works without the subscription feature, but it is a snapshot: export again to update. Every event keeps the same UID, so importing a newer file updates events instead of duplicating them.

Your children's privacy choices

Schools ask parents every year what they may do with photos and data of their children. parro-client privacy shows per child whether you can still change those choices, and when and by whom they were last changed. The choices themselves are not in the API: privacy --link CHILD_ID prints the link to the ParnasSys page where you set them. That link is a secret too: it opens the page without logging in.

Your own archive: sync

parro-client sync keeps a local copy of everything your account can see, as files that stay readable without Parro:

~/.parro/data/archive/
  announcements/2026-10-22-nieuwsbrief-nr-3-5000000101.md   (+ .json, + attachments/)
  calendar/2026-11-11-sint-maartenviering-7000000101.md     (+ .json, + attachments/)
  chats/rijden-naar-het-natuurmuseum-8000000001.md          (+ .json)
  index.md                                                  (everything, newest first)
  • Each .md file starts with a small YAML header (id, type, title, date, groups), so notes apps such as Obsidian can use it; the .json next to it holds the same data for scripts.
  • Run it again to update. Unchanged items are not rewritten and a saved file is never downloaded again. Nothing is ever deleted: an item that disappears from Parro stays, marked (no longer in Parro) in index.md.
  • Documents are always saved; photos only with --photos (a school year of photos can run to several GB). --to DIR writes elsewhere.
  • Run sync --previous once as well, especially around the start of a school year: schools sometimes post the first dates of the new year in last year's groups.
  • The archive holds your children's names, photos and school letters: its folders are readable only by you (0700, files 0600), and no file contains a download or avatar link.

The cache. Attachments (and their text) and calendar details are also kept in ~/.parro/data/cache, so a newsletter is downloaded once, not every time an assistant reads it. Lists are never cached: they are how the client learns what is new; neither are the details of items that ask for helpers, because sign-ups change. Same privacy rules as the archive. cache info shows its size, cache clear empties it, --no-cache switches it off.

The OpenAPI specification

Swagger UI of the Parro REST API spec: the title and the GET operations of the Account, Groups, Events and Chat sections.

openapi/parro.public.openapi.json describes the API as observed from the web client: 18 operations of the Parro API (account, children and their privacy settings, groups, announcements, calendar items, chats, unread counts, system news, absence and photo-export settings, the agenda subscription link), each called at least once, and the login server's OAuth2 endpoints. It explains the non-obvious parts: the geon media type and headers, Range-based paging, dtype polymorphism, and where attachments live.

An operation in Swagger UI: GET /calendar/sync Swagger UI with GET /calendar/sync expanded: what the subscription link looks like, that it is a secret, and what was checked live.
  • Response schemas contain only fields seen in real responses; the published spec carries no example payloads. openapi/README.md explains how it is generated and published; docs/API-NOTES.md lists the facts the client relies on.
  • "Try it out" works once you paste an access token into Authorize → bearerToken (parro-client token prints one).
  • Don't log in through Swagger UI. The code flow can't complete there, and failed password attempts count toward the account lockout.

FAQ

Is this an official Parro tool? No. It is not affiliated with or endorsed by Topicus, ParnasSys or Parro. It uses the same API calls as the Parro web app, as observed from that app.

Can it post, change or delete anything in Parro? No. The Parro API only ever receives GET requests; the only POST requests go to the login server (logging in, refreshing, logging out). There is no command or tool that writes.

Where does my password go? Only to the ParnasSys login server, the same one the web app uses. login --prompt stores nothing but the tokens (~/.parro-mcp/tokens.json, readable only by you); logout revokes them. With login-url the client never sees a password at all. Passwords, tokens and download links are never written to a log.

Can a wrong password lock my account? The login server locks an account after a few failed attempts, so the client never retries: after one rejected password it stops logging in until you run login yourself. See docs/LOGIN.md.

What leaves my computer? Only requests to Parro, its login server and its attachment CDN. There is no telemetry. Note that with the MCP server, whatever a tool returns (school news, your children's names, documents) goes to the AI assistant you use, and so to its provider.

Does it work for every school? It was tested with one parent account. The calendar subscription link is part of the paid Parro Ouderapp, so it may not work everywhere; the rest uses the same calls as the web app. Parro can change its API at any time; if something breaks, please open an issue. Security problems: please report them privately, see SECURITY.md.

Development

python3 -m venv .venv && .venv/bin/pip install -r requirements-test.txt
.venv/bin/pytest            # no network: fake login server and API, invented family and school
.venv/bin/ruff check . && .venv/bin/mypy

Repository layout, snapshots, the README pictures and making a release: docs/DEVELOPMENT.md. A walk through the code: docs/CODE-TOUR.md. How each release was checked against the real API: docs/LIVE-CHECKS.md.

Credits

Inspired by fobatai/parro-mcp, a read-only MCP server for Parro by fobatai. Its working login and API calls were the starting point for this follow-up. The client here is an independent implementation based on the OpenAPI specification in this repository.

License

  • Code (parro/, parro_cli.py, parro_mcp.py, tests/, tools/): MIT.
  • Specification and documentation (openapi/, docs/, the README files): Creative Commons Attribution 4.0 International (CC BY 4.0) (see LICENSE). You may share and adapt them for any purpose, provided you give appropriate credit (link to this repository), indicate the license and note any changes you made.

"Parro", "ParnasSys" and "Topicus" are names of their respective owners. They are used here only to identify the API being described.

Metadata

Release files for parro-api-client 0.5.1

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

Source distribution (sdist)

Source distribution for parro-api-client 0.5.1
File Size Uploaded Provenance Actions
parro_api_client-0.5.1.tar.gz 100.9 kB With provenance Details for parro_api_client-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for parro-api-client 0.5.1
File Interpreter ABI Platform Actions
parro_api_client-0.5.1-py3-none-any.whl Python 3 none any Details for parro_api_client-0.5.1-py3-none-any.whl

Total release size: 203.3 kB

Release files / parro_api_client-0.5.1.tar.gz

Download URL parro_api_client-0.5.1.tar.gz
Size 100.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8304ffd11307997d0b3d0ed6a96d755c3ec83b96fa73686cd02bb02b2a329292
BLAKE2b-256 checksum
How to use checksums
b3667e3983414f03741ed5545a81913d84aa679ee29945f54da295f6060ca464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

Release files / parro_api_client-0.5.1-py3-none-any.whl

Download URL parro_api_client-0.5.1-py3-none-any.whl
Size 102.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1cb5612a609e640b0f968a5bb77b447bfb773c1ca34b143191a515a42c9dcb3
BLAKE2b-256 checksum
How to use checksums
9caf5da227fe8bc92eecb99ef6971a3b8a64138fdec29aa9288b4c301c3b7f5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

Security for parro-api-client 0.5.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for parro_api_client-0.5.1.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 Nov 6, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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