Love2d MCP Server
MCP server for Love2D API documentation
Ask AI about Love2d MCP Server
Powered by Claude Β· Grounded in docs
I know everything about Love2d MCP Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
love2d-mcp
Model Context Protocol server for the LΓVE 2D game framework API
Gives AI assistants (Claude, Gemini, Copilot, Cursor, etc.) accurate, searchable access to the full LΓVE 12.0 API β directly inside the tools they already use.
What it offers
Tools
| Tool | Description |
|---|---|
love2d_search_docs | Full-text fuzzy search across all API symbols. Returns ranked matches. |
love2d_lookup_symbol | Full documentation for a specific symbol β signatures, args, returns, examples. |
love2d_update_docs | Check for and download the latest docs from GitHub. |
Resources
URI template docs://love2d/{module}/{symbol} β browse documentation pages directly by URI.
Prompts
explain_api β template that asks the model to explain a specific LΓVE API with examples.
Installation
Requirements
- Node.js β₯ 18
npm install -g love2d-mcp-server
On install, the package will attempt to fetch the latest docs from GitHub. If you are offline it exits cleanly and uses the bundled snapshot.
Configure your AI client
The recommended setup uses npx so no global install is needed and the package always runs the latest published version.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"love2d": {
"command": "npx",
"args": ["-y", "love2d-mcp-server"]
}
}
}
VS Code (GitHub Copilot / Continue / etc.)
Add to .vscode/mcp.json in your project, or to your user settings.json:
{
"mcp": {
"servers": {
"love2d": {
"type": "stdio",
"command": "npx",
"args": ["-y", "love2d-mcp-server"]
}
}
}
}
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"love2d": {
"command": "npx",
"args": ["-y", "love2d-mcp-server"]
}
}
}
Usage examples
Once configured, just ask naturally in chat:
"How do I play a looping audio track in LΓVE?" "Show me the signature for love.graphics.draw" "What physics body types exist?" "How do I handle keyboard input in LΓVE 12?"
The AI will automatically call love2d_search_docs or love2d_lookup_symbol as needed.
Keeping docs up to date
Ask the AI: "Update the Love2D docs" β or call the tool directly:
love2d_update_docs({ force: false })
The updated database is cached locally; the server reloads it on the next restart.
Development
npm run dev # tsx watch β auto-reloads on src changes
npm run inspect # opens MCP Inspector in browser for manual testing
npm run build # sync data/ from submodule + compile TypeScript
npm run sync-data # manually copy latest submodule dist β data/
Update flow
npm install
βββ postinstall β try GitHub fetch β cache to .love2d-mcp-cache/
β if fails: use bundled data/
MCP server first tool call
βββ lazy-load from cache (if present) or data/ (bundle)
βββ fire-and-forget background check β update cache for next restart
love2d_update_docs tool
βββ explicit update + immediate in-memory reload
Data sources
The bundled database merges:
| Source | Records |
|---|---|
love2d-community/love-api | Low-level API (arguments, signatures) |
| LΓVE wiki snapshot | High-level docs, examples, notes |
Database maintained at vanrez-nez/love2d-docs-search.
License
MIT
