Loading...

GitLab MR MCP enables AI agents to interact with GitLab merge requests and issues, offering tools for reading, commenting, and modifying MRs.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
GitLab MR MCP enables AI agents to interact with GitLab merge requests and issues, offering tools for reading, commenting, and modifying MRs.
This server offers a balance of read and write capabilities for GitLab merge requests. It is relatively safe if the GitLab token is properly scoped and the AI agent using it is well-behaved. However, a compromised token or a poorly designed agent could lead to unwanted modifications of merge requests.
Performance will be affected by the size of the merge requests and the number of API calls made. Consider optimizing the AI agent's logic to minimize API calls.
Cost is primarily determined by the number of API calls made to GitLab. Monitor API usage to avoid unexpected charges.
npx -y @smithery/cli@latest install @kopfrechner/gitlab-mr-mcp --client claude --config '"{\"gitlabMrMcpToken\":\"YOUR_GITLAB_TOKEN\", \"gitlabMrMcpHost\": \"YOUR_GITLAB_HOST\"}"'{
"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"
}
}
}
}MR_MCP_GITLAB_TOKENMR_MCP_GITLAB_HOSTMR_MCP_MIN_ACCESS_LEVELMR_MCP_PROJECT_SEARCH_TERMget_projectsRetrieves a list of GitLab projects accessible with the provided token.
Read-only operation, no modification of data.
list_open_merge_requestsLists all open merge requests in a specified GitLab project.
Read-only operation, no modification of data.
get_merge_request_detailsRetrieves detailed information about a specific merge request.
Read-only operation, no modification of data.
get_merge_request_commentsRetrieves comments from a specific merge request.
Read-only operation, no modification of data.
add_merge_request_commentAdds a general comment to a merge request.
Adds data to the merge request, but does not modify existing code or settings.
add_merge_request_diff_commentAdds a comment to a specific line in a file within a merge request.
Adds data to the merge request, but does not modify existing code or settings.
get_merge_request_diffRetrieves the diff for a merge request.
Read-only operation, no modification of data.
get_issue_detailsRetrieves detailed information about a specific issue.
Read-only operation, no modification of data.
set_merge_request_titleSets the title of a merge request.
Modifies the title of the merge request.
set_merge_request_descriptionSets the description of a merge request.
Modifies the description of the merge request.
Token
cloud
apiread_apiThis server offers a balance of read and write capabilities for GitLab merge requests. It is relatively safe if the GitLab token is properly scoped and the AI agent using it is well-behaved. However, a compromised token or a poorly designed agent could lead to unwanted modifications of merge requests.
The level of autonomy depends on how the AI agent is configured and the permissions granted to the GitLab token. Exercise caution when granting write access.
Production Tip
Monitor the rate of API calls to avoid exceeding GitLab's rate limits.
The token requires 'api' and 'read_api' scopes. Additional scopes may be needed depending on the specific tasks the AI agent will perform.
You can install it manually by cloning the repository, installing dependencies, and configuring your MCP client, or automatically using Smithery.
GitLab will return an error, and the AI agent will need to handle the error and potentially retry the request later.
Yes, you can use it with multiple projects as long as the GitLab token has access to those projects.
The security of the server depends on the security of the GitLab token and the AI agent using it. Ensure the token is properly secured and the agent is well-behaved.
Check that your GitLab token has the proper scopes, the token user has access to the projects, and the project IDs are correct.
No, this server does not appear to have explicit webhook support based on the documentation.