GitLab API integration for repository management
## GitLab MCP Server: Complete DevOps Platform The **GitLab MCP Server** integrates the comprehensive GitLab DevOps platform into Google Antigravity, enabling seamless repository management, CI/CD pipelines, issue tracking, and security scanning through AI-assisted operations. ### Why GitLab MCP? - **All-in-One Platform**: Complete DevOps lifecycle in a single application - from planning to monitoring - **Built-in CI/CD**: Powerful pipelines with Auto DevOps for automated build, test, and deploy workflows - **Security Scanning**: Integrated SAST, DAST, container scanning, and dependency scanning - **Code Review**: Merge request workflows with inline discussions, approvals, and merge trains - **Self-Hosted Option**: Deploy on your infrastructure for complete control and compliance ### Key Features #### 1. Repository Management ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create GitLab project with CI/CD enabled and protected branch rules configured" }] ) ``` #### 2. Pipeline Operations ```python # Manage CI/CD response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Trigger deployment pipeline for production and monitor job status" }] ) ``` #### 3. Merge Requests ```python # Handle merge requests response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "List merge requests awaiting review, show pipeline status, and merge approved ones" }] ) ``` #### 4. Security Reports ```python # Review security response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show security scan results and critical vulnerabilities from the latest pipeline" }] ) ``` ### Configuration ```json { "mcpServers": { "gitlab": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-gitlab"], "env": { "GITLAB_URL": "https://gitlab.com", "GITLAB_TOKEN": "your-access-token" } } } } ``` ### Use Cases **DevOps Automation**: Automate the complete software delivery lifecycle from code to production. **Security Compliance**: Meet compliance requirements with integrated security scanning and audit logs. **Team Collaboration**: Streamline code review and merge processes with powerful collaboration features. **Self-Hosted DevOps**: Run your own GitLab instance for complete control and data sovereignty. The GitLab MCP Server brings enterprise DevOps capabilities into your AI-assisted workflow, enabling comprehensive project management and automation.
{
"mcpServers": {
"gitlab": {
"mcpServers": {
"gitlab": {
"env": {
"GITLAB_API_URL": "https://gitlab.com/api/v4",
"GITLAB_PERSONAL_ACCESS_TOKEN": "YOUR_GITLAB_TOKEN"
},
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"command": "npx"
}
}
}
}
}