SciNet MCP servers
The SciNet MCP servers provide read-only access to SciNet and Alliance HPC data through the Model Context Protocol (MCP). An MCP-capable client, such as an AI agent or a desktop assistant, calls tools on the server to look up jobs, allocations, documentation, and files.
The servers are a tool-access layer, not an inference service. They do not host or serve a language model and do not generate text. Your client supplies the model; the server supplies the data.
Who can use them¶
Anyone with an Alliance account can sign in to the SciNet token portal and mint a token. Access to each server's data still depends on your entitlements:
/jobs,/status,/ccdb, and/docsrequire an Alliance account./files,/slurm/trillium, and/slurm/trillium-gpurequire Trillium access./slurm/balamrequires Balam membership (lcl_balam) and current Trillium access.
A token identifies you. It does not grant access. Requests for data you are not entitled to are refused.
Endpoints¶
All endpoints use streamable HTTP over HTTPS. Use the route exactly as shown; these servers serve MCP at the route itself, so do not append /mcp.
| Endpoint | Service ID | Data | Access |
|---|---|---|---|
https://mcp.scinet.utoronto.ca/jobs |
jobs |
Job history, accounting, efficiency, queue and wait estimates | Alliance account |
https://mcp.scinet.utoronto.ca/status |
status |
Allocations, usage, shares, quotas, cluster status, login-node load | Alliance account |
https://mcp.scinet.utoronto.ca/ccdb |
ccdb |
CCDB allocations and resource allocation projects | Alliance account |
https://mcp.scinet.utoronto.ca/docs |
docs |
Alliance and SciNet documentation search and page content | Alliance account |
https://mcp.scinet.utoronto.ca/files |
file-mcp |
Read-only access to your home, scratch, and project files | Trillium access |
https://mcp.scinet.utoronto.ca/slurm/trillium |
slurm-trillium |
Live Slurm state on Trillium | Trillium access |
https://mcp.scinet.utoronto.ca/slurm/trillium-gpu |
slurm-trillium-gpu |
Live Slurm state on Trillium-GPU | Trillium access |
https://mcp.scinet.utoronto.ca/slurm/balam |
slurm-balam |
Live Slurm state on Balam | lcl_balam and Trillium access |
The MCP handshake and tool listing are public. Every tools/call requires a credential and returns 401 Unauthorized without one. A credential that is present but invalid fails at the handshake. Some MCP servers use a /mcp suffix; these do not. Use the route exactly as shown.
Authentication¶
Use a SciNet MCP API token. It is a self-contained credential in the form fmcpv1.*, bound to your Alliance username and to one server. Mint one token for each server you use.
The portal at token.scinet.utoronto.ca is a SciNet service. It issues tokens for these MCP servers only; it is not a general Alliance token service.
To mint a token:
- Go to token.scinet.utoronto.ca.
- Sign in with your Alliance account.
- Select the service. Slurm entries appear only if you have access to that cluster.
- Choose a lifetime and, optionally, a name. The default is 30 days; the maximum is 365 days.
- Copy the token when it is shown. It is not shown again.
Warning
Store the token in an environment variable or a secret store. Do not commit it, paste it into a prompt, or include it in a support ticket.
Each token works on one endpoint. A token minted for /jobs does not work on /status.
Revoke a token from the same page when you no longer need it. Revocation takes effect without waiting for the token to expire.
Authentication is not authorization¶
A valid credential proves who you are. It does not grant access to a cluster, an allocation, or another user's data. Each tool applies the same entitlement checks as the corresponding SciNet service. A valid token can still receive 403 Forbidden, an empty result, or a structured refusal.
There are no per-tool scopes. The token is bound to one server; the tools on that server then enforce your permissions.
Connecting a client¶
Your client must support MCP over streamable HTTP and a custom Authorization header. A client that cannot set a header cannot use a SciNet MCP API token.
Generic configuration¶
Most clients accept a JSON configuration like this. The exact key names vary; check your client's documentation.
{
"mcpServers": {
"scinet-jobs": {
"type": "http",
"url": "https://mcp.scinet.utoronto.ca/jobs",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
Some clients use servers instead of mcpServers, or streamableHttp instead of http. If your client supports environment substitution, use it instead of pasting the token into the file.
Claude Code¶
Claude Code connects natively to these servers over streamable HTTP. Mint a SciNet MCP API token for the endpoint, then add the server with the token in an Authorization header. For installing Claude Code itself, see Getting started with Claude on Alliance clusters.
1. Mint a token for the endpoint in the token portal.
2. Put it in a shell variable without leaving it in your history:
The shell waits for input. Paste the token and press Enter; it is not echoed and is not written to your shell history.
3. Add the server.
claude mcp add --transport http --scope user scinet-jobs \
https://mcp.scinet.utoronto.ca/jobs \
--header "Authorization: Bearer $MCP_TOKEN"
--scope user makes the server available in every project. Omit it to limit the entry to the current project.
4. Remove the variable.
5. Check the connection.
scinet-jobs should show ✔ Connected.
6. Call a tool. Start claude, run /mcp, and ask a question that uses the server, for example "Show my five most recent jobs."
A successful connection alone does not prove the token works. The handshake and tool listing are public; only the tool call authenticates. If the connection succeeds but every tool call returns 401, the header is missing or the token is wrong.
Claude Code stores the header in ~/.claude.json. Protect that file as a credential: do not commit it, sync it, or copy it to a shared account. Revoke the token in the portal when you no longer need it.
Each token is bound to one endpoint. For another server, mint another token and add another entry:
read -rs MCP_TOKEN
claude mcp add --transport http --scope user scinet-slurm-trillium \
https://mcp.scinet.utoronto.ca/slurm/trillium \
--header "Authorization: Bearer $MCP_TOKEN"
unset MCP_TOKEN
To remove an entry, run claude mcp remove scinet-jobs. Removing the entry deletes the stored header but does not revoke the token; revoke it in the portal as well.
The current flags are documented in the Claude Code MCP documentation. Check claude mcp add --help if your version differs.
Claude Desktop's remote custom connector can also send request headers, but that feature is in beta and available only to a limited set of organizations. It is intended for a credential shared by everyone who uses the connector, not for per-user tokens. The Claude Code recipe above is the per-user path documented here.
Test with curl¶
This request checks that the endpoint is reachable, without any client library:
curl -sS -X POST https://mcp.scinet.utoronto.ca/jobs \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"my-client","version":"0"}}}'
A 200 response with a JSON-RPC result means the endpoint is reachable. It does not prove the token works: the handshake is public and succeeds without a token. A tools/call with a valid token is the real test; without one it returns 401. With a token that is present but invalid, the handshake itself returns 401.
A raw HTTP client must send the Mcp-Session-Id returned by initialize on later requests. MCP client libraries handle this for you.
Tools¶
Tool names are case-sensitive. The tables list the user-facing tools. Staff-only tools are not available to general users.
Tool catalogue last verified: 2026-11-20.
Jobs (/jobs)¶
| Tool | Returns |
|---|---|
get_my_recent_jobs |
Your recent accounting rows, newest first, with paging. |
get_job_details |
One of your jobs, with the recorded command, environment, and script when available. |
get_my_job_utilization |
CPU and GPU utilization for your jobs, in time buckets. |
get_job_efficiency |
CPU and memory efficiency, wasted core-hours, and allocated resources. |
get_job_run_history |
Per-submission history for one job name. |
get_job_gpu_diagnostics |
Per-node and per-GPU DCGM metrics for one of your jobs. |
get_job_status |
One job's state, exit code, timings, resources, and derived efficiency. |
get_account_usage |
Core-hour and GPU-hour usage by cluster, account, and QoS. |
get_my_queue |
Your queued rows recorded in accounting, longest wait first. |
queue_outlook |
Backlog, queue position, and a wait estimate for one queued job. |
get_my_queue and queue_outlook read the accounting table, which does not contain most queued jobs. For the live queue, use list_active_jobs or count_jobs_in_queue on a Slurm endpoint.
Status (/status)¶
| Tool | Returns |
|---|---|
get_user_allocations |
The allocation names you belong to, by cluster. |
get_allocation_usage |
An account's cores and percentage used, by cluster. |
get_allocation_sshare |
An account's per-user share fractions, by cluster. |
get_disk_usage |
Quota usage for one filesystem entry. |
get_cluster_status |
A cluster's live scheduler and health snapshot. |
get_login_node_load |
Load, CPU, and memory on the login nodes. |
get_catalog |
The cluster and filesystem names the server accepts. |
get_user_overview |
Your accounts, usage, shares, and quotas in one call. |
CCDB (/ccdb)¶
| Tool | Returns |
|---|---|
get_CCDB_allocations_from_username |
Your allocation projects, RAP identifiers, and profile fields. |
get_CCDB_resource_allocation_project_details_from_RAP |
Details for one resource allocation project (RAP). |
Non-staff callers can query only their own record. Staff can query other users.
Slurm (/slurm/trillium, /slurm/trillium-gpu, /slurm/balam)¶
| Tool | Returns |
|---|---|
get_cluster_summary |
Partitions, node counts, and a queue snapshot. |
list_partitions |
Partitions, time limits, and GRES. |
list_nodes |
A per-partition node rollup, or paged node rows. |
get_node |
One node, a list, or a Slurm hostlist. |
list_reservations |
Reservations and their windows. |
list_active_jobs |
Live squeue rows. |
count_jobs_in_queue |
Queue counts by state and partition. |
list_slurm_accounts |
Accounts you may submit under, with association details. |
get_job |
One job, array element, or job step. |
list_job_history |
Finished jobs in a time range, newest first. |
get_accounting_summary |
Finished-job totals for a time window. |
Without a user filter, list_active_jobs requires staff access; otherwise it returns your jobs. count_jobs_in_queue and the cluster-wide node and partition tools are open to any authenticated caller.
Documentation (/docs)¶
| Tool | Returns |
|---|---|
search_alliance_docs |
Search Alliance and SciNet documentation. |
list_alliance_docs_categories |
List documentation categories. |
get_alliance_page_by_title |
Find a page and return its metadata. |
get_alliance_page_info |
Metadata for one page. |
list_all_alliance_pages |
A paged directory of pages. |
get_alliance_page_content |
The full content of a page, or one section. |
All six accept a site argument for the Alliance or SciNet wiki.
Files (/files)¶
| Tool | Returns |
|---|---|
read_file |
Read one file. |
read_multiple_files |
Read several files in one call. |
list_directory |
List a directory. |
list_user_directory |
List a user's directory by filesystem. |
search_files |
Find files by name pattern. |
get_file_info |
Metadata for one file or directory. |
get_directory_size |
Size of a directory. |
list_allowed_directories |
The roots you may read. |
Paths are restricted to your home, scratch, and project roots. Reads are capped at about 1 MB per file by default. The server is read-only.
Limits¶
- Read-only. There is no job submission, cancellation, file write, or delete tool.
- Self-scoped. Tools return your data. Staff tools are separately gated, and cross-user file access requires the other user's consent.
- Paged. Tools that can return large results report
total_matching,returned,truncated, andnext_offset. Uselimitandoffset. - Accounting lag. The
/jobstools are snapshots. Checkas_ofanddata_through. Use/slurm/*for live state. - Payload caps. Some tools cap the response size and trim at a row boundary;
truncatedandnext_offsettell you what was cut. - No live module catalogue. The
/docstools search documentation; they do not query the installed module tree.
Security¶
Warning
Treat a token as a password.
- Never put a token in a prompt, a support ticket, a screenshot, a URL, shell history, or a committed file.
- Use an environment variable, a secret store, or a client configuration file that only you can read.
- Mint one token per server, and revoke tokens you no longer use.
- If a token appears in a prompt or a public place, revoke it and mint a new one.
Every tool call is logged for audit with the account, tool, target, outcome, and duration. Tool arguments such as paths and search terms may be logged. File contents are not.
If you suspect a token has leaked, revoke it at token.scinet.utoronto.ca and contact support.
Troubleshooting¶
| Symptom | Likely cause | What to try |
|---|---|---|
401 Unauthorized |
Missing, expired, revoked, or wrong-server token; malformed header | Mint a token for this endpoint and send Authorization: Bearer <token>. |
Claude Code shows Connected, but every tool call fails with 401 |
No Authorization header (for example, the server was added without --header) |
Re-add the server with --header and a token for that endpoint. The handshake and tool listing are public, so a connection alone does not test the token. |
Claude Code shows ! Needs authentication |
No Authorization header; Claude Code is looking for a login flow |
Remove and re-add the server with --header and a token for that endpoint. |
403 Forbidden |
Authenticated but not entitled | Check your cluster access, allocation, or Balam membership, and whether you requested another user's data. |
404 Not Found |
Wrong path | Use the endpoint exactly as listed; do not append /mcp. |
unknown_filter |
A partition, account, or user does not match | Use one of the names returned in the error. |
unknown_user |
No accounting record for that username | Check the spelling. A very new account may have no rows yet. |
ambiguous_jobid |
The same numeric ID exists on more than one cluster | Prefix it with tric:, trig:, or balam:. |
| An empty Slurm result | No jobs match the filter, or you have no association on that cluster | Check the filter, then list_slurm_accounts and your CCDB access. |
| Stale accounting rows | Ingest lag | Check as_of and data_through; use /slurm/* for live state. |
| A token works on one endpoint but not another | Tokens are bound to one server | Mint a token for the other server. |
Status and support¶
- Alliance service status: status.alliancecan.ca
- Email:
support@scinet.utoronto.ca - SciNet documentation: docs.scinet.utoronto.ca
Include the endpoint, the tool name, the approximate time, and the error code. Do not include the token.