GitLab
gitlab.comGLab is an open source GitLab CLI tool that brings GitLab to the terminal.
What your agent can do
Connect agents to GitLab tools and perform permitted project operations.
Via MCP.
Query and mutate GitLab resources through the versionless GraphQL API.
Via API.
Operate GitLab projects, issues, merge requests, pipelines, groups, and other REST resources.
Via API.
Tasks depend on the interface and permissions.
Connection methods
Choose a route that fits your agent.
MCP
For compatible agent apps
View setup for MCPCLI
For agents with a terminal
OAuth sign-in
Docs checkedView setup for CLIAPI
For custom integrations
OAuth sign-in
View paths for APIMCP connection
MCP server URL
https://gitlab.com/api/v4/mcpCLI connection
CLI package
glab- Authentication
- GLab supports multiple authentication methods including OAuth and personal access tokens.
API connection
Query and mutate GitLab resources through the versionless GraphQL API.
API path
https://gitlab.com/api/graphql- Authentication
- Supply Authorization: Bearer with a correctly scoped token; some public queries work without authentication.
Operate GitLab projects, issues, merge requests, pipelines, groups, and other REST resources.
API path
https://gitlab.com/api/v4View sources and checks
- API · Query and mutate GitLab resources through the versionless GraphQL API.
- API · Operate GitLab projects, issues, merge requests, pipelines, groups, and other REST resources.
- CLI · It brings GitLab to your terminal, next to where you are already working with git and your code, without switching between windows and browser tabs.Checked 13 Oct 2026
- MCP · Connect agents to GitLab tools and perform permitted project operations.