# MCP server

> Connect Claude, ChatGPT, Claude Code, Cursor or any MCP client to a student's Chat2L courses.

Source: https://www.chat2l.com/docs/mcp

Chat2L runs a remote [Model Context Protocol](https://modelcontextprotocol.io) server. Once connected, an AI app can search and read the student's course files, check deadlines and announcements, and see slides as images. Every tool is read only.

```text
https://www.chat2l.com/mcp
```

The server uses the Streamable HTTP transport and OAuth 2.1 sign-in, so there is nothing to install and no key to paste.

## Connect Claude

1. In Claude, open **Settings**, then **Connectors**.
2. Choose **Add custom connector**.
3. Name it Chat2L and paste `https://www.chat2l.com/mcp`.
4. Choose **Add**, then **Connect**, and sign in to Chat2L.

This works in Claude on the web, desktop and mobile.

## Connect ChatGPT

1. In ChatGPT on the web, open **Settings**, then **Apps & Connectors**, then **Advanced**, and turn on **Developer mode**.
2. In **Apps & Connectors**, choose **Create**.
3. Enter Chat2L as the name, `https://www.chat2l.com/mcp` as the MCP server URL, and OAuth for authentication.
4. Save, then sign in to Chat2L and allow access.

## Connect Claude Code

```bash
claude mcp add --transport http chat2l https://www.chat2l.com/mcp
```

Then run `/mcp` inside Claude Code and choose Chat2L to sign in.

## Connect Cursor and other clients

Any client that supports remote MCP servers with OAuth can connect. For clients configured with JSON, such as Cursor:

```json
{
  "mcpServers": {
    "chat2l": { "url": "https://www.chat2l.com/mcp" }
  }
}
```

## Authentication

Clients discover sign-in from the server:

- `https://www.chat2l.com/.well-known/oauth-protected-resource` names the authorization server.
- Clients register themselves with dynamic client registration, then sign the student in with the authorization code flow and PKCE.
- A request without a valid token gets `401` with a `WWW-Authenticate` header pointing at that metadata.

Students see which apps are connected on the [Connections](/connections) page in Chat2L, and can disconnect any of them there.

## Tools

| Tool | What it does |
| --- | --- |
| `listCourses` | The student's courses, with names and codes |
| `listCourseContent` | A course's modules and files |
| `listAnnouncements` | Professor announcements, per course or across all of them |
| `searchDocuments` | Searches the text of course files and returns cited passages |
| `readDocument` | Reads one file, or a page range of it. Long files come back as an outline first |
| `readDocuments` | Reads several files in one call |
| `viewPage` | Shows up to 4 pages of a file as images, for diagrams and charts |
| `listLectures` | The class schedule |
| `listDeadlines` | Assignments and quizzes with due dates (Chat2L Plus) |
| `getStarted` | The student's name, school, plan, courses and when they last synced |
| `getBriefing` | Today's and tomorrow's classes, what is due, and what is new |

Every tool is marked read only, non-destructive and idempotent in its MCP annotations. Results are plain text written for a model, with document titles and page numbers to cite.

## Prompts

The server also offers ready-made prompts that clients can show as shortcuts:

| Prompt | Asks for |
| --- | --- |
| `whats-due` | Every deadline this week, soonest first |
| `plan-today` | A plan for today from deadlines and classes |
| `exam-coverage` | What an exam covers, its format, and how to study for it |
| `summarize-lecture` | A summary of a lecture or week from the real slides |
| `practice-test` | Practice questions shaped like the real test |
| `catch-up` | Teaches a class the student missed, step by step |

## Limits

| Limit | Value |
| --- | --- |
| `searchDocuments` | 60 calls per minute per student |
| `viewPage` | 20 calls per minute per student, up to 4 pages each |

A tool over its limit returns an error result saying so, and the model can try again a minute later.

## Privacy

The server sees only the signed-in student's own courses. Course text is treated as data: the server's instructions tell the model that text inside documents and announcements is course material, never instructions. Chat2L logs which tools were called and the size of each answer, not the answer text.
