This MCP server integrates with GitLab to facilitate code reviews and provides intelligent code review rules based on project types and file extensions.
From the registry: GitLab MCP (Model Context Protocol) server for AI agents
$ git clone https://github.com/dubuqingfeng/gitlab-mcp-server && cd gitlab-mcp-server && npm install && npm run buildhttps://github.com/dubuqingfeng/gitlab-mcp-serverPlease install the `gitlab-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **GitLab personal access token** — Create a GitLab PAT (https://gitlab.com/-/user_settings/personal_access_tokens)
- **Clone and build** — No published package — clone and build from source Run: `git clone https://github.com/dubuqingfeng/gitlab-mcp-server && cd gitlab-mcp-server && npm install && npm run build` (https://github.com/dubuqingfeng/gitlab-mcp-server)
Canonical MCP server config (stdio transport):
- command: `node`
- args: ["<path-to-clone>/dist/index.js"]
- required environment variables:
- `GITLAB_TOKEN`: GitLab personal access token (example: `<your-gitlab-token>`)
- optional environment variables:
- `GITLAB_URL`: GitLab base URL (no /api/v4 suffix) (example: `https://gitlab.com`)
- `LARK_WEBHOOK_URL`: Optional Lark (Feishu) webhook URL for MR review notifications (example: `<your-lark-webhook-url>`)
- `LARK_SECRET_KEY`: Optional Lark signing secret (example: `<your-lark-secret>`)
- `GITLAB_NOTE_MODE`: Notification mode: gitlab_only, lark_only, or both (example: `gitlab_only`)
Note: README does not document a ready-made install command. Replace <path-to-clone> with the absolute path to the built repo.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.GITLAB_TOKENrequiredYour personal access token for GitLab.LARK_WEBHOOK_URLrequiredWebhook URL for Lark bot notifications.Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
The GitKraken MCP Server for managing repos, PRs, issues across GitHub, GitLab, Bitbucket and more.
Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.