CuratedMCP
OpenAI Agents SDK
Free

How to Install GitLab MCP in OpenAI Agents SDK

Official GitLab integration — manage CI/CD pipelines, merge requests, and issues inside AI workflows

What GitLab MCP does

The official GitLab MCP server gives AI agents access to GitLab projects, issues, merge requests, and CI/CD pipelines. Teams can automate code review, triage incidents, and coordinate releases without leaving their AI workspace. Features: - Search and manage issues, merge requests, and epics - Trigger and inspect pipeline runs - Review code diffs and file changes - Manage milestones, boards, and deployments - Access project metrics and activity reports - Automate incident workflows and alert response GitLab MCP is ideal for teams using the GitLab platform who want AI to act on their entire development lifecycle.

gitlab
repo
ci-cd
merge-requests
issues

Installation steps

  1. 1Install: pip install openai-agents
  2. 2Copy the snippet below into your agent code
  3. 3Replace placeholder env values with your real keys
  4. 4Pass mcp_servers=[mcp_server] to your Agent()

Python snippet

Python snippetpython
from agents import Agent
from agents.mcp import MCPServerStdio

mcp_server = MCPServerStdio(
    command="npx",
    args=["-y", "@gitlab/mcp"],
    env={
        "GITLAB_TOKEN": "glpat-...",
        "GITLAB_PROJECT": "your/project",
    },
)

agent = Agent(
    name="My Agent",
    model="gpt-4o",
    mcp_servers=[mcp_server],
)
Full server details Open Config Editor

Install in other clients

For maintainers

If you maintain GitLab MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://curatedmcp.com/api/badge/gitlab-mcp)](https://curatedmcp.com/marketplace/gitlab-mcp)

Related servers