Repository avatar
Other Tools
v0.1.0
active

mobileblueprint-mcp

io.github.ahmedsaeed1-eng/mobileblueprint-mcp

Accessible mobile UI specs and static Flutter / React Native starter components.

Documentation

MobileBlueprint MCP symbol

MobileBlueprint MCP

A mobile design specification library, available through MCP.

Source version 0.1.0 • MIT • Node.js 20+ • 9 screen patterns
Flutter and React Native static starters • English / Arabic • LTR / RTL

MCP tests GitHub stars MIT license Node.js 20+ Model Context Protocol stdio

MobileBlueprint MCP is a lightweight local MCP server for developers and UI designers who need structured mobile screen requirements before implementing a real application. It returns original, deterministic layouts with clear component roles, dimensions, design tokens and localization. It does not generate entire apps, edit projects or execute generated code.

The pattern catalog

Illustrative mobile UI concept sheets for dashboard, form, and Arabic conversation

Concept diagrams with sample values for design discussion; these are not native app screenshots or compiled output.

Design patterns

PatternIncluded elements
DashboardSummary, metric cards, recent activity
SettingsProfile section, preferences, toggle
ListSearch field, labeled list rows
EmptyExplanatory empty state and suggested next action
LoadingTextual busy status
ErrorAccessible error message and retry affordance
FormLabeled fields, helper text, save and cancel affordances
ChatSample messages and composer layout
NavigationMain sections and tab affordances

Every content pattern accepts default, empty, loading and error states. The three dedicated state patterns always use their corresponding state. All patterns accept light/dark themes, English/Arabic and a logical viewport width from 320 to 768.

Package installation

Once this version is published to npm by the repository maintainer, register the pinned local stdio server directly with Codex:

codex mcp add mobileblueprint -- npx --yes mobileblueprint-mcp@0.1.0

Or install the exact release and use the installed command:

npm install -g mobileblueprint-mcp@0.1.0
codex mcp add mobileblueprint -- mobileblueprint-mcp

The package metadata declares the MCP Registry identity io.github.ahmedsaeed1-eng/mobileblueprint-mcp. The official registry entry is a separate publication step after npm release; local stdio use does not require it.

Quick start

Requires Node.js 20+.

git clone https://github.com/ahmedsaeed1-eng/mobileblueprint-mcp.git
cd mobileblueprint-mcp
npm ci
npm test

The server communicates over standard input/output. Register the absolute path in an MCP client (without starting a separate network server).

Codex

codex mcp add mobileblueprint -- node /absolute/path/to/mobileblueprint-mcp/src/server.js

Or add this entry to your client's MCP configuration:

{
  "mcpServers": {
    "mobileblueprint": {
      "command": "node",
      "args": ["/absolute/path/to/mobileblueprint-mcp/src/server.js"]
    }
  }
}

On Windows, substitute the actual absolute path (escaped backslashes or forward slashes as supported by your MCP client). Restart or reload the client after registering.

Tools

ToolArgumentsOutput
list_mobile_patternsNonePattern IDs, descriptions and supported states
create_screen_specpattern plus optional locale, theme, width, stateStructured screen specification
generate_ui_snippetSame screen options and required frameworkStatic Dart or JSX text and integration notes

Input constraints

  • pattern: dashboard, settings, list, empty, loading, error, form, chat, navigation.
  • locale: en (default), ar.
  • theme: light (default), dark.
  • width: integer 320–768; default 390 logical pixels.
  • state: default, empty, loading, error.
  • framework: flutter or react-native (snippet tool only).

Example

Call create_screen_spec with:

{
  "pattern": "dashboard",
  "locale": "ar",
  "theme": "dark",
  "width": 768
}

The response includes Arabic title/copy, RTL direction, two dashboard columns at that width, a 32-unit outer margin, a capped content width, colors, typography, spacing, touch-target guidance and semantic component IDs. Both machine-readable structuredContent and JSON text are returned.

Request a static snippet with generate_ui_snippet:

{
  "pattern": "form",
  "framework": "flutter",
  "locale": "en",
  "width": 390
}

This returns a BlueprintScreen example with layout, visible field labels, safe-area and scroll structure. React Native generates JSX with similar semantics and a note to use your app's safe-area implementation. Controls are visual examples only; connect your own business behavior and navigation.

Localization and accessibility

  • Arabic and English example labels with matching RTL/LTR directions.
  • Interactive affordances specify at least a 48-unit touch target.
  • Focus order follows blueprint component order.
  • Text and muted-text color pairs were tested for normal-text WCAG AA contrast in both built-in palettes. Modified colors and actual rendering must be re-evaluated.
  • Layout instructions include scrolling, safe areas, directional spacing, text wrapping and a 200% font-scale test recommendation.
  • Real accessibility depends on implementation, platform and content. Test independently with native assistive technology and devices.

Scope and data handling

All output is deterministic from built-in templates. No AI provider, account, network request, file discovery, shell command, or external data is needed. The stdio server does not modify the user's project or execute a snippet. Examples are illustrative; the dashboard's numbers are fixed sample values.

The snippet width is the requested design viewport; regenerate or adapt the starter for other widths. Snippets are not full Flutter or React Native applications and have no real interactions, authentication or network data. They must be integrated, compiled, rendered and tested in your own project.

Testing

npm run check
npm test

The current source passed seven Node tests, including 432 deterministic combinations, touch targets/focus order, contrast checks and static snippet generation. The integration test uses the official MCP SDK client to invoke all tools via stdio, including invalid-input checks and equality of text/structured outputs. React Native JSX variants received an additional syntax-only transpilation check during Linux verification; no React Native or Flutter native build or device rendering was performed. Windows/macOS runtimes have not been separately verified.

License

MIT. See LICENSE and third-party notices.