Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Phonebook

MCP server by stag-build Community

Phonebook turns the SwiftUI #Preview and Jetpack Compose @Preview screens in your codebase into a static component gallery. It is self-hosted and needs no new test code or SaaS account.

  • Score 69
  • 14 stars
  • 105 a week
  • MIT
  • Updated

Install Phonebook

Built from the published package, never by AI.

claude mcp add phonebook -- npx -y @stag-build/phonebook

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Phonebook in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the phonebook block.

About

Phonebook turns the SwiftUI #Preview and Jetpack Compose @Preview screens already in your codebase into a static, browsable component gallery. It is self-hosted, needs no SaaS account, and requires no new test code. Cards are grouped as component / state, inferred from preview names.

The generate command runs Roborazzi and ComposablePreviewScanner on the JVM for Android, or SnapshotPreviews on a simulator for iOS, and saves the output as a bundle. The build command turns that bundle into plain HTML that opens from file:// or any static host. A coding agent can drive Phonebook through its MCP server. It suits teams who want designers to browse screens without installing anything.

Written from the project's README and checked against it.

Tools it gives your assistant

  • check_setupDiagnoses your Phonebook setup, the same check as phonebook doctor.
  • analyze_coverageFinds components missing previews or dark variants.
  • get_preview_guidanceGives the assistant guidance for writing previews.
  • run_generateRuns the generate step that records previews into a bundle.
  • run_buildBuilds the static gallery site from a bundle.

What you need

  • Node.js, to run npx @stag-build/phonebook
  • An Android project with the Roborazzi and ComposablePreviewScanner setup
  • An iOS project with the SnapshotPreviews package and macOS
  • Xcode 26.3+ to use the Xcode agent configurations

Try asking

  • Use the phonebook MCP and create a catalog for my designer.
  • Check my Phonebook setup and tell me what is missing.
  • Find components in this repo that have no previews.

Good to know

  • V1 is single-platform, so one Android or iOS repo produces one bundle and one site.
  • iOS rendering requires macOS and runs on a simulator.
  • Android Studio Gemini Agent Mode is not supported yet.
  • Full-screen Android previews default to a Pixel 4a unless robolectricConfig is set.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Phonebook

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Phonebook: common questions

Does Phonebook need a SaaS account?

No. Phonebook is self-hosted and runs entirely in your CI or locally, with no SaaS account required.

Can Phonebook run Android previews without an emulator?

Yes. Android previews run through Roborazzi and ComposablePreviewScanner on the JVM via Robolectric, with no emulator, and work on Linux CI.

Can Phonebook be used from Android Studio?

Not yet. The Gemini Agent Mode in Android Studio only connects to remote httpUrl servers, so use a terminal-based client such as Claude Code or Codex CLI.

How do I install Phonebook?

In Claude Code run claude mcp add phonebook -- npx -y @stag-build/phonebook. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Phonebook the official server?

Phonebook is a community project by stag-build, not verified by a company domain.

Is Phonebook free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Phonebook safe to use?

It scores 69 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Phonebook?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Phonebook work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Phonebook Install

Add to stack

Loading.