mcp-ui-expo-tamagui
Generates React Native/Expo UI components using AI, integrates with Claude Desktop to create and optimize Tamagui-based components via natural language commands.
README
๐จ MCP UI Expo Tamagui Server
AI-Powered UI Component Generator for Expo + Tamagui with Claude Desktop Integration
๐ Automatically generate React Native/Expo components using AI Gemini through Model Context Protocol (MCP)
โจ Features
- ๐ค AI Component Generation: Create components with natural language descriptions
- ๐ Real-time Docs Search: Search Expo & Tamagui documentation
- โก Code Optimization: Optimize components for performance
- ๐จ Theme Configuration: Generate theme configs automatically
- ๐ก Smart Suggestions: Intelligent component recommendations
- ๐ณ Docker Ready: Production-ready containerization
- ๐ง TypeScript Support: Full type safety
๐ Quick Start
1. Installation & Build
git clone https://github.com/yourusername/mcp-ui-expo-tamagui.git
cd mcp-ui-expo-tamagui
npm install
npm run build
2. Configure API Key
export GEMINI_API_KEY=your-gemini-api-key
3. Test MCP Server
./test-mcp-tools.sh
๐ Claude Desktop Integration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-ui-expo-tamagui": {
"command": "node",
"args": ["/path/to/mcp-ui-expo-tamagui/build/index.js"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}
Usage with Claude
๐ฌ "Create a Button component with title, onPress, and variant props"
๐ฌ "How to implement navigation in Expo?"
๐ฌ "Suggest components for an e-commerce screen"
๐ฌ "Optimize this component for performance"
๐ฌ "Create dark theme with purple primary color"
๐ ๏ธ MCP Tools
| Tool | Description | Parameters |
|---|---|---|
generate_ui_component |
Generate UI component with AI | name, description, props, styling, platform |
search_expo_docs |
Search Expo documentation | query |
search_tamagui_docs |
Search Tamagui documentation | query |
get_component_suggestions |
Get component suggestions | context, requirements |
optimize_component |
Optimize component code | code, optimizationType |
create_theme_config |
Create theme configuration | colorScheme, primaryColors, components |
๐ณ Docker Deployment
Build & Run
# Build Docker image
docker build -t mcp-ui-expo-tamagui .
# Run with Docker Compose
docker-compose up
# Run standalone
docker run -e GEMINI_API_KEY=your-key mcp-ui-expo-tamagui
๐งช Testing
# Test MCP tools
./test-mcp-tools.sh
# Test Docker
./test-docker.sh
# TypeScript validation
npm run lint
# Jest tests
npm test
๐ Project Structure
mcp-ui-expo-tamagui/
โโโ src/
โ โโโ index.ts # Main MCP server
โ โโโ types/interfaces.ts # Type definitions
โ โโโ services/ # Core services
โ โโโ utils/ # Utilities
โโโ build/ # Compiled output
โโโ Dockerfile # Docker configuration
โโโ docker-compose.yml # Docker Compose
โโโ README.md # Documentation
๐ฏ Example Use Cases
E-commerce Product Card
{
name: "ProductCard",
description: "Product card with image, title, price, rating, add to cart",
props: [
{ name: "product", type: "Product", required: true },
{ name: "onAddToCart", type: "function", required: true }
]
}
Social Media Post
{
name: "PostCard",
description: "Post card with avatar, content, reactions",
styling: { theme: "dark", responsive: true }
}
๐ง Development
npm run dev # Development mode
npm run build # Build production
npm run test # Run tests
npm run lint # TypeScript check
๐จ Environment Variables
GEMINI_API_KEY- Google Gemini AI API key (required)NODE_ENV- Environment (optional)LOG_LEVEL- Logging level (optional)
๐ License
MIT License - see LICENSE file for details.
๐ Ready to Go!
Start creating amazing UI components with AI! ๐โจ
Happy Coding!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.