mcpField
G
gread

gread

github.com/nitrorcrDevelopment65112 installsUpdated 16w ago
Repository

About gread

Gread provides search, inspection, and source reading for public GitHub repositories and related documentation, for developers examining projects. Its GET API returns formatted Markdown and also supports searching within a repository.

Key features

  1. 01Search repositories by name or keyword
  2. 02View repository details and structure
  3. 03List directory trees
  4. 04Read specified source files
  5. 05Search code within a repository

Use cases

  1. 01Find a public GitHub project
  2. 02Locate implementation files in a repository
  3. 03Read source code and project documentation
  4. 04Search a repository for symbols or text

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nitrorcr/gread --skill gread

After installing, type/greadin Claude Code to confirm it loaded.

Details

From the project README

Gread

Provide the ability to search, inspect, and read source code from all public GitHub repositories and their associated documentation.

Endpoints

All endpoints are GET endpoints exposed at https://api.gread.dev. Only use parameters through the query string (?key=value). The system returns well-formatted markdown blocks.

  • If the exact repository full name is known (e.g., owner/repo), view repository (/repo) directly.
  • Otherwise, search repositories (/search) first to find the correct repository.
  • To retrieve documents, also view the main repository through /repo; its corresponding document repo will also be returned (if exists).
1. Search Repositories

Search for GitHub repositories by name, description, or topic keywords using the GitHub Search API. Format: GET https://api.gread.dev/search?q={keyword} Example: GET https://api.gread.dev/search?q=hono

ParameterTypeRequiredDescription
qstringYesKeyword to search in repository names, descriptions, or topics
2. View Repository

View repository basic information and its directory structure. Includes corresponding documentation repo if available. Format: GET https://api.gread.dev/repo?name={user/repo} Example: GET https://api.gread.dev/repo?name=honojs/hono

ParameterTypeRequiredDescription
namestringYesFull name of the repository (owner/repo)
3. List Directory Tree

Detailed view of a repository's directory tree with recursion limits. Format: GET https://api.gread.dev/tree?name={user/repo}&dir={targetDir}&depth={num}&limit={num} Example: GET https://api.gread.dev/tree?name=honojs/hono&dir=src&depth=3&limit=50

ParameterTypeRequiredDescription
namestringYesFull name of the repository (owner/repo)
dirstringNoTarget directory path to inspect (defaults to root if empty)
depthnumberNoMaximum depth into the directory structure to list (default:3)
limitnumberNoMaximum number of items to display per directory level (default: 40)
4. Read Code

Retrieve the raw source code of specified files from within a known repository. Provide paths separated by commas. Format: GET https://api.gread.dev/read?name={user/repo}&paths={path1,path2} Example: GET https://api.gread.dev/read?name=honojs/hono&paths=src/index.ts,package.json

ParameterTypeRequiredDescription
namestringYesFull name of the repository (owner/repo)
pathsstringYesComma-separated list of precise file paths within the repository
5. Search within Repo

Perform a fast git grep inside the repository. Format: GET https://api.gread.dev/grep?name={user/repo}&q={search_pattern}&i=true&F=true&E=true&C=2&path={targetDir} Example: GET https://api.gread.dev/grep?name=honojs/hono&q=listen&C=2&path=src

ParameterTypeRequiredDescription
namestringYesFull name of the repository (owner/repo)
qstringYesSearch pattern or query to pass to git grep
ibooleanNoIgnore case distinctions (-i)
FbooleanNoInterpret pattern as fixed string (-F)
EbooleanNoInterpret pattern as extended regular expression (-E)
CnumberNoPrint num lines of output context (-C)
pathstringNoDirectory or file path to limit the search scope

Comments

Markdown supported