mcpField
G
GitLab

GitLab

FeaturedLocal
modelcontextprotocol.ioVersion Control91.6kUpdated today

About GitLab

Model Context Protocol Servers

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<GITLAB_PERSONAL_ACCESS_TOKEN>",
"GITLAB_API_URL": "<GITLAB_API_URL>"
}
}
}
}
Run commandnpx -y @modelcontextprotocol/server-gitlab
Environment variables to set
GITLAB_PERSONAL_ACCESS_TOKENSecret
GITLAB_API_URL

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@modelcontextprotocol/server-gitlab

Tools

9

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
branchstringYesBranch to create/update the file in
commit_messagestringYesCommit message
contentstringYesContent of the file
file_pathstringYesPath where to create/update the file
previous_pathstringNoPath of the file to move/rename
project_idstringYesProject ID or URL-encoded path

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.