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.)
Claude.ai (Web)
The easiest way to connect is through the native Claude.ai MCP connector:
- Visit mctl.ai/mcp
- Click Connect with Claude.ai
- Sign in with GitHub when prompted
- Authorize MCTL to connect to your Claude account
- Start a new conversation in Claude.ai — MCTL tools will be available
Claude Code (CLI)
Add the MCP server to your Claude Code configuration:
json
{
"mcpServers": {
"mctl": {
"type": "streamable-http",
"url": "https://api.mctl.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Get your token by signing in at mctl.ai/mcp.
Cursor
- Open Cursor Settings > MCP
- Add a new MCP server:
- Name:
mctl - Type: Streamable HTTP
- URL:
https://api.mctl.ai/mcp - Headers:
Authorization: Bearer YOUR_TOKEN
- Name:
- Save and restart Cursor
VS Code (Copilot MCP)
Add to your VS Code settings.json:
json
{
"mcp.servers": {
"mctl": {
"type": "streamable-http",
"url": "https://api.mctl.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Getting Your Token
- Visit mctl.ai/mcp
- Sign in with GitHub
- Your token will be displayed on the page
- Copy and use it in the
Authorizationheader
Tokens are GitHub-scoped and inherit your organization membership and permissions.
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.