schoology-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@schoology-mcpshow my current grades"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Schoology MCP
An MCP server for PAUSD Schoology (https://pausd.schoology.com). It drives
a headless browser that logs in automatically through the ClassLink portal
and exposes tools to fetch grades, upcoming assignments and recent posts.
It builds on the scraping approach from dajun666/schoology-get (Playwright +
BeautifulSoup), and adds the missing piece: automated login — no more
hand-exporting cookies.json.
How login works
PAUSD students reach Schoology through ClassLink. The server:
Opens
https://launchpad.classlink.com/pausdand fills the student ID + password.Clicks the Schoology tile, which performs SAML SSO into Schoology.
Saves the session to
storage_state.jsonso later runs skip the login until it expires (then it logs in again automatically).
Related MCP server: canvas-parent-mcp
Setup
python3 -m venv .venv
source .venv/bin/activate # do this in every new shell
pip install -r requirements.txt
playwright install chromium
cp .env.example .env
# edit .env: set SCHOOLOGY_USERNAME (your 8-digit student ID)
# store the password in the OS keychain -- not in any file:
python scripts/set_credentials.pyThe python … commands below assume this .venv is activated. The MCP server
itself runs outside any shell, so it is registered with the venv's Python by
absolute path — see Register with Claude Code.
Credentials & password storage
The password is never stored in a plaintext file. set_credentials.py
saves it to a keyring (encrypted at rest) via the keyring library, and the
server reads it from there at runtime. The backend is chosen automatically per
platform:
Platform | Backend | Setup |
macOS | Keychain | works out of the box |
Windows desktop | Credential Manager | works out of the box |
Linux desktop | Secret Service (GNOME Keyring / KWallet) | install |
Headless Linux (server, WSL, Docker, cron) | AES-encrypted file ( | set a master passphrase — see below |
Update it later: re-run
python scripts/set_credentials.py.Remove it:
python scripts/set_credentials.py --delete.macOS/Windows may ask once to allow access to the stored item — choose Always Allow so the unattended server isn't blocked.
SCHOOLOGY_USERNAME(the student ID) stays in.env; it is the keyring lookup key, not a secret.Fallback: if you set the
SCHOOLOGY_PASSWORDenvironment variable, it is used instead of the keyring (handy for throwaway/CI use).
Headless Linux (no OS keychain)
There is no OS secret store on a headless box, so use the encrypted-file backend. A master passphrase both selects it and unlocks it:
export SCHOOLOGY_KEYRING_PASS='your-master-passphrase'
python scripts/set_credentials.py # stores to ~/.local/share/schoology-mcp/credentials.cfg (AES)Then run the server with the same SCHOOLOGY_KEYRING_PASS in its
environment — e.g. a systemd EnvironmentFile (perms 600) or the MCP client's
env block. Without the passphrase the server cannot decrypt the file and will
fail with a clear error rather than falling back to plaintext.
Caveat: a keyring protects the password at rest and keeps it out of dotfiles,
backups and git — but any process running as your user can still read it (and
for the encrypted file, anyone who has both the file and the passphrase). It is
strictly better than a plaintext .env, not a sandbox.
Verify login (do this first)
python scripts/login_check.py --show-browserThis logs in, saves storage_state.json, and dumps page HTML into dumps/.
All four parsers are verified against a real PAUSD account (grades, courses,
upcoming assignments, recent posts). If Schoology changes its markup later,
re-run this and re-check the selectors in schoology_mcp/parsers.py against
the fresh dumps/.
Tools
Tool | Description |
| Current grades for every course (periods, categories, assignments). |
| Enrolled courses. |
| Upcoming / due-soon assignments and events. Pass |
| Full details (title, course, due, description, attachments) of one assignment. Takes a URL, |
| Latest posts from the activity feed. |
Run
python server.py # speaks MCP over stdioTest interactively with the MCP Inspector:
npx @modelcontextprotocol/inspector python server.pyRegister with Claude Code
claude mcp add schoology -- /your/path/to/schoology-mcp/.venv/bin/python /your/path/to/schoology-mcp/server.pyOr add it to an MCP client config (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"schoology": {
"command": "/your/path/to/schoology-mcp/.venv/bin/python",
"args": ["/your/path/to/schoology-mcp/server.py"],
"env": {
"SCHOOLOGY_USERNAME": "950XXXXX"
}
}
}
}No password appears in the config — it is read from the OS keychain (set once
via scripts/set_credentials.py). SCHOOLOGY_USERNAME can come from .env or
the env block above.
Sessions & auto-refresh
Schoology sessions expire quickly. The server handles this automatically:
Detect-and-retry — every tool call checks (by page content, not just URL) whether the page it got back is really logged in. If the session died, it re-logs in via ClassLink and retries — a call never silently returns logged-out data.
Keep-alive — a background task re-visits Schoology every
SCHOOLOGY_KEEPALIVE_MINUTES(default 8) to keep the session warm, so interactive calls rarely wait for a fresh login.Persistence — the refreshed session is saved to
storage_state.json, so restarting the server reuses it instead of logging in again.
Set SCHOOLOGY_KEEPALIVE=false to disable the background task; detect-and-retry
still applies.
Notes
.envandstorage_state.jsonhold credentials/session — they are git-ignored. Never commit them.Set
SCHOOLOGY_HEADLESS=falsein.envto watch the browser while debugging.
Contributing
Feature requests and issues are always welcomed — open one on the issue tracker or send a PR.
Forking for your own district
This repo is hard-wired to PAUSD (pausd.schoology.com + the ClassLink
/pausd tenant). It is intentionally easy to retarget: fork the repo and
edit the two URLs (and, if your district doesn't use ClassLink SSO,
schoology_mcp/auth.py).
What to change | Where |
Schoology base URL |
|
ClassLink tenant URL |
|
Login flow (if not ClassLink) |
|
If you ship a working fork for another district, open an issue with a link — we can list known-good forks here.
License
MIT — fork it, ship it, no warranty.
Star History
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dajun666/schoology-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server