Skip to content

Connecting to MCTL MCP Server

Connect your AI assistant to MCTL to manage infrastructure through natural language.

Prerequisites

  1. A GitHub account with access to an MCTL organization
  2. An AI client that supports MCP (Claude, Cursor, VS Code, etc.)

Setup

Authenticate with GitHub and get a ready-to-use config for your client.

Get your token

Authenticate with GitHub to get a pre-filled config for your developer client.

Access requires membership in a team workspace.
Not added yet? Request access from your platform admin.

Get your token

Permissions requested: read your username and avatar (read:user) and verified email (user:email).
No access to your code, repositories, or organizations. See our Privacy Policy.

or

Get via CLI: gh auth token

Claude.ai → Settings → Connectors → Add custom connector

Remote MCP server URL
https://api.mctl.ai/mcp
OAuth Client ID
mctl-connector
Client Secret
Leave empty (PKCE)

Click Connect — GitHub will open for sign-in, then you'll be returned to Claude automatically. No token needed.

Verifying Connection

After connecting, try a simple command:

"Who am I on MCTL?"

This calls the mctl_whoami tool and returns your identity, organization, and tenant access.

Token Types

MCTL accepts three token types. The API auto-detects the type:

Token formatTypeHow to get
No dots (e.g. ghp_abc123)GitHub PATGitHub Settings > Tokens
2 dots, external issuerDex JWTSSO login at ops.mctl.ai
2 dots, self-issuedOAuth JWTOAuth flow on this page (sign in above)

Troubleshooting

See the Troubleshooting page for common connection issues.