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.
Install Phonebook
Built from the published package, never by AI.
claude mcp add phonebook -- npx -y @stag-build/phonebookRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"phonebook": {
"args": [
"-y",
"@stag-build/phonebook"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"phonebook": {
"args": [
"-y",
"@stag-build/phonebook"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"phonebook": {
"args": [
"-y",
"@stag-build/phonebook"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add phonebook -- npx -y @stag-build/phonebook{
"mcpServers": {
"phonebook": {
"args": [
"-y",
"@stag-build/phonebook"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add phonebook npx -y @stag-build/phonebookGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
