# GitLab MCP server

With the GitLab Model Context Protocol (MCP) server, you can securely connect AI tools and applications to your GitLab instance.

MCP server by GitLab. Category: Agent craft.

## Install

Project (for this project only):

```sh
npx add-mcp https://gitlab.com/api/v4/mcp
```

Works with: Claude Code, Codex CLI, Cursor, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx add-mcp https://gitlab.com/api/v4/mcp -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Where it runs

The cloud.

## What it needs

Your account. Your tool opens a browser to sign you in the first time it connects.

## Tags

- Runs in the cloud: It runs on the publisher's servers. What you send it leaves your machine.
- Needs a key or account: It asks for an API key or a sign in before it works.

## Source

[Open the source](https://docs.gitlab.com/user/model_context_protocol/mcp_server/). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

- Previous: [GitBook docs MCP](https://syn4pse.dev/terminal/gitbook-docs-mcp.md)
- Next: [Glide Docs MCP](https://syn4pse.dev/terminal/glide-docs-mcp.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
