Skip to main content
Glama
Repo Insight MCP

Repo Insight MCP

by viradm

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GH_TOKENNoAlternative to `GITHUB_TOKEN` for supplying the GitHub token. Set `GITHUB_TOKEN` or `GH_TOKEN`.
GITHUB_TOKENNoA GitHub classic token with the `public_repo` scope. Raises the rate limit to 5000 requests/hour and enables code search. Optional: everything except `search_code` works unauthenticated (60 requests/hour). Set `GITHUB_TOKEN` or `GH_TOKEN`.
REPO_INSIGHT_TTLNoOverrides the in-memory response cache TTL (default 300 seconds).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Read-only tools for understanding a GitHub repository: structure, file contents, dependency manifests, change history and code search. Call repo_profile first to orient, then list_tree to find paths, then read_file on the paths that matter. Set GITHUB_TOKEN to raise the GitHub rate limit from 60 to 5000 requests an hour.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
repo_profileA

Summarise a repository: description, default branch, size, languages, last push and open issue count. Start here before any other tool.

list_treeB

List files in a repository with their sizes. Filter by directory prefix or extension to find the parts of a codebase worth reading.

read_fileB

Read one text file. Truncates at max_bytes and says so, rather than returning a file too large to be useful.

list_dependenciesA

Find and parse every dependency manifest in the repository, returning one normalised list across pypi, npm, maven, go and rubygems.

file_historyB

List recent commits, optionally for one path. Use it to see whether code is actively maintained or has sat untouched for years.

search_codeB

Search code inside one repository. GitHub's code search requires authentication, so this needs GITHUB_TOKEN set.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct action and resource: repo summary, file listing, single-file read, dependency parsing, commit history, and code search. None of these overlap in a way that would cause misselection; the only close pair is list_tree and search_code, but one lists paths and the other searches contents.

Naming Consistency4/5

Most names follow a clear verb_noun pattern (list_tree, read_file, list_dependencies, search_code), but repo_profile and file_history are noun-style names. The deviation is minor and each name remains self-explanatory, so consistency is good but not perfect.

Tool Count5/5

Six tools is a tightly scoped set for repository inspection. Each tool has a clear job, and there are no redundant or filler tools.

Completeness4/5

The surface covers the core repository-insight workflow: orient, explore files, read contents, inspect dependencies, check history, and search code. Minor gaps remain, such as reading a file at a specific commit or retrieving diffs, but these are workaroundable and not central to the stated purpose.