Authmarks MCP server for AI agents (India): connect Claude Code, Cursor and others
For developers and university IT cells in India: connect AI agents to Authmarks through the Model Context Protocol, with the read-only MCP endpoint, its tools and scopes, set-up for Claude Code, Cursor and mcp-remote, sample prompts and troubleshooting.
Published 2026-11-26 · 6 min read
| Endpoint | https://www.authmarks.com/api/mcp |
|---|---|
| Transport | MCP Streamable HTTP, stateless, JSON responses |
| Protocol versions | 2025-06-18 and 2025-03-26 |
| Auth | Bearer token (amk_ organisation API token) |
| Tools | Six, every one read-only |
What you get: a read-only MCP server through which an AI agent can answer questions about your Authmarks organisation, for instance "which LMS connections are waiting for approval?" or "which grade returns failed this week?", without your team writing any API code. The Model Context Protocol (MCP) is an open standard that allows AI applications to call external tools through a single shared interface. The Authmarks server offers the same data as the REST API, protected by the same organisation token and scopes, and it has no tool that changes anything.
Endpoint and transport
| Item | Value |
|---|---|
| URL | POST https://www.authmarks.com/api/mcp |
| Transport | MCP Streamable HTTP, stateless. Every request stands on its own; no session id is used. |
| Responses | application/json. No SSE stream is opened by the server. |
| Protocol versions | 2025-06-18 and 2025-03-26 |
| Methods | initialize, notifications/initialized (replies 202), ping, tools/list, tools/call |
| Other HTTP methods | GET and DELETE both reply 405 |
| Auth | Authorization: Bearer amk_… on each request |
| Limits | Request body of up to 64 KB, a single JSON-RPC message per request (batches are not accepted), 600 requests a minute for each token |
Tools
Each tool is read-only and requires the scope listed. Results are returned as text content and also as structuredContent, so that agents can read the fields directly.
| Tool | Inputs | Returns | Scope |
|---|---|---|---|
list_lms_connections | none | LMS connections, with id, label, issuer, client_id, product, status (pending, active, disabled), source, deployments, created_at, approved_at | lms_read |
list_grade_returns | connection_id (required), limit, cursor | Grade returns, with id, resource_link_id, lineitem, activity_progress, grading_progress, status (sent, failed), created_at, and next_cursor | lms_read |
list_assignments | limit, cursor | Assignments, with id, title, status, course_id, module_id, starts_at, due_at, created_at, and next_cursor | assignments_read |
list_submissions | assignment_id (required), limit, cursor | Submissions, with student (id, name, email), document_id, sealed, record_id, sealed_at, record_url, and next_cursor | records_read |
get_record | record_id (required) | A single record, with id, document_id, sealed_at, content_sha256, record_url, verify_url | records_read |
verify_hash | sha256 (required, 64 hex characters) | The same answer that the public verify-by-hash check gives | any valid token |
limit runs from 1 to 200 (default 50). What each field means is set out in the API reference. No tool returns scores, percentages or detector output.
Step 1: create a token for the agent
Give each agent a token of its own, carrying only the scopes its work requires:
- Open Settings → Developers → API tokens (available to owners and admins).
- Create a token labelled with the agent and the person responsible, such as
agent-claude-code-jlee. - Choose the scopes. For LMS questions alone,
lms_readis sufficient. Addrecords_readonly when the agent needs student submissions. - Set an expiry that matches how long the agent will be in use.
- Copy the token (it is shown only once) into an environment variable:
export AUTHMARKS_TOKEN="amk_paste_your_token_here"
The Developers tab also displays these set-up snippets with your organisation already filled in.
Step 2: connect your client
Claude Code
claude mcp add --transport http authmarks https://www.authmarks.com/api/mcp --header "Authorization: Bearer $AUTHMARKS_TOKEN"
Run /mcp within Claude Code to confirm that authmarks is connected and that all six of its tools are listed.
Cursor
Create .cursor/mcp.json inside your project (or ~/.cursor/mcp.json to cover every project):
{
"mcpServers": {
"authmarks": {
"url": "https://www.authmarks.com/api/mcp",
"headers": { "Authorization": "Bearer ${env:AUTHMARKS_TOKEN}" }
}
}
}
${env:AUTHMARKS_TOKEN} picks up the token from your environment, so the file contains no secret and can safely be committed. Restart Cursor once the variable is set.
Any other client (mcp-remote)
Clients that can launch only local (stdio) servers, or that cannot send custom headers, can go through the mcp-remote bridge:
npx mcp-remote https://www.authmarks.com/api/mcp --header "Authorization:Bearer ${AUTHMARKS_TOKEN}"
Within a JSON client configuration, this becomes:
{
"mcpServers": {
"authmarks": {
"command": "npx",
"args": ["mcp-remote", "https://www.authmarks.com/api/mcp", "--header", "Authorization:Bearer ${AUTHMARKS_TOKEN}"],
"env": { "AUTHMARKS_TOKEN": "amk_paste_your_token_here" }
}
}
}
Note that there is no space after Authorization: in the bridge's argument, because some clients split arguments at spaces. If your client keeps the env block in a shared file, set the variable in your shell instead.
Test it with curl
You can call the server yourself to see precisely what an agent receives:
curl -sS https://www.authmarks.com/api/mcp \
-H "Authorization: Bearer $AUTHMARKS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'
curl -sS https://www.authmarks.com/api/mcp \
-H "Authorization: Bearer $AUTHMARKS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-06-18" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"list_lms_connections","arguments":{}}}'
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"content": [{ "type": "text", "text": "{\"data\":[{\"id\":\"lc_9a8b7c6d\",\"label\":\"Moodle staging\",\"status\":\"pending\"}],\"next_cursor\":null}" }],
"structuredContent": {
"data": [
{
"id": "lc_9a8b7c6d",
"label": "Moodle staging",
"issuer": "https://moodle.example.edu",
"client_id": "ZqP3x0aBcD",
"product": "moodle",
"status": "pending",
"source": "dynamic",
"deployments": [],
"created_at": "2026-11-24T16:40:00Z",
"approved_at": null
}
],
"next_cursor": null
}
}
}
The text content shown above has been shortened for this page.
Example prompts
- "Which LMS connections are waiting for approval?"
- "List grade returns that failed this week, grouped by connection."
- "Which assignments are due in the next seven days?"
- "For the assignment 'Essay 2', how many submissions are sealed and how many are not? List the unsealed ones by student name."
- "Get record rec_k9x2_a1_4f8e2c1d9b7a6e5f and give me its verification link."
- "Is this SHA-256 sealed by Authmarks: 9f2c4a1b…?"
The agent chooses which tools to call. Where it lacks a scope, the tool replies with a forbidden error, and a well-behaved agent will tell you which scope is missing.
Safety by design
- Read-only. No write tools exist. The server cannot create, modify or delete anything, so an agent that is confused or manipulated cannot alter your data through it.
- Scoped tokens. Every tool checks the token's scope. A token meant for LMS health cannot read student submissions.
- One organisation. A token reaches only the organisation it belongs to.
- Origin checks. A browser request whose
Originheader is anything other than the Authmarks site is refused, which blocks DNS-rebinding attacks launched from web pages. - Small requests. The 64 KB body limit and the absence of batches keep every call easy to audit.
- Revocable. Revoking the token in Settings cuts off the agent's access immediately.
Student names and email addresses are personal data. In India, the Digital Personal Data Protection Act, 2023 sets out duties for organisations that process digital personal data, and your institution's advisers decide how it applies to agent use. Grant records_read only to agents that need it, and bear in mind that anything a tool returns becomes part of the agent's conversation with its model provider. See Building with AI agents and Security for integrations.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
401 on every call | The header is absent, or the token is incorrect, revoked or expired. Confirm that the environment variable is set in the shell that launched the client (echo ${AUTHMARKS_TOKEN:0:4} should print amk_). |
A tool replies forbidden (403) | The token does not carry that tool's scope, or the plan does not include LTI for lms_read. Create a token with the scope. |
429 | More than 600 requests a minute on this token. Wait for Retry-After seconds, and ask the agent to use limit=200 rather than many small pages. |
405 | The client sent GET (an SSE stream) or DELETE (end of session). This server is stateless and JSON-only; current clients switch to POST on their own. Update the client if yours does not. |
| Unsupported protocol version | Use a client that supports 2025-06-18 or 2025-03-26. |
400 or a parse error | The body exceeds 64 KB, is not JSON, or is a JSON-RPC batch (an array). Send a single message per request. |
| Refused from a browser-based tool | The request carried an Origin header from a different site. Call the server from a desktop client, a server or mcp-remote. |
| The tools list is empty | The client never completed initialize. Remove the server and add it again, then check /mcp (Claude Code) or the MCP settings in Cursor. |
Related pages
Sources
- Model Context Protocol specification (2025-06-18) — as of 2026-11-26
- MCP Streamable HTTP transport — as of 2026-11-26
- Claude Code MCP documentation — as of 2026-11-26
- Cursor MCP documentation — as of 2026-11-26
- mcp-remote on npm — as of 2026-11-26
Change notes
- 2026-11-26 — First published.
Spotted an error? Email sales@authmarks.com and we will correct the page and date the correction.