SDK overview
Use the Majico SDK when you want to read or update brand data from code — CI pipelines, internal tools, or coding agents — instead of clicking through the web app.
What you get
| Package | npm | Purpose |
|---|---|---|
@majico/sdk | @majico/sdk | TypeScript HTTP client for the Majico public API |
user-majico-mcp | user-majico-mcp | MCP server so Cursor and other agents can call the same API via tools |
Both require a Pro or Creator project and its project API key from Account → Integrations .
Quickstart (@majico/sdk)
import { MajicoClient } from "@majico/sdk";
const client = new MajicoClient({
apiKey: process.env.MAJICO_API_KEY!,
projectId: process.env.MAJICO_PROJECT_ID!,
baseUrl: "https://api.majico.xyz",
});
const guidelines = await client.guidelines.get();
console.log(guidelines.productName, guidelines.llmPrompt.slice(0, 200));When to use which
@majico/sdk— Node scripts, backends, tests, or any TypeScript/JavaScript app that calls Majico over HTTP.user-majico-mcp— Cursor, Claude Desktop, or remote agents that speak MCP. See MCP server and the Cursor integration guide.MajicoAgentClient— Server-side agents that bootstrap new projects (requiresMAJICO_AGENT_API_SECRET). See API reference.
Next steps
- Install
@majico/sdk - Browse the API reference
- Wire up MCP for Cursor