Integration
Lamina + Cursor
Add Lamina's five MCP tools to Cursor's agent loop — generate, track, evaluate, and distribute media without leaving the editor.
The Lamina + Cursor integration adds Lamina's five MCP tools to Cursor's agent loop. Add the server in Settings → Features → MCP Servers, or edit ~/.cursor/mcp.json. Cursor's agent can then generate, track, evaluate, and distribute media as part of any task — product images, social reels, or campaign banners — without leaving the editor.
What you can do
- •MCP tools available in Cursor Composer and inline edit
- •Brand-aware prompts grounded in the brand kit lookup tool
- •Streaming progress shown inline in the agent transcript
- •Distribute outputs to Shopify, Sanity, Drive, or any webhook
- •Use `cursor mcp` CLI to add or remove the Lamina server programmatically
Setup
- 1
Open MCP settings
Cursor → Settings → Features → MCP Servers → Add Server. Or edit ~/.cursor/mcp.json directly.
- 2
Add the Lamina entry
Use the same JSON shape as Claude Desktop — command npx, args [-y, @lamina/mcp], env { LAMINA_API_KEY }.
- 3
Reload Cursor
Cmd+Shift+P → 'Reload Window'. The five Lamina tools will appear in Composer's tool list.
- 4
Use from Composer
Type a brief: 'generate a hero image for Homestead SS26 sage linen, push to Shopify product gid://...'. Cursor's agent will call lamina.create + lamina.distribute.
Example
~/.cursor/mcp.json
// ~/.cursor/mcp.json
{
"mcpServers": {
"lamina": {
"command": "npx",
"args": ["-y", "@lamina/mcp"],
"env": { "LAMINA_API_KEY": "sk-lm-…" }
}
}
}How it works
Cursor's agent loop discovers MCP tools at startup. Once the Lamina server is added, the five tools appear alongside Cursor's built-in ones (codebase search, terminal, file ops). The Composer agent calls them inline; phase events from a long-running run stream into the transcript so you see queued → composing → rendering → done in real time.
When to use it
Use this integration when your developers live in Cursor and you want generative media to be a one-line tool call from inside any task — building a marketing site, scaffolding a Shopify theme, or prototyping a brand microsite. The agent can chain Lamina with Cursor's filesystem tools to drop generated assets directly into a public/ folder.