GitHub Repository MCP Server

by shanksxz

2 stars
318 downloads
Not rated
GitHub

About

GitHub context server for AI models. Fetch files, structure, filter, and more.

Details

Author
shanksxz
GitHub stars
2
Downloads
318
Categories
Developer Tools

- Fetch entire repository contents as context
- Get specific file contents from a repository
- Get repository structure (file listing)
- Filter files by extension
- Exclude specific paths
- Limit the number of files returned

Clone the repository, install dependencies with npm install, and build with npm run build. Set the GITHUB_TOKEN environment variable to increase API rate limits. Use with Cursor by adding a new MCP server pointing to a script that exports the token. The server communicates via stdin/stdout following the MCP protocol.

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 use as context in AI interactions.

Features

- Fetch entire repository contents as context
- Get specific file contents from a repository
- Get repository structure (file listing)
- Filter files by extension
- Exclude specific paths
- Limit the number of files returned

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.