π GitLab MR MCP
@kopfrechner
About π GitLab MR MCP
Interact seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"gitlab-mr-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"install",
"@kopfrechner/gitlab-mr-mcp",
"--client",
"claude",
"--config",
"\"{\"gitlabMrMcpToken\":\"YOUR_GITLAB_TOKEN\", \"gitlabMrMcpHost\": \"YOUR_GITLAB_HOST\"}\""
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is π GitLab MR MCP?
π GitLab MR MCP is a Model Context Protocol (MCP) server that enables AI agents to interact with GitLab repositories. It provides tools for reading and modifying merge requests and issues, making it useful for developers and automation workflows that need AI-assisted code review and project management.
How to use π GitLab MR MCP?
Install via Smithery (npx @smithery/cli install @kopfrechner/gitlab-mr-mcp) or manually by cloning the repository and adding the server configuration to your MCP client. The server requires environment variables MR_MCP_GITLAB_TOKEN and MR_MCP_GITLAB_HOST to authenticate with your GitLab instance. Optional variables MR_MCP_MIN_ACCESS_LEVEL and MR_MCP_PROJECT_SEARCH_TERM can filter accessible projects.
Key features of π GitLab MR MCP
- List accessible GitLab projects
- View open merge requests and detailed information
- Retrieve and add general comments to merge requests
- Get merge request diffs and add line-specific comments
- Fetch issue details
- Modify merge request title and description
Use cases of π GitLab MR MCP
- AI agent reviewing open merge requests and providing feedback
- Automatically adding comments or summaries to code diffs
- Assisting developers with issue triage from chat or coding assistants
- Generating release notes by querying merge request details
- Updating merge request metadata in bulk via automation
FAQ from π GitLab MR MCP
What does π GitLab MR MCP do?
It allows AI agents to list, read, comment on, and modify GitLab merge requests and issues using the Model Context Protocol. It covers tasks like viewing diffs, adding line-specific comments, and changing titles or descriptions.
What are the prerequisites?
Node.js, a GitLab personal access token with api or read_api scope, and the host URL of your GitLab instance. You also need the project ID(s) you wish to access.
How do I install and configure it?
You can install via Smithery or manually. For manual setup, clone the repository, run npm install, then add the server to your MCP client configuration with command: "node", args: ["/path/to/index.js"], and environment variables MR_MCP_GITLAB_TOKEN and MR_MCP_GITLAB_HOST.
How do I troubleshoot permission errors?
Ensure your GitLab token has the required scopes (api, read_api), the tokenβs user has the correct access level to the projects, and the project IDs are accurate.
What tools are available?
The server provides tools such as get_projects, list_open_merge_requests, get_merge_request_details, get_merge_request_comments, add_merge_request_comment, add_merge_request_diff_comment, get_merge_request_diff, get_issue_details, set_merge_request_title, and set_merge_request_description.
More Version Control MCP servers
Test
skillsCreate a site or blog from your GitHub repositories with GitHub Pages.
mcp-github-trending MCP Server
hetaoBackendMCP server for getting github trending repos & developers
GitMCP
idosalPut an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project

GitLab
modelcontextprotocolModel Context Protocol Servers
Github Mcp Server
githubGitHub's official MCP Server
Comments