Skip to main content
Glama

bragbook-mcp

A small, read-only MCP server for a bragbook career library.

bragbook keeps your career record (jobs, projects, decisions, results) as Markdown in a private GitHub repository. bragbook-mcp lets the AI assistants you already use (Claude Code, Claude Desktop, Cursor, Codex, …) look things up in that record when you ask them to write a résumé, prepare for an interview or answer a recruiter. You don't have to paste files into chats or explain your history again.

It doesn't think. It finds, filters and formats your data; the assistant you connect does the writing.

Quick start

You need Node.js 20 or later and a bragbook library on GitHub.

npx bragbook-mcp setup

Setup walks you through it:

  1. Sign in with GitHub. You get a short code, and your browser opens at github.com/login/device to approve it. There's no token to create or copy.

  2. Pick your library. If you haven't yet, setup opens the bragbook-mcp GitHub App install page. Choose Only select repositories and pick your library. The app can only read the repositories you pick.

  3. Choose an access level (see below).

  4. Add it to your AI tool (setup prints these too):

    Tool

    How

    Claude Code

    claude mcp add -s user bragbook -- npx -y bragbook-mcp (-s user makes it available in every folder, not just the current one)

    Claude Desktop

    Settings → Developer → Edit Config, add the JSON below, restart

    Cursor

    Add the JSON below to ~/.cursor/mcp.json

    Codex

    Add to ~/.codex/config.toml: [mcp_servers.bragbook] with command = "npx" and args = ["-y", "bragbook-mcp"]

    { "mcpServers": { "bragbook": { "command": "npx", "args": ["-y", "bragbook-mcp"] } } }

The config contains no secrets: your sign-in stays in a local file only you can read.

To check it works, run claude mcp list (it should say Connected) or npx bragbook-mcp status, then ask your assistant "show my career timeline from bragbook".

Related MCP server: GitHub Repo Explainer MCP

Using it

Just ask in plain language; you don't need to know the tool names. The assistant decides when to look things up.

You want to

Try saying

Tailor a résumé

"Here's a job description: … Use my bragbook to write a résumé for it, with the three most relevant projects."

Prepare for interviews

"From my projects, prepare five STAR stories: a technical decision, a conflict, a failure, …"

Introduce yourself

"Write a one-minute self-introduction, in Chinese and in English."

Answer a recruiter

"A recruiter asks whether I've led a team and worked on high-traffic systems. Find evidence in my record and draft a reply."

Write a profile

"Write my LinkedIn About section from my experience."

Performance review

"Summarise my results at my current company as review points."

Spot weak points

"Are there gaps in my timeline? How should I explain them in an interview?"

Tips:

  • Mention bragbook ("use my bragbook", "check my career record") so the assistant looks things up instead of answering from memory.

  • Ask where a claim comes from. "Which file says that?" makes the assistant check the source with get_document. The server already tells assistants not to invent facts the tools didn't return, but checking is cheap.

  • It only reads. When you remember something new, record it in your library as usual (in a bragbook session: "record this: …"). The next lookup sees it, because the server always reads the current version from GitHub.

  • Mind the access level. full includes private notes, which is fine for drafting with your own assistant. For anything you will share, ask for "public content only", or use a second entry with --level public so private content is never read in the first place.

Tools

Tool

What it returns

get_profile

Basic facts (name, location, contact, …) and the sections of your profile

get_timeline

Jobs, projects, education and career gaps, most recent first; optional from / to (YYYY-MM)

list_projects

Projects with company, dates, role, tech stack and a one-line summary; filter by company, skill or keyword

search

Sections containing all the words of a query, with snippets; works for Chinese

get_document

One document (front matter and Markdown), e.g. data/projects/x.md

All five are read-only. Nothing is ever written to your repository. You rarely need to call them yourself; assistants pick them as needed.

Access levels and privacy

Level

What assistants can see

full

Everything under data/, including <!-- private --> blocks. Use it for your own assistants.

public

Only files with visibility: public-ok. Private blocks are removed, along with any line that links to a hidden file. Career gaps are not computed, since a hidden job would look like a gap.

At every level:

  • Only data/**/*.md is readable. inbox/, memory/, mentor/, .bragbook/ and the rules are never returned.

  • Mentor comments and HTML comments are removed, and so is the sources field.

  • A hidden file behaves exactly like a missing one, and search only sees the filtered text.

To serve both levels, add a second entry with --level public:

claude mcp add -s user bragbook-public -- npx -y bragbook-mcp --level public

What leaves your machine: the server itself sends nothing anywhere except requests to GitHub. Whatever the tools return goes to the AI tool you connected, and so to its provider, as part of your conversation, like anything you type there. Use public when that matters.

Why it reads GitHub instead of a local clone

bragbook-mcp reads your library from GitHub on every request (with a one-minute cache), and there is no "local folder" mode. That is deliberate:

  • A clone has to be kept in sync. Your library is updated from web sessions, other machines and your mentor. A clone that's a day old gives assistants a day-old record.

  • Clones lead to conflicts. A local copy is one more place where edits pile up and need merging.

  • Nothing is gained. Reading the library is all an assistant needs, and GitHub already has the current version.

