Explore GitHub repositories, including file content, directory structure, and other metadata.
The MCP server that provides GitHub repository information including file content, directory structure, and other metadata for MCP clients like Claude Desktop, Cursor, and others.
# Install from npm
npm install @trishchuk/github-explorer-mcp -g
# Run the server (stdio mode for MCP clients)
github-explorer-mcp
# Or run in HTTP/SSE mode
github-explorer-mcp-sse
# Build Docker image
docker build -t github-explorer-mcp .
# Run container
docker run -p 3000:3000 github-explorer-mcp
Add to your Claude Desktop configuration:
{
"mcpServers": {
"github-explorer": {
"command": "npx",
"args": ["-y", "@trishchuk/github-explorer-mcp"]
}
}
}
Add to your Cursor configuration:
{
"mcpServers": {
"github-explorer": {
"command": "npx",
"args": ["-y", "@trishchuk/github-explorer-mcp"]
}
}
}
The MCP server provides the following tools:
Get a summary of a GitHub repository.
{
owner: string; // GitHub organization or username
repo: string; // Repository name
branch?: string; // Optional branch name
includeMetadata?: boolean; // Include stars, forks, etc.
}
Get the tree structure of a GitHub repository.
{
owner: string; // GitHub organization or username
repo: string; // Repository name
branch?: string; // Optional branch name
}
Get the content of specific files from a GitHub repository.
{
owner: string; // GitHub organization or username
repo: string; // Repository name
filePaths: string[]; // List of paths to files
branch?: string; // Optional branch name
format?: 'text' | 'json'; // Output format
}
Search for content within a GitHub repository.
{
owner: string; // GitHub organization or username
repo: string; // Repository name
query: string; // Search query
branch?: string; // Optional branch name
maxResults?: number; // Maximum results to return
}
Get a diff between two branches or commits.
{
owner: string; // GitHub organization or username
repo: string; // Repository name
base: string; // Base branch/commit
head: string; // Head branch/commit
}
# Clone the repository
git clone https://github.com/x51xxx/github-explorer-mcp.git
cd github-explorer-mcp
# Install dependencies
npm install
# IMPORTANT: This project requires Node.js 18 or later
# If using nvm, run:
nvm use
# Build the project
npm run build
# Run the built server
npm start
# or
npm run start:sse
This project requires Node.js 18 or newer because it uses modern Web APIs like ReadableStream
. If you encounter errors like:
ReferenceError: ReadableStream is not defined
You should:
nvm use
in the project directoryContributions are welcome! Please feel free to submit a Pull Request.
MIT
Gitee API integration, repository, issue, and pull request management, and more.
Integrates with the GitHub API for automation and interaction with repositories.
Query GitHub Enterprise license data, including summaries, per-user details, organization memberships, and enterprise roles.
Integrates with the git-mob CLI to manage Git co-authors.
Tools to read, search, and manipulate Git repositories
An improved GitLab MCP server with bug fixes, providing access to GitLab projects, issues, and merge requests.
Interact with GitHub repositories, issues, pull requests, and more. Requires a GitHub personal access token.
Interact with GitHub repositories, including issues, pull requests, commits, releases, and actions.
Integrate with the GitHub Enterprise API to access repositories, issues, pull requests, and workflows.
Manage GitHub repositories using a personal access token via CLI or environment variables.