Metadata-Version: 2.5
Name: repo-summary-mcp
Version: 0.1.0
Summary: MCP server that gives AI assistants the context to summarize any public GitHub repo.
Project-URL: Homepage, https://github.com/nameluqman/repo-summary-mcp
Project-URL: Issues, https://github.com/nameluqman/repo-summary-mcp/issues
Author: Muhammad Luqman
License: MIT
License-File: LICENSE
Keywords: github,mcp,model-context-protocol,summary
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: mcp<3,>=2.0
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == 'dev'
Description-Content-Type: text/markdown

# 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 -->
