GitHub Navigator
БесплатноНе проверенMCP server for AI agents to securely access GitHub data, including listing repositories and user profile info via the GitHub API.
Описание
MCP server for AI agents to securely access GitHub data, including listing repositories and user profile info via the GitHub API.
README
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.
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-github - Install dependencies:
npm install - Build 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 start
Note: Since this is an MCP server, it is meant to be run by an MCP client (like Claude Desktop) rather than manually.
Установка GitHub Navigator
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/RachitJava/mcp-githubFAQ
GitHub Navigator MCP бесплатный?
Да, GitHub Navigator MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для GitHub Navigator?
Нет, GitHub Navigator работает без API-ключей и переменных окружения.
GitHub Navigator — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить GitHub Navigator в Claude Desktop, Claude Code или Cursor?
Открой GitHub Navigator на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare GitHub Navigator with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
