gsap-mcp
A local/global MCP server that enables AI agents to generate GSAP v3 animation code, search documentation, validate CSS selectors, and provide best practice guidance.
README
<img src="https://api.iconify.design/simple-icons:javascript.svg?color=%23ffffff" width="28" height="28" align="center" /> GSAP MCP Server (Model Context Protocol)
GSAP MCP Server adalah server MCP lokal & global yang dirancang khusus untuk mempermudah AI Agent (seperti OpenCode, Claude Code, Cursor, dll.) dalam membuat kode animasi GSAP v3, mencari dokumentasi, memvalidasi sintaks selektor CSS, dan memberikan panduan praktik terbaik (best practices).
<img src="https://api.iconify.design/lucide:star.svg?color=%23ffffff" width="22" height="22" align="center" /> Fitur Utama
- Pencarian Dokumentasi Hibrida: Pencarian dokumentasi instan secara offline dan fallback pencarian realtime (live fetch) langsung ke situs resmi gsap.com.
- Generasi Kode Animasi: Menghasilkan kode GSAP untuk
to,from,fromTo,timeline,stagger, danscrollTrigger. - Validasi Selektor CSS: Memeriksa potensi bug sintaksis selector DOM dan masalah kompatibilitas cross-browser (seperti
:has()atau kurung unclosed). - Panduan Best Practices & Debugging: Pembantu otomatis untuk mengatasi masalah animasi seperti animasi tidak jalan, ScrollTrigger macet, atau optimasi React/Vue/Svelte.
- Efisiensi Token AI: Output teks yang sudah disanitasi dari HTML junk tag (
<nav>,<style>,<script>) untuk menghemat context window AI.
<img src="https://api.iconify.design/lucide:cpu.svg?color=%23ffffff" width="22" height="22" align="center" /> Stack Teknologi
- Runtime: Node.js (v18.0.0+) ES Modules
- Protocol:
@modelcontextprotocol/sdk(StdioServerTransport) - Validation:
zodv3
<img src="https://api.iconify.design/lucide:package.svg?color=%23ffffff" width="22" height="22" align="center" /> Cara Instalasi & Konfigurasi
1. Instalasi Dependensi Lokal
git clone https://github.com/itzd-dev/gsap-mcp.git
cd gsap-mcp
npm install
2. Konfigurasi Global di OpenCode
Tambahkan konfigurasi berikut ke file konfigurasi global OpenCode Anda di ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"gsap": {
"type": "local",
"command": [
"node",
"/Users/odi/Documents/gsap-mcp/src/index.js"
],
"enabled": true
}
}
}
3. Konfigurasi di Antigravity IDE / Claude Desktop
Tambahkan ke konfigurasi MCP Server Antigravity IDE (mcp_config.json):
{
"mcpServers": {
"gsap": {
"command": "node",
"args": [
"/Users/odi/Documents/gsap-mcp/src/index.js"
]
}
}
}
<img src="https://api.iconify.design/lucide:wrench.svg?color=%23ffffff" width="22" height="22" align="center" /> Daftar Tools MCP (10 Tools)
| Tool | Deskripsi | Argumen Utama |
|---|---|---|
generate-animation |
Menghasilkan kode animasi GSAP presisi. | type, target, duration, props, scrollTrigger, stagger, ease |
validate-target |
Memvalidasi sintaks CSS selector sebelum animasi dibuat. | target (string selector) |
search |
Mencari dokumentasi GSAP v3 offline di memori lokal. | query, category, limit |
fetch-live-docs |
Mengambil dokumentasi realtime dari situs web resmi GSAP. | path, maxCharacters |
api |
Mendapatkan referensi API detail untuk metode/properti GSAP. | name, includeExamples |
best-practices |
Mengambil panduan praktik terbaik (performa, React, ScrollTrigger). | topic |
debug |
Memberikan solusi untuk masalah animasi yang sering terjadi. | issue, context |
setup |
Menghasilkan kode boilerplate setup GSAP per framework. | framework, features |
plugins |
Menampilkan daftar seluruh plugin GSAP (Free & Club). | filter |
easing |
Referensi lengkap fungsi easing GSAP beserta deskripsinya. | type |
<img src="https://api.iconify.design/lucide:flask-conical.svg?color=%23ffffff" width="22" height="22" align="center" /> Pengujian & Verifikasi (Test Suite)
Server ini dilengkapi dengan test suite otomatis untuk memverifikasi keabsahan sintaksis dan tool handler.
Jalankan perintah pengujian:
npm test
Output Pengujian:
š TEST SUMMARY
ā
Tools: 10/10
ā
Helpers: 12/12
ā
Imports: OK
š ALL TESTS PASSED! Server ready to use.
<img src="https://api.iconify.design/lucide:file-text.svg?color=%23ffffff" width="22" height="22" align="center" /> Lisensi
MIT License - Bebas digunakan dan dikembangkan untuk proyek komersial maupun non-komersial.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.