gitlab-mcp-server
Verified Safeby Alosies
Overview
A fully typed TypeScript Model Context Protocol (MCP) server for comprehensive GitLab integration, enabling AI agents to manage projects, issues, merge requests, pipelines, and jobs.
Installation
npx -y @alosies/gitlab-mcp-serverEnvironment Variables
- NPM_CONFIG_TOKEN
- GITLAB_BASE_URL
- GITLAB_DEFAULT_PROJECT
- GITLAB_MCP_CONFIG
- GITLAB_MCP_TIMEOUT
- GITLAB_MCP_PER_PAGE
- GITLAB_MCP_PROJECT_SCOPE
- GITLAB_MCP_ENABLE_CACHING
- GITLAB_MCP_ENABLE_METRICS
- GITLAB_MCP_STRICT_SCOPING
Security Notes
The server uses `axios` for API calls, with `Bearer` token authentication. Tokens are explicitly retrieved from environment variables (e.g., `NPM_CONFIG_TOKEN`, `GITLAB_TOKEN`) or configuration files, and an error is thrown if no token is found, enforcing secure practices. API endpoints are constructed using `encodeURIComponent` to prevent path traversal and injection. There is no `eval` or obvious obfuscation. The `baseUrl` is configurable, which could be a risk if set maliciously, but this is typically controlled by the user's trusted configuration.
Similar Servers
gitlab-mr-mcp
Enables AI agents to programmatically interact with GitLab merge requests and issues via the Model Context Protocol.
gitlab-mr-mcp
Connects an AI assistant to GitLab to manage merge requests, CI/CD pipelines, and code reviews, enabling natural language interaction.
gitlab-api
This project provides a Python wrapper for GitLab, serving as an MCP (Model Context Protocol) server to expose GitLab APIs as tools for LLMs, and an A2A (Agent-to-Agent) multi-agent system for delegated GitLab task management with a knowledge graph.
mcp-server-gitlab
A GitLab integration server built on the fastmcp framework, providing various GitLab RESTful API tools for interacting with GitLab instances, supporting AI agents and platforms like Claude and Smithery.