motion-dev-react-mcp
MCP server providing 33 verified Motion for React APIs with correct imports and defaults, enabling AI assistants to generate accurate animation code.
README
<p align="center"> <img src="./logo.png" width="120" alt="motion-dev-react-mcp logo" /> </p>
<h1 align="center">motion-dev-react-mcp</h1>
<p align="center"> <a href="https://www.npmjs.com/package/@orkait-ai/motion-dev-react-mcp"><img src="https://img.shields.io/npm/v/@orkait-ai/motion-dev-react-mcp?color=cb3837&label=npm" alt="npm" /></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-yellow.svg" alt="MIT" /></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-compatible-blue.svg" alt="MCP" /></a> <a href="https://motion.dev"><img src="https://img.shields.io/badge/Motion-v12-ff0055.svg" alt="Motion v12" /></a> <a href="https://github.com/orkait/motion-dev-react-mcp/stargazers"><img src="https://img.shields.io/github/stars/orkait/motion-dev-react-mcp?style=social" alt="Stars" /></a> </p>
<p align="center"> <a href="https://motion.dev">Motion</a> for React — inside your AI assistant.<br/> <strong>33 APIs. Correct imports. Accurate defaults. No hallucinations.</strong> </p>
Install
Claude Code
claude mcp add motion-dev-react-mcp -- npx -y @orkait-ai/motion-dev-react-mcp
Cursor / Windsurf / any MCP client
{
"mcpServers": {
"motion-dev-react-mcp": {
"command": "npx",
"args": ["-y", "@orkait-ai/motion-dev-react-mcp"]
}
}
}
<details> <summary>Build from source</summary>
git clone https://github.com/orkait/motion-dev-react-mcp.git
cd motion-dev-react-mcp && npm install && npm run build
claude mcp add motion-dev-react-mcp -- node $(pwd)/dist/index.js
</details>
What it does
Your AI writes Motion code that actually works — because it can look up the real API instead of guessing.
// Without MCP — AI hallucinates
import { useViewportScroll } from "framer-motion" // wrong
// With MCP — AI looks it up
import { useScroll, useTransform } from "motion/react" // correct
const { scrollYProgress } = useScroll({ target: ref, offset: ["start end", "end start"] });
Tools
| Tool | Purpose |
|---|---|
get_api |
Props, types, defaults, and usage for any component or hook |
search_docs |
Find the right API — "how to animate on scroll" |
get_examples |
Working code by category — scroll, drag, layout, exit, SVG... |
generate_animation |
Describe what you want → get a working component |
get_transitions |
Spring, tween, inertia config and orchestration |
list_apis |
Browse all 33 APIs, filter by kind |
Coverage
33 APIs — verified against motiondivision/motion v12 source code.
| Components | motion AnimatePresence LayoutGroup LazyMotion MotionConfig Reorder.Group Reorder.Item |
| Hooks | useAnimate useMotionValue useTransform useSpring useScroll useInView useMotionValueEvent useVelocity useTime useMotionTemplate useDragControls useAnimationFrame useReducedMotion useIsPresent usePresence usePresenceData useWillChange useCycle usePageInView |
| Functions | animate stagger hover press scroll inView |
14 example categories — animation, gestures, scroll, layout, exit, drag, hover, SVG, transitions, variants, keyframes, spring, reorder, performance.
Every prop, every default, every example — cross-referenced against the source, not just the docs.
Why this over the other one
| motion-dev-react-mcp | the other MCP | |
|---|---|---|
| APIs | 33 | 9 (5 broken) |
| Dependencies | 2 | 180+ (SQLite, Babel, Cheerio...) |
| Framework | React only | React + Vue + JS (stubs) |
| Defaults | Source-verified | From docs (some wrong) |
| Tests | 70 passing | 1 (1+1=2) |
| Last updated | Active | Aug 2025 |
Contributing
PRs welcome. Open an issue if Motion adds new APIs or you spot an inaccuracy.
Motion+ paid components (AnimateNumber, Carousel, Cursor, ScrambleText, Ticker, Typewriter) are intentionally excluded.
License
MIT © Orkait
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.