Skip to content

Troubleshooting

Solutions for common issues with GitLab MCP.

Quick Diagnosis

SymptomLikely CauseGuide
"Connection refused"Server not running or wrong portConnection
"401 Unauthorized"Invalid or expired tokenConnection
"403 Forbidden"Insufficient token scopesConnection
"No clients detected"Client not installed or not detectedClients
Server not appearing in clientConfig file issueClients
Docker container won't startPort conflict or missing env varsDocker
Tools not availableFeature flags or read-only modeConnection

General Steps

1. Check Configuration

Preview your current configuration:

bash
npx @structured-world/gitlab-mcp install --show --claude-desktop

2. Test Connection

Verify your token and API access:

bash
curl -H "PRIVATE-TOKEN: glpat-xxxx" \
  https://gitlab.com/api/v4/user

3. Check Logs

For Docker deployments:

bash
gitlab-mcp docker logs -f

For stdio mode, check your MCP client's logs:

  • Claude Desktop: ~/Library/Logs/Claude/mcp*.log (macOS)
  • Cursor: Developer Tools (Cmd+Shift+I) > Console
  • VS Code: Output panel > "MCP" channel

4. Verify Environment

Check which tools are available with current settings:

bash
npx @structured-world/gitlab-mcp list-tools --env

Getting Help

If your issue isn't covered here:

  1. Check the GitLab MCP GitHub Issues
  2. Search existing issues for similar problems
  3. Open a new issue with:
    • GitLab MCP version (npx @structured-world/gitlab-mcp --version)
    • Node.js version (node --version)
    • MCP client name and version
    • Error message or unexpected behavior
    • Minimal reproduction steps

Released under the Apache 2.0 License.