gitlab-mr-mcp
by kopfrechner·★ 89·Score 47
GitLab MR MCP server allows AI agents to interact with GitLab repositories to manage merge requests and issues.
Overview
This MCP server provides a comprehensive set of tools for interacting with GitLab repositories. It enables AI agents to list projects, fetch merge request details and comments, add comments (including line-specific comments), get diffs, manage issue details, and modify merge request titles and descriptions. The server is well-documented with clear examples of all available tools and their usage patterns.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when you need AI agents to interact with GitLab repositories to manage merge requests and issues, particularly if you're already using GitLab as your primary code collaboration platform.
When NOT to choose this
Don't choose this if you need deep integration with GitHub repositories instead of GitLab, or if you require extensive project management features beyond merge requests and issues.
Tools this server exposes
10 tools extracted from the READMEget_projectsGets a list of GitLab projects accessible with your token.
list_open_merge_requestsLists all open merge requests in the specified project.
get_merge_request_detailsGets detailed information about a specific merge request.
get_merge_request_commentsGets comments from a specific merge request, including discussion notes and diff notes.
add_merge_request_commentAdds a general comment to a merge request.
add_merge_request_diff_commentAdds a comment to a specific line in a file within a merge request.
get_merge_request_diffGets the diff for a merge request.
get_issue_detailsGets detailed information about a specific issue.
set_merge_request_titleSet the title of a merge request.
set_merge_request_descriptionSet the description of a merge request.
Comparable tools
Installation
Installation
Using Smithery (Recommended)
npx -y @smithery/cli@latest install @kopfrechner/gitlab-mr-mcp --client claude --config '{"gitlabMrMcpToken":"YOUR_GITLAB_TOKEN", "gitlabMrMcpHost": "YOUR_GITLAB_HOST"}'Manual Installation
- Clone the repository:
git clone https://github.com/kopfrechner/gitlab-mr-mcp.git - Install dependencies:
npm install - Configure your MCP client (e.g., Claude Desktop) with:
{
"mcpServers": {
"gitlab-mr-mcp": {
"command": "node",
"args": ["/path/to/gitlab-mr-mcp/index.js"],
"env": {
"MR_MCP_GITLAB_TOKEN": "your_gitlab_token",
"MR_MCP_GITLAB_HOST": "your_gitlab_host"
}
}
}
}FAQ
- What permissions do I need for my GitLab token?
- Your GitLab token needs API access scopes (api, read_api) and proper access to the projects you want to interact with.
- Can I use this with self-hosted GitLab instances?
- Yes, you can use this with self-hosted GitLab by setting the MR_MCP_GITLAB_HOST environment variable to your GitLab instance URL.
Compare gitlab-mr-mcp with
Last updated · Auto-generated from public README + GitHub signals.