Commands

npx bragbook-mcp setup     Sign in with GitHub, pick your library repository and access level
npx bragbook-mcp           Run the MCP server (stdio); this is what MCP clients start
npx bragbook-mcp status    Show sign-in, repository and access level
npx bragbook-mcp logout    Remove the saved sign-in and settings

--repo <owner/name>        Use this repository instead of the saved one
--level <public|full>      Use this access level instead of the saved one

Troubleshooting

Symptom

What to do

The client shows the server as Failed or not connected

Run npx bragbook-mcp status. Check node --version is 20 or later.

Tools answer "run npx bragbook-mcp setup"

You're not signed in, or the sign-in expired. Run setup again, then restart the MCP server (or your AI tool).

"Could not read the library from GitHub: Not Found"

The app can't see the repository: install it on that repository again via the app page, or run setup and pick the repository.

You get an old version

Use npx -y bragbook-mcp@latest in your config to always fetch the newest release.

The assistant doesn't use the tools

Mention bragbook in your request, and check the tools are listed (/mcp in Claude Code).

Other ways to sign in

If there is no saved sign-in (for example on a locked-down machine or in CI), bragbook-mcp tries these, in order:

  1. The GITHUB_TOKEN environment variable. Use a fine-grained token with read-only Contents access to your library repository only, and pass --repo owner/name.

  2. gh auth token, if the GitHub CLI is installed and signed in.

If none of these works, the server still starts, and every tool tells the assistant to run npx bragbook-mcp setup.

Where things are stored and how to revoke access

  • Settings and sign-in are saved in ~/.config/bragbook-mcp/config.json (or $XDG_CONFIG_HOME/…; on Windows, %APPDATA%\bragbook-mcp\config.json). The file can only be read by you (mode 600).

  • npx bragbook-mcp logout deletes that file.

  • To revoke the app itself, open GitHub → Settings → Applications, or uninstall the app from the repository.

Using your own GitHub App

To use your own app, create a GitHub App with these settings:

  • Repository permission Contents: read-only (Metadata read-only comes with it).

  • Enable Device Flow turned on.

  • No webhook, and no client secret or private key needed.

Then set BRAGBOOK_GITHUB_CLIENT_ID to your app's client ID for both setup and the server.

Remote use (claude.ai, ChatGPT, mobile)

Planned: a self-hosted Cloudflare Worker that serves the same five tools over HTTP, using a secret link per client. See docs/design.md.

Contributing

Development

npm ci
npm test
npm run build
node dist/cli.js --help

Releasing

Bump version in package.json, commit, then push a matching tag:

git tag v0.1.1 && git push origin v0.1.1

The release workflow runs the tests and publishes to npm with trusted publishing, so no npm token is involved.

License

MIT

Available Tools

5 tools
get_documentDocumentA
Read-onlyIdempotent

Read one document by path (e.g. data/projects/x.md, as returned by the other tools): its front matter and Markdown, filtered for the access level.

Inputs: path (required).

get_profileProfileA
Read-onlyIdempotent

Get the person's profile: basic facts (name, location, contact, …) and each profile section such as positioning and what they are looking for.

Inputs: no named parameters.

get_timelineTimelineA
Read-onlyIdempotent

List jobs, projects, education and (at full access) career gaps of 2+ months, most recent first; optionally only those overlapping from/to (YYYY-MM).

Inputs: to, from.

list_projectsProjectsA
Read-onlyIdempotent

List projects with company, dates, role, tech stack, one-line summary and document path; filter by company, skill (exact tech or tag) or keyword.

Inputs: skill, company, keyword.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation4/5

    Most tools target distinct retrieval needs: profile, chronology, project index, full-text search, and document reading. There is mild overlap because get_timeline also lists projects and list_projects can filter by keyword, but the descriptions make the intended boundaries reasonably clear.

    Naming Consistency4/5

    Four of five tools use a predictable verb_noun pattern: get_profile, get_timeline, list_projects, and get_document. The bare 'search' tool is the only deviation, lacking a noun object such as search_records, but the overall convention remains readable.

    Tool Count5/5

    Five tools is well-scoped for a personal career-record query server. Each tool covers a meaningful access pattern: summary profile, timeline, project listing, search, and raw document retrieval.

    Completeness4/5

    The surface covers the main read workflows for a bragbook: profile, timeline, projects, search, and document access. It is read-only with no create/update operations, which is a gap only if the server is meant to maintain entries rather than query them.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to access and analyze GitHub profile data, providing insights on repositories, commit history, coding patterns, and generating portfolio summaries for developers and recruiters.
      8
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to access live GitHub repository data without cloning, supporting repo summarization, file explanation, recent changes, and dependency analysis.
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to search and retrieve job listings, and to read or manage career profile data such as work history, job summaries, career goals, and technical skills.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to perform read-only scans of local projects, Git history, GitHub Actions workflows, machines, and GitHub accounts for supply-chain malware indicators, and to access cleanup and recovery guidance.
      MIT