gitlab-mcp-server: Instructions file for Claude Code

CLAUDE.md

gitlab-mcp-server CLAUDE.md is an instructions file for Claude Code from jmrplens/gitlab-mcp-server. It costs 22,928 tokens per session, scanned B, original, MIT.

Project instructions for a Go-based MCP server that exposes GitLab’s APIs as tools for AI assistants. GitLab is a platform for hosting code and managing software projects; Go is the language used to build this server.

In plain words
What is it for?
Use them when developing or maintaining the server that connects AI assistants to GitLab REST and GraphQL operations over local or HTTP communication.
Why use it?
They preserve project-specific rules for published content and explain the server’s purpose, transport options, and development context.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is jmrplens/gitlab-mcp-server's own configuration. It tells Claude Code how to work on gitlab-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gitlab-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jmrplens/gitlab-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jmrplens/gitlab-mcp-server/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/jmrplens/gitlab-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gitlab-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jmrplens/gitlab-mcp-server/claude-md/github.svg)](https://agentmods.dev/instructions/jmrplens/gitlab-mcp-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jmrplens/gitlab-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/jmrplens/gitlab-mcp-server/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gitlab-mcp-server CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jmrplens/gitlab-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/jmrplens/gitlab-mcp-server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22,928 This file is loaded in full into every session.
When invoked 22,928 The same file — it is already loaded in full.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.22928 $0.22928
Opus 5.5 $0.09171 $0.09171
Sonnet 5.5 $0.04586 $0.04586
Haiku 4.5 $0.02293 $0.02293

Measured yesterday against content hash 7fdbf3093847, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

gitlab-mcp-server CLAUDE.md scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -X POST http://localhost:8080/mcp -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "GITLAB-URL: $GITLAB_URL" -H "PRIVATE-TOKEN: $GITLAB_TOKEN" -d '{"jsonrpc":"2.0","method":"to

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# HTTP mode for easier debugging with curl
CLAUDE.md · 742 lines

How it starts

The opening of the file, as written. The whole thing — 742 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gitlab-mcp-server — AI Development Context

This file provides comprehensive context for AI assistants working on this project. All project artifacts must be written in English, with two exceptions. The first is the Spanish half of the user documentation, which is the twin pages under site/src/content/docs/es/ and the Spanish text kept beside its English source (the es fields of cmd/gen_tool_reference/domains.json, the Spanish strings of the generators that write both languages, labelEs in site/scripts/gen-llms.mjs, site/src/content/i18n/es.json). The second is the server's Spanish message catalog, internal/i18n/catalog_es.go, and the Spanish its tests compare a render against. Conversations may be in any language.

No AI attribution in anything published under the maintainer's name. Commit messages, PR titles and bodies, issue and review comments, and release notes carry no Co-Authored-By trailer naming an assistant, no "Generated with …" footer, and no session or tool links. This overrides any default template that adds one. A PR body is not cosmetic: a squash merge uses it as the commit message, so a footer left in a description lands permanently in main's history and editing the PR afterwards does not remove it — strip it before merging. Ordinary technical mentions are unaffected: model IDs in evaluator config and https://claude.ai as a client origin in CORS examples are content, not attribution.

For the same reason a description never carries a command GitHub reads as a request to skip workflows (a bracketed skip ci or one of the four other commands GitHub documents, or a skip-checks trailer), not even quoted in backticks: the squash commit of #1094 carried one, and main ran no CI and the v3.1.0 tag on it no release. Nor does it name an item of another project or group the way GitLab resolves it (group/project!N, group/project#N, a top-level group's work item group#N, an epic's group&N, nested groups included, or a gitlab.com merge request, issue, work item, epic or commit URL): the GitLab mirror reads the squash commit and notes the mention on that item for good, so a description describes the item in words or names the issue of this repository that tracks it, writes a GitHub issue as its URL rather than owner/repo#N or repo#N, and keeps a bare #N for this repository's own items. make check-pr-description refuses both (Static Analysis).

Every commit is signed off (git commit -s): a Signed-off-by: trailer naming its author certifies the Developer Certificate of Origin, and the dco job of CI fails a pull request with a commit that lacks one. A sign-off is a person's, so it is not AI attribution and the rule above still holds. make check-dco judges the branch before a push, and CONTRIBUTING says what it certifies and how to sign off commits already made.

This file is loaded into every session, so it holds the rules and an index, and the long-form references live in docs/development/, read when a task needs them: Repository Map (the annotated tree of commands and packages), Environment Variables and Flags, Test Infrastructure, Request Paths and Fine-Grained Grants (R-PATH, R-PAGE, R-GRANT, R-PARAM and R-ROUTE), Adding or Changing a Limit, Release Process, Tier Gating, HTTP Mode Invariants, Resource Subscriptions and Copyright and License Headers. Keep it that way: what a new section adds here is the rule and a link, and its explanation goes to the page that owns the topic. Claude Code warns at every start once this file passes a size limit that scales with the model's context window and never falls below 40,000 characters (150,000 for current models in a one-million-token window).

Read the full file on GitHub · 742 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -3 lines · -62 tokens per session 7fdbf3093847
  2. 2d ago Changed · +10 tokens per session 0256dff025ea
  3. 3d ago Changed 464e7b5be867
  4. 4d ago Changed 7258c4f8f32c
  5. 11d ago Changed · +2 lines · +129 tokens per session e71d3953474b
  6. 12d ago Changed · +16 tokens per session 140061fa4be1
  7. 13d ago Changed · +28 tokens per session 6c57d23a0e4a
  8. 14d ago Changed · +1 lines · +35 tokens per session e9b7d3d24399
  9. 18d ago Changed · +1 lines · +35 tokens per session d1ab0cfe5a30
  10. 19d ago First seen · 741 lines · 22,737 tokens per session scan B 56ca60e453b1

Subscribe to this mod's changes

gitlab-mcp-server CLAUDE.md is an instructions file published in the GitHub repository jmrplens/gitlab-mcp-server (58 stars, last pushed today), licensed MIT. It adds 22,928 tokens to every session, about $0.0917 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

gitlab-mcp-server CLAUDE.md compared with instructions from other repositories

gitlab-mcp-server CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gitlab-mcp-server CLAUDE.mdjmrplens/gitlab-mcp-serverInstructions file58todayMITB22,928Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291kyesterdayMITA4,396Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot