lenis-mcp-server
MCP server providing embedded Lenis smooth scroll expertise to AI assistants, enabling setup generation, API reference, debugging, scroll patterns, and performance optimization without network requests.
README
<!-- Lenis MCP Server -->
šÆ Lenis MCP Server
<p align="center"> <img alt="GitHub language count" src="https://img.shields.io/github/languages/count/devAndreotti/lenis-mcp-server?color=FFF&labelColor=14b8a6&style=flat-square"> <img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/devAndreotti/lenis-mcp-server?color=FFF&labelColor=14b8a6&style=flat-square"> <img alt="GitHub stars" src="https://img.shields.io/github/stars/devAndreotti/lenis-mcp-server?color=FFF&labelColor=14b8a6&style=flat-square"> </p>
<p align="center"> <a href="https://opensource.org/licenses/MIT"> <img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License MIT"> </a> <a href="https://modelcontextprotocol.io"> <img src="https://img.shields.io/badge/MCP-Model_Context_Protocol-6366f1?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIgMkw0IDdWMTdMMTIgMjJMMjAgMTdWN0wxMiAyWiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+&logoColor=white" alt="MCP"> </a> <a href="https://lenis.darkroom.engineering/"> <img src="https://img.shields.io/badge/Lenis-Smooth_Scroll-0d9488?logoColor=white" alt="Lenis"> </a> <a href="https://www.typescriptlang.org/"> <img src="https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white" alt="TypeScript"> </a> <a href="https://greensock.com/gsap/"> <img src="https://img.shields.io/badge/GSAP-88CE02?logo=greensock&logoColor=white" alt="GSAP"> </a> </p>
MCP server that provides Lenis smooth scroll expertise to AI assistants. Knowledge-based ā no external API calls, all documentation is embedded.
š About
The Lenis MCP Server is a Model Context Protocol server that gives AI coding assistants deep knowledge about Lenis ā the lightweight, performant smooth scroll library by darkroom.engineering.
All documentation (settings, methods, events, patterns, troubleshooting) is embedded directly in the server. When an AI assistant calls a tool, it receives structured, accurate information ā no network requests, no API keys, zero latency.
š ļø Tools
| Tool | Description |
|---|---|
š§ lenis_generate_setup |
Generate setup code for vanilla JS, React, Vue, Next.js (+ GSAP, snap) |
š lenis_get_api_reference |
Query settings, methods, events, properties with search |
š lenis_debug_scroll_issue |
Diagnose scroll issues against known limitations |
šØ lenis_create_scroll_pattern |
Production-ready patterns: parallax, snap, horizontal, WebGL sync |
ā” lenis_optimize_performance |
Performance recommendations for your setup |
šļø How It Works
graph LR
A[š¤ AI Assistant] -->|Calls MCP tool| B[šÆ Lenis MCP Server]
B -->|Queries| C[š Embedded Knowledge Base]
C -->|Returns| B
B -->|Structured response| A
A -->|Generates code| D[š» Your Project]
style A fill:#6366f1,stroke:#4f46e5,color:#fff
style B fill:#14b8a6,stroke:#0d9488,color:#fff
style C fill:#f59e0b,stroke:#d97706,color:#fff
style D fill:#10b981,stroke:#059669,color:#fff
š¦ Installation
Via npx (recommended)
Add to your MCP config (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"lenis-mcp": {
"command": "npx",
"args": ["-y", "lenis-mcp-server"]
}
}
}
From source
git clone https://github.com/devAndreotti/lenis-mcp-server.git
cd lenis-mcp-server
npm install
npm run build
Then add to your MCP config:
{
"mcpServers": {
"lenis-mcp": {
"command": "node",
"args": ["path/to/lenis-mcp-server/dist/index.js"]
}
}
}
š Features
| Feature | Description |
|---|---|
| š Zero Latency | All docs embedded ā no network requests needed |
| šÆ Framework-Aware | Supports vanilla JS, React, Vue, and Next.js |
| š GSAP Integration | Deep knowledge of ScrollTrigger integration |
| š Smart Debugging | Matches symptoms against known limitations |
| š± Mobile-Ready | Performance tips for touch & mobile optimization |
| šØ Pattern Library | Parallax, snap, horizontal, WebGL sync, and more |
š¬ Example Prompts
- "Set up Lenis with GSAP ScrollTrigger in my React app"
- "What are all the Lenis settings and their defaults?"
- "My scroll is janky on Safari, help me fix it"
- "Create a parallax effect with Lenis and GSAP"
- "Optimize my Lenis setup for mobile devices"
- "How do I handle nested scroll containers?"
š Project Structure
lenis-mcp-server/
ā
āāā src/
ā āāā index.ts # MCP server with 5 tools
ā āāā knowledge/
ā āāā lenis-docs.ts # Complete Lenis knowledge base
ā
āāā package.json
āāā tsconfig.json
āāā LICENSE
āāā README.md
š Troubleshooting
| Problem | Solution |
|---|---|
| Server won't start | Ensure Node.js ā„ 18 and run npm run build first |
| Tools not appearing | Check MCP config path is correct and restart your IDE |
| Outdated information | Open an issue or PR to update the knowledge base |
šŖ Contributing
Contributions are welcome! Follow the steps below:
- Fork this repository.
- Create a branch:
git checkout -b feature/your-feature. - Commit your changes:
git commit -m "feat: my contribution". - Push to the branch:
git push origin feature/your-feature. - Open a Pull Request with a summary of proposed changes.
Use Conventional Commits: feat:, fix:, docs:, style:, refactor:, test:, chore:.
š License
This project is under the MIT license. See the LICENSE file for details.
<p align="center"> Built with ā by <a href="https://github.com/devAndreotti">devAndreotti</a> </p>
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.