Skip to main content
Glama
repo-summary-mcp

repo-summary-mcp

by nameluqman
README.md
# repo-summary-mcp

An [MCP](https://modelcontextprotocol.io) server that lets an AI assistant read any **public GitHub repository** and explain it in one short paragraph.

Paste a repo link into Claude (or any MCP client) and ask for a summary. The server fetches the description, README, languages and file structure from GitHub. Your assistant writes the summary.

**No extra API key and no LLM cost:** the server only collects facts. The assistant you already use does the summarizing.

## Example

> **You:** Summarize https://github.com/psf/requests
>
> **Assistant:** *(calls `get_repo_context`, then answers in one paragraph)*

## Tools

| Tool | What it returns |
|---|---|
| `get_repo_context` | Overview, README and structure in one call (best for summaries) |
| `get_repo_overview` | Description, topics, language mix, stars, forks, license, last push |
| `get_repo_readme` | README text, trimmed to 6,000 characters |
| `get_repo_structure` | Top-level folders and files, plus key files (`package.json`, `pyproject.toml`, `Dockerfile`, ...) |

There is also a `summarize_repo` prompt that asks for a one-paragraph summary of a link.

Accepted link formats: `https://github.com/owner/repo`, `github.com/owner/repo`, `owner/repo`, links ending in `.git`, and `/tree/<branch>` links.

## Install

```bash
pip install repo-summary-mcp
{ "mcpServers": { "repo-summary": { "command": "uvx", "args": ["repo-summary-mcp"] } } }
```

### Claude Desktop

Add this to your Claude Desktop config file (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "repo-summary": {
      "command": "repo-summary-mcp"
    }
  }
}
```

Restart Claude Desktop, then ask: *"Summarize https://github.com/owner/repo in one paragraph."*

### Optional: higher rate limit

GitHub allows about 60 unauthenticated requests per hour. To raise that, set a `GITHUB_TOKEN` environment variable. A token with no special permissions is enough, since only public data is read:

```json
{
  "mcpServers": {
    "repo-summary": {
      "command": "repo-summary-mcp",
      "env": { "GITHUB_TOKEN": "your_token_here" }
    }
  }
}
```

## Privacy

Only public repositories are read, using GitHub's public API. Nothing is stored. Private repos return a "not found" error.

## Development

```bash
git clone https://github.com/nameluqman/repo-summary-mcp
cd repo-summary-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest
```

## License

MIT

<!-- mcp-name: io.github.nameluqman/repo-summary-mcp -->

TDQS

A3.6/5.0

Scored across 4 tools

Disambiguation4/5

get_repo_overview, get_repo_readme, and get_repo_structure each target a clearly distinct slice of repo data, but get_repo_context is a strict superset of all three, so an agent may be unsure whether to call the aggregate or the atomic tools (e.g., for caching or partial failures). Descriptions mitigate this by framing context as the 'one call' summarization path, keeping overlap manageable.

Naming Consistency5/5

All four tools use the same get_repo_<noun> snake_case pattern with predictable suffixes (context/overview/readme/structure). No mixed conventions or vague verbs.

Tool Count4/5

Four tools is well-scoped for a 'summarize a repo' server and each maps to a real need. The count is slightly inflated by the aggregate tool duplicating the three atomic ones, but it is a deliberate convenience layer rather than bloat.

Completeness4/5

The surface covers the core summarization lifecycle: metadata, README, and structure, plus a combined call, with no dead ends for the stated purpose. Minor gaps exist (no commit/contributor activity, releases, or individual file content fetches), which agents can work around but limit deeper summaries.

Maintenance

ActivityNo data
ResponsivenessNo recent community issues