GitHub Repository MCP Server

This Model Context Protocol (MCP) server allows AI models to access GitHub repository contents as context. It provides tools to fetch file contents, repository structure, and entire repositories for…

Local server

What is the GitHub Repository MCP Server?

GitHub Repository MCP Server is an MCP project maintained in the shanksxz/gh-mcp-server repository. The maintainer describes its purpose as “This Model Context Protocol (MCP) server allows AI models to access GitHub repository contents as context. It provides tools to fetch file contents, repository structure…”. Read the project documentation for the complete scope.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
Parameters:owner: GitHub repository owner/organization name
repoGitHub repository name
maxFilesoptional): Maximum number of files to include (default: 50)
fileExtensionsoptional): File extensions to include (e.g., ['js', 'ts', 'md'])
excludePathsoptional): Paths to exclude (default: ['node_modules', 'dist', 'build'])
pathPath to the file in the repository