# GitLab Merge Request Integration

Interact seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add kopfrechner/gitlab-mr-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list kopfrechner/gitlab-mr-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get kopfrechner/gitlab-mr-mcp get_projects

# Call a tool
npx -y @smithery/cli@latest tool call kopfrechner/gitlab-mr-mcp get_projects '{}'
```

## Tools (10)

- `get_projects` — Get a list of projects with id, name, description, web_url and other useful information.
- `list_open_merge_requests` — Lists all open merge requests in the project
- `get_merge_request_details` — Get details about a specific merge request of a project like title, source-branch, target-branch, web_url, ...
- `get_merge_request_comments` — Get general and file diff comments of a certain merge request
- `add_merge_request_comment` — Add a general comment to a merge request
- `add_merge_request_diff_comment` — Add a comment of a merge request at a specific line in a file diff
- `get_merge_request_diff` — Get the file diffs of a certain merge request
- `get_issue_details` — Get details of an issue within a certain project
- `set_merge_request_description` — Set the description of a merge request
- `set_merge_request_title` — Set the title of a merge request

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get kopfrechner/gitlab-mr-mcp <tool-name>
```

---

Source: https://github.com/kopfrechner/gitlab-mr-mcp
