Connecting to MCTL MCP Server
Connect your AI assistant to MCTL to manage infrastructure through natural language.
Prerequisites
- A GitHub account with access to an MCTL organization
- 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.
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/mcpOAuth Client ID
mctl-connectorClient 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 format | Type | How to get |
|---|---|---|
No dots (e.g. ghp_abc123) | GitHub PAT | GitHub Settings > Tokens |
| 2 dots, external issuer | Dex JWT | SSO login at ops.mctl.ai |
| 2 dots, self-issued | OAuth JWT | OAuth flow on this page (sign in above) |
Troubleshooting
See the Troubleshooting page for common connection issues.