GitLab MCP server wiki tools

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

To provide feedback on this feature, leave a comment on issue 630189.

These tools are part of the wikis toolset. Use them to list and read wiki pages.

For a list of all tools, see GitLab MCP server tools.

list_wiki_pages

Lists the wiki pages in a GitLab project or group.

ParameterTypeRequiredDescription
project_idstringNoFull path or numeric ID of the project (for example, gitlab-org/gitlab or 278964).
group_idstringNoFull path or numeric ID of the group (for example, gitlab-org or 9970).
firstintegerNoNumber of wiki pages to return for forward pagination (maximum 100).
afterstringNoCursor for forward pagination.

Provide only one project_id or group_id. Each call returns a single page of results. If more pages exist, the response includes an end_cursor you can pass as after to fetch the next page.

Example:

List the wiki pages in gitlab-org/gitlab

get_wiki_page

Gets a wiki page, including its content, from a GitLab project or group.

ParameterTypeRequiredDescription
slugstringYesURL slug of the wiki page.
project_idstringNoFull path or numeric ID of the project (for example, gitlab-org/gitlab or 278964).
group_idstringNoFull path or numeric ID of the group (for example, gitlab-org or 9970).
offsetintegerNoZero-indexed line to start reading from. Default is 0.
limitintegerNoMaximum number of lines to return. Default is 500. Maximum is 2000.
line_byte_offsetintegerNoByte position in the line at offset where the response starts. Use the value from system_instruction after a long line is cut.

Provide only one project_id or group_id.

The response contains a metadata object with total_lines, returned_lines, truncated, and size_bytes. When the response covers only part of the page, system_instruction states the offset to use in the next call.

Each response returns at most 32 KiB of page content. When a line is longer than 32 KiB, the response ends partway through the line, and system_instruction states the offset and line_byte_offset to use for the rest of the line.

Example:

Get the home wiki page in gitlab-org/gitlab