Back to Home
0xgordian icon

mcp-github-client

Verified Safe

by 0xgordian

Overview

This server integrates the GitHub REST API as a Model Context Protocol (MCP) tool, enabling interactive access to GitHub repositories, issues, and code search for AI models.

Installation

Run Command
npm start

Environment Variables

  • GITHUB_USERNAME
  • GITHUB_TOKEN

Security Notes

The server primarily reads environment variables for sensitive data (GITHUB_TOKEN) rather than hardcoding. It uses `path.join` and SHA256 hashing for cache file paths, mitigating directory traversal risks. No `eval` or obvious dynamic code execution from untrusted input is present. The `undici` library is used for network requests, which is a modern, secure HTTP/1.1 and HTTP/2 client. Input arguments for tools are used to construct GitHub API queries; while GitHub itself is expected to sanitize queries, the client code does not add explicit sanitization beyond what the GitHub API expects for its query parameters. This is generally acceptable for a tool client.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens7500
Stars0
Forks0
Last Update2025-11-29

Tags

GitHub APIMCP ServerTypeScriptRate LimitingCaching