karankraina/mcp-gitlab
Platform-specific configuration:
{
"mcpServers": {
"mcp-gitlab": {
"command": "npx",
"args": [
"-y",
"mcp-gitlab"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A Model Context Protocol (MCP) server that enables AI assistants to interact with GitLab. This server provides tools to view and manage merge requests, get project information, and perform review actions.
git clone <repository-url>
cd mcp-gitlabnpm installnpm run buildcp sample.env .env
# Edit .env with your GitLab configurationCreate a .env file with the following variables:
GITLAB_URL=https://gitlab.com
GITLAB_TOKEN=your_gitlab_personal_access_token_hereapi - Full API accessread_user - Read user informationread_repository - Read repository informationget-my-merge-requestsGet merge requests created by the current user.
Parameters:
state (optional): Filter by state (opened, closed, merged, all). Default: openedget-merge-requests-for-reviewGet merge requests assigned to the current user for review.
Parameters:
state (optional): Filter by state (opened, closed, merged, all). Default: openedget-merge-request-detailsGet detailed information about a specific merge request.
Parameters:
project_id (required): The project IDmerge_request_iid (required): The merge request IID (internal ID)Loading reviews...