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.
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
GETendpoints and the standard OAuth2 login flow are used and described.
Quick start
- 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
Oruv 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. - Log in once. You type the password; from then on the tokens refresh themselves:
parro-client login --prompt
- 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:
- 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. - It reads attachments. Newsletters arrive as PDFs;
attachment/parro_attachmentreturns their text. Photos come back as images (MCP) or can be saved (CLI). - 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
Announcements: announcements
tests/snapshots/ holds the output of every view.
Command line
parro-client --help
parro-client login --prompt # type the password once; tokens then refresh themselves
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}andparro_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 for a long time, so the password is rarely checked again.
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.
statusthen showsautomatic_login_halted; fix the password and runparro-client loginonce.
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-linkprints 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 FILEwrites an iCalendar file of the upcoming items (--pastfor earlier ones,--detailsfor 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
.mdfile starts with a small YAML header (id, type, title, date, groups), so notes apps such as Obsidian can use it; the.jsonnext 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 DIRwrites elsewhere. - Run
sync --previousonce 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
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
- Response schemas contain only fields seen in real responses; the published spec carries no
example payloads.
openapi/README.mdexplains 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 tokenprints 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) (seeLICENSE). 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| parro_api_client-0.5.0.tar.gz | 99.7 kB | With provenance | Details for parro_api_client-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parro_api_client-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for parro_api_client-0.5.0-py3-none-any.whl |
Total release size: 201.0 kB
Release files / parro_api_client-0.5.0.tar.gz
| Download URL | parro_api_client-0.5.0.tar.gz |
|---|---|
| Size | 99.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73d7ac8a8819fe6140ac373e3db32f667a7454b22f62ba404791bcebf6e0ee4b
|
|
BLAKE2b-256 checksum How to use checksums |
b4c19ad60be2292d64bdaeaf3945eb3acb1e1406dd94d41b2f71435ce6c98d30
|
| 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 logRelease files / parro_api_client-0.5.0-py3-none-any.whl
| Download URL | parro_api_client-0.5.0-py3-none-any.whl |
|---|---|
| Size | 101.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a66c35e5378dedd57852311a6668200303860ead497e4e68d80f29d05dc6361
|
|
BLAKE2b-256 checksum How to use checksums |
0ee75543f1d696d330edcef55873c44125172160e21bc082eb0de2731d453fb9
|
| 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 logSecurity for parro-api-client 0.5.0
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.
Attestation for parro_api_client-0.5.0.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 logA 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.