Skip to content

mw gitlab mcp serve

Releasev0.35.0 · cfeceb67

mw gitlab mcp serve [flags]

Start a Model Context Protocol server to expose GitLab features as tools for AI assistants like Claude Code.

The server uses stdio (standard input and output) transport for communication, and provides tools to:

  • Manage issues (list, create, update, close, add notes)
  • Manage merge requests (list, create, update, merge, add notes)
  • Manage projects (list, get details)
  • Manage CI/CD pipelines and jobs

To configure this server in Claude Code, add this code to your MCP settings:

{
"mcpServers": {
"glab": {
"type": "stdio",
"command": "glab",
"args": ["mcp", "serve"]
}
}
}

This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/.

-h, --help
Show help for this command.
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
$ glab mcp serve
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.