MCP GitHub Navigator
Allows interaction with GitHub data, providing tools to list repositories, view issues, and read files via the GitHub REST API.
MCP GitHub Navigator
A Model Context Protocol (MCP) server that provides an AI agent with secure access to GitHub data, allowing it to list repositories, view issues, and read files via the GitHub API.
HLD (High-Level Design)
Architecture: The server is built in Node.js/TypeScript and implements the standard MCP
@modelcontextprotocol/sdk. It uses a StdioServerTransport to communicate directly with any MCP-compatible AI client via standard input/output.External Integration: Uses Axios to connect to the GitHub REST API (
https://api.github.com).Authentication: Relies on a Personal Access Token provided via the
GITHUB_TOKENenvironment variable.
Related MCP server: @cloud9-labs/mcp-github
LLD (Low-Level Design)
Entry Point:
src/index.tsis the main entry point which initializes theServerinstance and maps MCP capabilities.Tools Registered:
get_user: UsesGET /userto return the authenticated GitHub profile.list_repos: UsesGET /user/repos?sort=updated&per_page=10to return recently active repositories.
Data Flow: When an AI client sends a
CallToolRequestSchemaforlist_repos, the MCP server validates the tool name, invokes the corresponding GitHub API endpoint via Axios, formats the JSON response into a text block, and returns it to the client.
TDD (Test-Driven Development) Strategy
Frameworks: We recommend using
Jestfor executing test suites.Mocking: Testing relies on mocking the
axiosInstanceusing libraries likenockoraxios-mock-adapterto simulate GitHub API responses without requiring an active internet connection or hitting API rate limits.Integration Tests: Creating a mock MCP Client using
@modelcontextprotocol/sdk/clientto test the end-to-end flow of standardCallToolrequests.
Setup Instructions
Prerequisites
Node.js (v16 or higher)
A GitHub Personal Access Token (PAT)
Installation
Clone the repository:
git clone https://github.com/RachitJava/mcp-github.git cd mcp-githubInstall dependencies:
npm installBuild the project:
npm run build
Running the Server
The server requires the GITHUB_TOKEN environment variable to be set. You can run it directly:
export GITHUB_TOKEN="your_personal_access_token_here"
npm startNote: Since this is an MCP server, it is meant to be run by an MCP client (like Claude Desktop) rather than manually.
Available Tools
2 toolsget_userA
Get the authenticated GitHub user details
Inputs: no named parameters.
list_reposA
List the 10 most recently updated repositories for the authenticated user
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes: one retrieves authenticated user details, the other lists repositories. There is no overlap or confusion between them.
Both tools follow the consistent verb_noun pattern (get_user, list_repos), making the naming predictable and clear.
With only 2 tools, the server feels thin for its name 'Navigator', which implies broader GitHub navigation capabilities. The count is borderline acceptable but does not fully earn its place.
The surface is severely limited: it covers only user details and repository listing, missing common operations like fetching a specific repo, listing branches, or viewing commits. Significant gaps exist for a navigation-focused server.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Hosted MCP server for live public-data APIs and Skills for AI agents.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server that exposes GitHub operations as tools for AI agents, enabling code search, issue management, and PR review.1236 PyPIMIT
- AlicenseBqualityDmaintenanceMCP (Model Context Protocol) server for GitHub API integration. This server provides comprehensive tools for interacting with GitHub repositories, issues, pull requests, branches, and code search through a unified interface.157 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to list GitHub repositories for a user or organization and list directories within a repository via the GitHub REST API.2ISC
- FlicenseAqualityDmaintenanceMCP server that wraps GitHub REST API to allow AI agents to search repositories, get repository details, list issues, and read READMEs.4-