GitHub Repository MCP ServerServer

shanksxz
GitHub
GitHubAI IntegrationDevelopment

Loading subscription status...

💡 Description

This Model Context Protocol (MCP) server allows AI models to access GitHub repository content as context, providing tools to retrieve file content, repository structure, and complete repositories for use in AI interactions.

📝 JSON Entries

{
  "mcpServers": [
    {
      "github-repo-context": {
        "env": {
          "GITHUB_TOKEN": "your_github_personal_access_token"
        },
        "args": [],
        "command": "/path/to/your/local/repo/gh.sh"
      }
    }
  ]
}

🛠️ Tools

get-repo-contextget-file-contentget-repo-structure

Features

  • Get all repository content as context
  • Retrieve specific file content from a repository
  • Obtain repository structure (file listing)
  • Filter files by extension
  • Exclude specific paths
  • Limit the number of files returned

💬 Example Queries

  • Get the structure of the repository tensorflow/tensorflow
  • Retrieve the content of the file /README.md from the repository shanksxz/gh-mcp-server