---
title: GitLab MCP Prompt Library
description: "Ready-to-use prompts for GitLab MCP Server. Copy-paste examples for code review, CI/CD debugging, project management, and role-based workflows. Get the best results from your AI assistant."
head:
- - meta
- name: keywords
content: gitlab mcp prompts, ai code review, ci/cd automation, project management, merge request workflow, gitlab ai assistant
---
# GitLab MCP Prompt Library
Get the best results from GitLab MCP by using well-crafted prompts. This library provides ready-to-use examples organized by workflow.
## How to Get the Best Output
1. **Be specific about the project** — Use full paths: `my-org/backend-api`
2. **Specify the action** — "List", "Create", "Review", "Fix", "Debug"
3. **Add context** — "for code review", "before release", "to debug failure"
4. **Chain requests** — Break complex tasks into sequential steps
5. **Use filters** — Narrow results with state, labels, dates, or assignees
## Quick Examples
### Explore
> "Show me recent merge requests in `my-org/frontend` that need review"
> "List all projects in the `backend` group"
### Code Review
> "Get the diff for MR !42 in `my-org/api` and summarize the key changes"
> "Add a suggestion to fix the null check on line 15 of `src/auth.ts`"
### CI/CD
> "Why did the last pipeline fail in `my-org/api`? Show me the error logs"
> "Retry the failed jobs in pipeline #1234"
### Planning
> "List all open issues in milestone 'v2.0' with their assignees"
> "Create an issue for the login bug we discussed, assign it to @alice"
## Browse by Category
- [Quick Start Prompts](/prompts/quick-start/first-steps) — Your first interactions
- [Code Review](/prompts/code-review/review-mr) — Complete review workflows
- [CI/CD](/prompts/ci-cd/debug-failure) — Pipeline and deployment
- [Project Management](/prompts/project-management/sprint-planning) — Issues, milestones, releases
## Browse by Role
- [Developer](/prompts/by-role/developer) — Code, MRs, pipelines
- [DevOps](/prompts/by-role/devops) — Infrastructure, CI/CD, integrations
- [Team Lead](/prompts/by-role/team-lead) — Reviews, planning, team management
- [Product Manager](/prompts/by-role/pm) — Work items, milestones, releases