Poke MCP + Gemini Frontend Tools

Poke MCP + Gemini Frontend Tools

Provides AI-powered tools for UX/UI review, web component generation, and code refactoring using Google Gemini.

Category
Visit Server

README

Poke MCP + Gemini Frontend Tools

MCP Server ที่มีเครื่องมือ AI ช่วยเรื่อง UX/UI Review, สร้าง Component เว็บ, และ Refactor โค้ด โดยใช้ Gemini

ออกแบบมาเพื่อใช้ร่วมกับ Poke AI โดยเพราะ

Features

  • review_ui_design — วิจารณ์ UX/UI จากภาพหรือคำอธิบาย
  • generate_web_component — สร้างโค้ด React + Tailwind ตาม requirement
  • refactor_code — ปรับปรุงและ refactor โค้ดเก่า

Quick Start (Deploy บน Render)

1. Fork หรือ Clone Repo นี้

git clone https://github.com/YOUR_USERNAME/poke-mcp-gemini-frontend-tools.git
cd poke-mcp-gemini-frontend-tools

2. สร้าง Gemini API Key

  1. ไปที่ Google AI Studio
  2. สร้าง API Key ใหม่ (ฟรี)
  3. คัดลอก key ไว้

3. Deploy บน Render (แนะนำ)

  1. ไปที่ Render.com → New Web Service
  2. Connect GitHub repo นี้
  3. ตั้งค่า:
    • Name: poke-mcp-gemini-frontend
    • Environment: Python 3
    • Build Command: pip install -r requirements.txt
    • Start Command: uvicorn src.server:app --host 0.0.0.0 --port $PORT
  4. เพิ่ม Environment Variable:
    • GEMINI_API_KEY = (key ที่ได้จากขั้นตอน 2)
  5. Deploy

หลัง deploy เสร็จ คุณจะได้ URL แบบนี้: https://poke-mcp-gemini-frontend.onrender.com/mcp

4. เชื่อมต่อกับ Poke

  1. ไปที่ Poke Settings → Connections → Integrations
  2. ตั้งชื่อ integration เช่น Gemini Frontend Tools
  3. ใส่ MCP Server URL:
    https://your-service-name.onrender.com/mcp
    
  4. (Optional) ใส่ API Key ถ้าคุณตั้งค่าไว้
  5. Create Integration

5. ทดสอบการใช้งาน

ลองพิมพ์ใน Poke:

ช่วยรีวิว UI หน้านี้ให้หน่อย (แนบภาพมาได้)

ใช้ Gemini Frontend Tools integration's generate_web_component tool 
สร้างปุ่ม gradient สีฟ้า-ม่วง แบบมี hover effect ด้วย React + Tailwind

ช่วย refactor โค้ดนี้ให้ดีขึ้น
[paste โค้ด]

ตัวอย่าง Prompt ที่ใช้ได้ดี

Review UI

  • "ช่วยรีวิวภาพนี้ให้หน่อย ว่าดีไหม ควรปรับอะไร"
  • "ใช้ review_ui_design tool วิจารณ์ dashboard นี้"

Generate Component

  • "สร้าง component Card แบบสวยๆ สำหรับแสดงสินค้า ใช้ Tailwind"
  • "ใช้ generate_web_component tool สร้าง modal แบบ responsive"

Refactor

  • "ช่วย refactor โค้ดนี้ให้ใช้ modern pattern มากขึ้น"
  • "ใช้ refactor_code tool ปรับปรุงโค้ดนี้ให้อ่านง่ายขึ้น"

Development (Local)

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# สร้างไฟล์ .env แล้วใส่ GEMINI_API_KEY
cp .env.example .env

python src/server.py

ทดสอบด้วย MCP Inspector:

npx @modelcontextprotocol/inspector http://localhost:8000/mcp

Tech Stack

  • Python + FastMCP
  • Google Gemini 1.5 Pro / Flash
  • Deploy on Render (รองรับ Streamable HTTP)

Next Steps / Ideas

  • เพิ่ม tool generate_landing_page
  • เพิ่ม tool check_accessibility
  • เชื่อมกับ Supabase / Vercel API
  • สร้าง tool สำหรับ Framer Motion animation

สร้างโดย Grok สำหรับผู้ใช้ที่ต้องการขยายความสามารถของ Poke ด้วย Gemini

มีคำถามหรืออยากเพิ่ม tool ฮะไร บอกได้เลย!

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured