Overview
Lua publishes an MCP (Model Context Protocol) server athttps://docs.heylua.ai/mcp. Add it to any MCP-compatible AI tool — Claude Desktop, Cursor, Windsurf, and others — and your assistant gains direct, always-up-to-date access to the full Lua CLI documentation.
Once connected, you can ask questions like “How do I create a scheduled job?” or “Show me the LuaJob API” and get answers grounded in the real docs, not stale training data.
The MCP server is hosted and maintained by Mintlify. It auto-updates whenever the Lua docs are published, so it is always current.
What you get
Two tools become available inside your AI tool the moment it connects:| Tool | What it does |
|---|---|
search_lua_cli | Semantic search across all Lua CLI documentation |
query_docs_filesystem_lua_cli | Run read-only shell-like queries (head, cat, rg, ls, tree, grep, find, jq, …) against a virtualized, in-memory filesystem of every documentation page and OpenAPI spec |
search_lua_cli for broad/conceptual queries (“how do I authenticate?”) and query_docs_filesystem_lua_cli to read the full content of a specific page by path (e.g. head -200 /cli/debugging.mdx) or to do exact keyword/regex matches across the docs.
Claude Desktop
Open your Claude Desktop config
On macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonOn Windows: %APPDATA%\Claude\claude_desktop_config.jsonCreate the file if it does not exist.Cursor
Create or open your MCP config
Project-level (only active in this project):Global (active in all projects):
Windsurf
Other tools (mcp-remote fallback)
For AI tools that only support the stdio transport (rather than HTTP), use themcp-remote bridge:
npx-style stdio MCP server definition.
What to ask
Once connected, your AI assistant can answer questions like:- “How do I define a LuaJob with a cron schedule?”
- “What flags does
lua jobs deployaccept?” - “Show me the full Jobs API reference.”
- “How do I test a webhook locally?”
- “What’s the difference between a preprocessor and a postprocessor?”
search_lua_cli to find the relevant pages and query_docs_filesystem_lua_cli (with commands like head -200 /cli/logs-command.mdx or rg -il "agent_error" /) to pull their full content or do precise keyword matches — so answers come from the actual documentation, not guesswork.
Related
AI Agent Building Guide
Complete workflow for building Lua agents with Cursor, Windsurf, or GitHub Copilot
MCP Servers Overview
Connect external MCP servers to your Lua agent
CLI Overview
All available Lua CLI commands
LuaMCPServer API
Connect external tools to your agent via MCP

