Skip to main content
AI Interface

Use the MCP server

Connect the Mentortools MCP server with OAuth or an API key: Claude, Claude Code, ChatGPT, other clients, connected apps and troubleshooting.

Last updated 4 days ago

Connect an AI app to your academy through the Mentortools MCP server. The server supports OAuth: the app sends you to the Mentortools login, you sign in as the academy owner, choose the permissions and confirm. You do not need to copy an API key. Clients without OAuth still connect with an API key.

Before you start

  1. The academy owner's account. Only the owner can connect apps, and only to their own academy. Team members and students cannot connect apps. If the academy's trial has ended, new connections are not allowed.

  2. An AI app with MCP support. Apps that support MCP authorization (OAuth), such as Claude, do not need an API key.

  3. Only for clients without OAuth: a Mentortools API key from Settings → AI Interface with the permissions needed for your actions, and an MCP client that supports a custom Authorization header for HTTP connections, or a local bridge such as mcp-remote.

Use this exact URL, including the final slash: https://mcp.mentortools.com/mcp/. Omitting the slash can trigger a redirect that breaks the connection.

1. Connect with OAuth

This is how the connection works in every app with OAuth support:

  1. Enter the URL https://mcp.mentortools.com/mcp/ in the app and start the connection.

  2. The app sends you to the Mentortools login. Sign in with the academy owner's account.

  3. Under Permissions, choose what the app can do in your academy: Courses, Mediastorage and Orders, each with Read, Create, Update and Delete. At least one permission is required. Select only the permissions the app really needs.

  4. Click Allow. You are sent back to the app.

The connection request is valid for 10 minutes. If it has expired, start the connection again in the AI app.

Claude (claude.ai, Claude Desktop, Claude mobile, Cowork)

  1. In Claude, open Settings → Connectors → Add custom connector.

  2. Enter Mentortools as the name and https://mcp.mentortools.com/mcp/ as the URL. Leave OAuth Client ID and OAuth Client Secret empty.

  3. Click Add, then Connect.

  4. Sign in to Mentortools with the owner account, choose the permissions and click Allow. You are sent back to Claude.

Claude Code

Add the server without an API key:

claude mcp add --transport http mentortools https://mcp.mentortools.com/mcp/

Then run /mcp in Claude Code, select the mentortools server and choose Authenticate. Your browser opens for the Mentortools login. An API key via --header "Authorization: Bearer …" still works as before, see section 4.

ChatGPT

Apps that support MCP authorization connect with the same URL. In ChatGPT, create a custom connector or app in developer mode with the URL https://mcp.mentortools.com/mcp/ and choose OAuth as the authentication. The login then works as described above.

2. Create an API key (clients without OAuth)

Clients without OAuth support, for example Gemini CLI, Make, n8n or your own scripts, connect with an API key sent as Authorization: Bearer <key>.

In Mentortools, open Settings → AI Interface → Add API key. Select the permissions, save, and copy the displayed key. Course read permission is enough for the first connection test. Keep the key private; do not paste it into chats or screenshots.

3. Enter the URL and authentication

Set the header name to Authorization. Its value must be exactly Bearer YOUR_API_TOKEN: capital B, one space, then the key. Replace only YOUR_API_TOKEN. Do not include angle brackets, quotes, or a second Bearer. For an API key, choose Bearer Token or Custom Header if your client offers an authentication setting. If the client adds the Bearer prefix automatically, enter only the raw key in its token field.

These are the connection values; the surrounding configuration depends on your client:

{
  "type": "http",
  "url": "https://mcp.mentortools.com/mcp/",
  "headers": {
    "Authorization": "Bearer YOUR_API_TOKEN"
  }
}

4. Set up a client with an API key

Claude Code

Replace YOUR_API_TOKEN with your key:

claude mcp add-json mentortools-online '{
  "type": "http",
  "url": "https://mcp.mentortools.com/mcp/",
  "headers": {
    "Authorization": "Bearer YOUR_API_TOKEN"
  }
}'

Check with claude mcp list or /mcp in Claude Code.

Codex CLI

Set the environment variable in the terminal that launches Codex, then add the server to its configuration:

export MENTORTOOLS_API_TOKEN="YOUR_API_TOKEN"

~/.codex/config.toml:

[mcp_servers.mentortools-online]
url = "https://mcp.mentortools.com/mcp/"
bearer_token_env_var = "MENTORTOOLS_API_TOKEN"

Check with codex mcp list. Restart the Codex session after changing the configuration, with the environment variable still set.

Claude Desktop with a local bridge

If you want to connect Claude Desktop with an API key instead of OAuth: depending on the version, Claude Desktop may not send custom headers to a remote HTTP MCP server from its desktop configuration. Use mcp-remote as a local bridge in that case. Install Node.js and npx, add this to the Claude Desktop MCP configuration, and restart Claude Desktop:

{
  "mcpServers": {
    "mentortools-online": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.mentortools.com/mcp/",
        "--header",
        "Authorization: Bearer YOUR_API_TOKEN"
      ]
    }
  }
}

For other clients, use their HTTP MCP settings with the URL and header above. Do not copy one client's complete JSON format into another client.

5. Test the connection

Ask your agent to “List my available Mentortools courses.” First check that the server shows as connected. The tools you can use depend on the permissions of the connected app or the API key. Tools that change or delete data are marked as such, so Claude asks for your confirmation before running them. Not every Mentortools feature has an MCP tool yet; landing page management is not generally available.

6. Manage connected apps

Apps you connected with OAuth are listed under Settings → AI Interface in the Connected apps section, next to your API keys. There you can:

  • use Change permissions to set what an app may do. The change applies immediately; the app does not need to be connected again.

  • use Disconnect to remove an app's connection. To use it again, connect it again from the app.

Troubleshooting

  • “Only the academy owner can connect apps”: Sign in to Mentortools with the academy owner's account. Team members and students cannot connect apps.

  • Link expired: The connection request is valid for only 10 minutes. Start the connection again in the AI app.

  • Trial ended: New connections are not allowed once the academy's trial has ended.

  • Client ID or Secret requested: In Claude, leave OAuth Client ID and OAuth Client Secret empty. Do not put an API key into OAuth Client ID or Secret fields.

  • Immediate connection failure: Check that the URL is exactly https://mcp.mentortools.com/mcp/, including the final slash.

  • 401 / unauthorized: Check the Authorization header, Bearer spelling, one space, and the valid key. In a token field that adds Bearer automatically, enter only the key.

  • A tool answers with 403: The permission is missing. Change it under Settings → AI Interface: for a connected app with Change permissions, otherwise on the API key.

  • A tool is missing: Check the permissions of the app or API key. Some features do not yet have MCP tools.

  • Still failing: Send support your client name, URL without token, time, and error message. Never send the API key.