VA

vooster-ai/github-fetcher-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

12 stars 6 forks 质量 69 趋势 19MIT

MCP (Model Context Protocol) server for fetching GitHub repository files and directory trees.

概览

MCP (Model Context Protocol) server for fetching GitHub repository files and directory trees. - : Fetch raw file content from GitHub repositories - : Fetch directory tree structure in unix tree format - ⭐ NEW: Enhanced directory tree with file sizes, depth limits, statistics, and filtering - Flexible configuration via CLI arguments or per-request parameters - Built with TypeScript for type safety - Comprehensive test coverage (79 tests) To install GitHub Fetcher MCP Server for any client automatically via Smithery: Available clients: cursor, claude, vscode, windsurf, cline, zed, etc. This will automatically configure the MCP server in your chosen client. GitHub Fetcher MCP can be integrated with various AI coding assistants and IDEs that support the Model Context Protocol (MCP). - Node.js >= v18.0.0 - An MCP-compatible client (Cursor, Claude Code, VS Code, Windsurf, etc.) Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server

README

以下为原文 README 节选,完整内容请查看原文。

GitHub Fetcher MCP

MCP (Model Context Protocol) server for fetching GitHub repository files and directory trees.

Features

  • fetch-file: Fetch raw file content from GitHub repositories
  • fetch-subdir-tree: Fetch directory tree structure in unix tree format
  • fetch-sub-tree ⭐ NEW: Enhanced directory tree with file sizes, depth limits, statistics, and filtering
  • Flexible configuration via CLI arguments or per-request parameters
  • Built with TypeScript for type safety
  • Comprehensive test coverage (79 tests)

Installation

NPM

npm install -g github-fetcher-mcp

Smithery

To install GitHub Fetcher MCP Server for any client automatically via Smithery:

npx -y @smithery/cli@latest install github-fetcher-mcp --client 

Available clients: cursor, claude, vscode, windsurf, cline, zed, etc.

Example for Cursor:

npx -y @smithery/cli@latest install github-fetcher-mcp --client cursor

This will automatically configure the MCP server in your chosen client.

MCP Client Integration

GitHub Fetcher MCP can be integrated with various AI coding assistants and IDEs that support the Model Context Protocol (MCP).

Requirements

  • Node.js >= v18.0.0
  • An MCP-compatible client (Cursor, Claude Code, VS Code, Windsurf, etc.)

Add this to your VS Code MCP config file. See VS Code MCP docs for more info.

"mcp": {
在 GitHub 查看完整 README

安装

npx -y github-fetcher-mcp --repoIdentifier facebook/react/main
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "github-fetcher": { "command": "npx", "args": ["-y", "github-fetcher-mcp", "--repoIdentifier", "facebook/react/main"] } } }