Skip to main content
Glama
README.md
<div align="center">

<a href="https://showoffer.tech/?utm_source=github&utm_medium=readme&utm_campaign=mcp"><img src="docs/logo.svg" width="72" height="72" alt="ShowOffer logo"></a>

# ShowOffer MCP

**Your GitHub work as a report, inside Claude.**<br>
PRs merged, reviews, time to merge, review speed, each against the period before.<br>
Drawn as the same report as [showoffer.tech](https://showoffer.tech/?utm_source=github&utm_medium=readme&utm_campaign=mcp), with the same widgets, logo and QR code.

[![npm](https://img.shields.io/npm/v/showoffer?color=6a73fb&label=npm%20showoffer)](https://www.npmjs.com/package/showoffer)
[![node](https://img.shields.io/badge/node-%E2%89%A522-111111)](https://nodejs.org)
[![MCP](https://img.shields.io/badge/MCP-stdio-6a73fb)](https://modelcontextprotocol.io)
[![license](https://img.shields.io/badge/license-MIT-111111)](LICENSE)
[![runs locally](https://img.shields.io/badge/runs-on%20your%20machine-111111)](#security)

[Install](#install) · [Token](#github-token) · [Examples](#examples) · [Prompts](#prompts) · [Tools](#tools) · [Security](#security) · [FAQ](#faq)

<img src="docs/report-social-year.png" width="860" alt="A ShowOffer social post report made by the MCP server: profile, contribution calendar, radar and PRs merged">

</div>

## What you get

- **The numbers.** PRs merged, PRs reviewed, time to merge, time to first review, review response time, PR size, merge rate, commits, active days and abandoned PRs. Each number is compared with the period before and rated good or bad.
- **The report.** The showoffer.tech report, with 6 formats, 5 presets and 50 widgets. You pick the format, the preset and the widgets in your own words. You get PNG pages and a PDF.
- **Private.** It runs on your machine and reads GitHub only. Your token goes only to `api.github.com`. Nothing goes to a ShowOffer server.

Use it for self-reviews, performance reviews, promotion cases, 1:1 prep, a CV, or a "GitHub wrapped" post.

## Install

You need [Node.js 22+](https://nodejs.org). Chrome, Edge, Brave or Chromium draws the report. Without one, you get a simpler image.

### Claude Code (CLI)

<img src="docs/install-claude-code.gif" width="860" alt="Install in Claude Code: npx showoffer login with a personal access token, claude mcp add showoffer, then ask for a report">

<sub>[Watch as MP4](docs/install-claude-code.mp4)</sub>

1. Save a GitHub token, once:

   ```bash
   npx showoffer login
   ```

   Paste a [personal access token](https://github.com/settings/tokens/new?scopes=repo,read:org,read:user&description=ShowOffer%20MCP) (classic, scopes `repo`, `read:org`, `read:user`). The input is hidden. The server checks the token with GitHub and puts it into your OS keychain.

2. Add the server:

   ```bash
   claude mcp add showoffer -- npx -y showoffer
   ```

3. Start `claude` and ask: _"Make my GitHub report for the last 12 months as a social post, year preset."_

### Claude Desktop

<img src="docs/install-claude-desktop.gif" width="860" alt="Install in Claude Desktop: save a token, Settings, Developer, Edit Config, add showoffer, ask for a report">

<sub>[Watch as MP4](docs/install-claude-desktop.mp4)</sub>

1. Save a GitHub token once, in a terminal: `npx showoffer login`.
2. In Claude Desktop, open **Settings → Developer → Edit Config**.
3. Add `showoffer` to `claude_desktop_config.json` and save the file:

   ```json
   {
     "mcpServers": {
       "showoffer": { "command": "npx", "args": ["-y", "showoffer"] }
     }
   }
   ```

   The file is in `~/Library/Application Support/Claude/` on macOS and in `%APPDATA%\Claude\` on Windows.

4. Quit and reopen Claude Desktop. Then ask: _"Make my GitHub report for the last 12 months, one page, with legends."_

### Other MCP clients

<details>
<summary><b>Cursor</b>: <code>~/.cursor/mcp.json</code></summary>

```json
{
  "mcpServers": {
    "showoffer": { "command": "npx", "args": ["-y", "showoffer"] }
  }
}
```

</details>

<details>
<summary><b>VS Code</b>: <code>.vscode/mcp.json</code></summary>

```json
{
  "servers": {
    "showoffer": { "type": "stdio", "command": "npx", "args": ["-y", "showoffer"] }
  }
}
```

</details>

<details>
<summary><b>Windsurf</b>: <code>~/.codeium/windsurf/mcp_config.json</code></summary>

```json
{
  "mcpServers": {
    "showoffer": { "command": "npx", "args": ["-y", "showoffer"] }
  }
}
```

</details>

<details>
<summary><b>Codex CLI</b> and <b>Gemini CLI</b></summary>

```bash
codex mcp add showoffer -- npx -y showoffer
```

```bash
gemini mcp add showoffer npx -y showoffer
```

</details>

### GitHub token

The server takes the first token it finds, in this order:

| Order | Source            | How to set it               | Sees                                                      | Where the token is               |
| ----- | ----------------- | --------------------------- | --------------------------------------------------------- | -------------------------------- |
| 1     | ShowOffer sign-in | `npx showoffer login`       | Every repository the personal access token reads          | OS keychain                      |
|       |                   | `npx showoffer login --app` | Accounts where the ShowOffer Tech GitHub App is installed | OS keychain                      |
| 2     | Environment       | `GITHUB_TOKEN`              | What the token reads                                      | Plain text in your client config |
| 3     | GitHub CLI        | `gh auth login`             | What your `gh` token reads                                | OS keychain (by `gh`)            |

- **Personal access token (default).** Make a [classic token](https://github.com/settings/tokens/new?scopes=repo,read:org,read:user&description=ShowOffer%20MCP) with `repo`, `read:org` and `read:user`. Without `repo` the scan does not see private repositories; without `read:org`, organisation repositories. The server never writes to GitHub. For a read-only token, make a fine-grained token with read-only Contents, Pull requests, Issues and Metadata on the repositories you choose. You can also pipe the token: `gh auth token | npx showoffer login`.
- **GitHub App (`--app`).** Open the link, type the code and approve on GitHub. No token to copy, but the scan sees only the accounts where you install the ShowOffer Tech GitHub App.
- Use `GITHUB_TOKEN` only in CI. `npx showoffer status` shows the source and the kind of token. `npx showoffer logout` removes the stored token.

## Examples

These reports come from the MCP server, with a sample profile.

| Social post, `year` preset                                                                | Card, `standard` preset                                                                  |
| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| <img src="docs/report-social-year.png" width="420" alt="Social post report, year preset"> | <img src="docs/report-card-standard.png" width="300" alt="Card report, standard preset"> |

| One page, widgets you choose, legends                                                                       | One page, `collaborator` preset                                                                      |
| ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| <img src="docs/report-page-standard.png" width="400" alt="One page report with chosen widgets and legends"> | <img src="docs/report-page-collaborator.png" width="400" alt="One page report, collaborator preset"> |

<details>
<summary><b>Half page, <code>shipper</code> preset, legends</b></summary>

<img src="docs/report-half-shipper.png" width="640" alt="Half page report, shipper preset, with legends">

</details>

<details>
<summary><b>Full report, <code>year-light</code> preset, 3 pages and PDF</b></summary>

<img src="docs/report-report-year-light-1.png" width="280" alt="Full report page 1"> <img src="docs/report-report-year-light-2.png" width="280" alt="Full report page 2"> <img src="docs/report-report-year-light-3.png" width="280" alt="Full report page 3">

[Open the PDF](docs/report-year-light.pdf)

</details>

## Prompts

- _"Make my GitHub report for the last 6 months."_
- _"Scan 2026 so far and draw it as a social post, year preset."_
- _"Draw the same scan as one page with only PRs merged, reviews given, the contribution calendar and languages."_
- _"How fast are my code reviews compared with last quarter?"_
- _"What does time to first review mean? Is lower better?"_
- _"Make a full report PDF for my promotion case."_

After the first scan, the assistant can redraw the report in about a second, with no new scan.

## Tools

| Tool             | What it does                                                                                                                                                        |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `scan_github`    | Scans a period (`3m`, `6m`, `12m`, `ytd`, `2y`, `5y`, or `from`/`to`; optional `repos`) and compares it with the period before. Returns the numbers and the report. |
| `render_report`  | Draws the last scan again with a different format, preset or widget list.                                                                                           |
| `list_widgets`   | Lists the formats, presets and widgets, with the sizes each format allows.                                                                                          |
| `explain_metric` | Tells how a metric is counted and which direction is better.                                                                                                        |
| `report_link`    | Gives the link to the report generator on showoffer.tech.                                                                                                           |

### Report options

`scan_github` and `render_report` take these options:

| Option    | Values                                                                                                                                   |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `format`  | `card` (1/8 A4), `social` (1200×627), `half` (1/2 A4), `page` (A4, default), `report` (3 × A4), `dossier` (6 × A4)                       |
| `preset`  | `standard` (default), `year`, `year-light`, `shipper`, `collaborator`                                                                    |
| `widgets` | `[{ "id": "kpi-prs", "size": "S" }, ...]`, in order. Get the ids from `list_widgets`. If you leave it out, you get the preset's widgets. |
| `legends` | `true` adds one line under each widget: what it shows and how good the change is                                                         |
| `pdf`     | `true` also saves a PDF                                                                                                                  |

If a widget id is unknown or a widget does not fit, the server leaves it out and names it in the answer. The first three pages come back as images. All PNG pages and the PDF go to a `showoffer` folder in your temp folder. Set `SHOWOFFER_OUT` to save them in a different folder.

## Security

- **Token.** The server reads the token from the keychain, `gh` or the environment for each call. It keeps the token in memory only. It sends the token only in the `Authorization` header to `api.github.com`. Tokens never appear in errors, logs or tool results.
- **Read-only.** The server runs only GraphQL read queries. It never writes to GitHub.
- **No ShowOffer server.** There is no telemetry and no analytics. The only links go to showoffer.tech: the QR code and the links in the answers.
- **Local drawing.** A headless browser draws the report, with a new, empty profile each time. The server sends DevTools commands over a private pipe, so the browser opens no debugging port. The report page comes from a server on `127.0.0.1` that serves only the files of the report renderer. Your scan goes only into that local page.
- **Your files.** Reports can name private repositories. The report folder is made with mode `0700` and each file with mode `0600`. The server refuses a folder that is a link or that another user owns.
- **Access.** With `showoffer login`, the server sees what your personal access token can read. With `showoffer login --app`, it sees the accounts where you install the ShowOffer Tech GitHub App. The login checks a pasted token only with `api.github.com` and never prints it.

You can report a security problem through [GitHub private reporting](https://github.com/4thwithme/showoffer-mcp/security/advisories/new).

## FAQ

<details>
<summary><b>Claude Desktop says the server failed to start</b></summary>

Claude Desktop can start without your shell's `PATH`, so it does not find `npx`. Put the full path in `command`. To find the path, run `which npx` on macOS or `where npx` on Windows. Also check that `node --version` is 22 or higher.
</details>

<details>
<summary><b>The scan is slow</b></summary>

A scan of many repositories takes a few minutes, because it runs the same queries as the site. To make it faster, pass `repos`, for example _"only acme/api and acme/web"_. When the scan is done, you can redraw it in about a second.
</details>

<details>
<summary><b>I get a plain image, not the site's report</b></summary>

The server did not find Chrome, Edge, Brave or Chromium. Install one, or set `SHOWOFFER_CHROME` to the path of the browser.
</details>

<details>
<summary><b>Can I make the report on the website?</b></summary>

Yes. [showoffer.tech](https://showoffer.tech/report-generator?utm_source=github&utm_medium=readme&utm_campaign=mcp) makes the same report in your browser. You get a widget editor and you can share it to LinkedIn and X.
</details>

## Development

This repository is built and released from the main ShowOffer repository, where it is the `mcp/` submodule.

- `renderer/` is the site's report, built by `pnpm mcp:build` in the main repository.
- `src/github/` is a copy of the site's GitHub data layer. `pnpm mcp:sync` in the main repository makes the copy, and a test fails when the copy and the site are different. So the MCP report counts the same things as the site.

```bash
pnpm install
pnpm test
pnpm build      # dist/cli.js
pnpm release    # dry run; add --publish to publish to npm
```

## License

[MIT](LICENSE). Use it, change it and share it, also in commercial work. Keep the copyright notice.

<div align="center"><sub>Made by <a href="https://showoffer.tech/?utm_source=github&utm_medium=readme&utm_campaign=mcp">ShowOffer.tech</a></sub></div>

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation4/5

The core actions are well separated: scan_github performs a fresh read-only scan, render_report redraws the cached result, and report_link points to the external site. The only mild risk is confusing render_report with report_link, but the descriptions make the local-vs-external distinction explicit.

Naming Consistency4/5

All names use snake_case, and four of five follow a clear verb_noun pattern (scan_github, render_report, list_widgets, explain_metric). report_link is a noun phrase rather than an action, a minor deviation from an otherwise predictable convention.

Tool Count5/5

Five tools is tightly scoped to the purpose: scan, re-render, discover options, explain a metric, and link out. Each tool has a distinct and necessary role with no filler.

Completeness4/5

The surface covers the full workflow from discovering widgets to scanning, re-rendering, explaining metrics, and generating an external link. Minor gaps remain: there is no way to check scan progress despite multi-minute scans, and no explicit tool for selecting the comparison period or repository scope.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues