GitLab MCP ServerServer

modelcontextprotocol
GitHub
GitLabMCP ServerAPI Integration

Loading subscription status...

💡 Description

MCP Server for the GitLab API, enabling project management, file operations, and more.

📝 JSON Entries

{
  "mcpServers": [
    {
      "gitlab": {
        "env": {
          "GITLAB_API_URL": "https://gitlab.com/api/v4",
          "GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
        },
        "args": [
          "run",
          "--rm",
          "-i",
          "-e",
          "GITLAB_PERSONAL_ACCESS_TOKEN",
          "-e",
          "GITLAB_API_URL",
          "mcp/gitlab"
        ],
        "command": "docker"
      }
    },
    {
      "gitlab": {
        "env": {
          "GITLAB_API_URL": "https://gitlab.com/api/v4",
          "GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
        },
        "args": [
          "-y",
          "@modelcontextprotocol/server-gitlab"
        ],
        "command": "npx"
      }
    }
  ]
}

🛠️ Tools

create_or_update_filepush_filessearch_repositoriescreate_repositoryget_file_contentscreate_issuecreate_merge_requestfork_repositorycreate_branch

Features

  • Automatic Branch Creation
  • Comprehensive Error Handling
  • Git History Preservation
  • Batch Operations

💬 Example Queries

  • Create a new GitLab project
  • Push multiple files in a single commit
  • Search for GitLab projects