Magic Patterns MCP server for AI agents

Live

OAUTH 2.1

AI

AI

Connect to Magic Patterns, the AI-powered UI design tool. Generate, edit, and manage design components and artifacts from your AI workflows.

  • Acts as the user: Every tool call runs as the authorizing user. Access and audit trail stay intact.
  • Credentials stay vaulted: AES-256 encrypted, resolved at request time, never stored in LLM context.
  • Scoped before every call: Per-user permissions enforced automatically. 90-day audit trail included.
Magic Patterns MCP
agent · Acme Q3
Run
Create Design in Magic Patterns MCP
S
magicpatternsmcp_create_design
85ms
Magic Patterns MCP agent
Creates a new magic patterns design. with a prompt, kicks off ai generation (poll get_design_status to track progress). .
Sources: Magic Patterns MCP
magicpatternsmcpmcp
1 tool call
18:29
Message Claude...

Tools your agent reaches for on Magic Patterns, scoped per user.

CALL ANY TOOL
Generate and iterate on UI designs and artifacts inside the user's Magic Patterns workspace.
magicpatternsmcp_ask_magicos
Ask magicos
Hand work to MagicOS, this OS's own Magic Patterns design agent, by sending it a message exactly as if the user had typed it into the OS's chat. ONLY when the user has explicitly asked for Magic Patterns' AI, MagicOS, or the OS's agent to do the work. Otherwise do the work yourself with the OS tools: this spends the user's Magic Patterns credits, and takes minutes. What happens: MagicOS reads the message, replies, and hands the work to threads that run inside the OS — new ones, or running ones the message changes. It builds nothing itself, and never asks you clarifying questions; a thread can stop to ask the user something instead. This call waits only until MagicOS has decided where the message goes, usually seconds, and returns its reply and the threads it handed work to. The work carries on after that: follow it with list_magicos_threads. While those threads work, do not edit the files they are on, and do not call finish_working for their work — the canvas rebuilds when they end. A thread waiting on the user is answered through here too: relay its question to the user, send their answer with this tool, and MagicOS passes it on. The message shows in the OS chat as sent by the user through your client.
Parameters
Name
Type
Required
Description
message
string
Required
What the user wants, in their words, as they would type it to MagicOS. Include what they said about it; add nothing they did not ask for. Name OS files by their canvas names.
osId
string
Required
The id of the OS to run against.
conversation
string
Optional
A short name for this conversation, which you choose once and pass unchanged on every call in it: a chat id, or any two random words. Without it every conversation you run on this OS counts as one writer, so another window's files are treated as yours.
threadId
string
Optional
The thread to continue, from an earlier ask_magicos or list_magicos_threads. Leave it out to start a new thread.
magicpatternsmcp_create_design
Create design
magicpatternsmcp_create_inspiration_document
Create inspiration document
magicpatternsmcp_create_os
Create os
magicpatternsmcp_delete_file
Delete file
magicpatternsmcp_done
Done
magicpatternsmcp_edit_file
Edit file
magicpatternsmcp_get_artifact
Get artifact
magicpatternsmcp_get_design_system
Get design system
magicpatternsmcp_grep
Grep
magicpatternsmcp_inspiration_add_variant
Inspiration add variant
magicpatternsmcp_inspiration_update_variant
Inspiration update variant
magicpatternsmcp_legacy_create_design
Legacy create design
magicpatternsmcp_legacy_create_inspiration_document
Legacy create inspiration document
magicpatternsmcp_legacy_get_artifact
Legacy get artifact
magicpatternsmcp_legacy_get_design_system
Legacy get design system
magicpatternsmcp_legacy_inspiration_clear_variants
Legacy inspiration clear variants
magicpatternsmcp_legacy_list_design_systems
Legacy list design systems
magicpatternsmcp_legacy_publish_artifact
Legacy publish artifact
magicpatternsmcp_legacy_read_artifact_files
Legacy read artifact files
magicpatternsmcp_legacy_read_recent_message_history
Legacy read recent message history
magicpatternsmcp_legacy_send_prompt
Legacy send prompt
magicpatternsmcp_list_design_systems
List design systems
magicpatternsmcp_list_magicos_threads
List magicos threads
magicpatternsmcp_publish_artifact
Publish artifact
magicpatternsmcp_read_file
Read file
magicpatternsmcp_read_os_guide
Read os guide
magicpatternsmcp_search_threads
Search threads
magicpatternsmcp_set_os_file_layout
Set os file layout
magicpatternsmcp_verify
Verify

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
from langchain_mcp_adapters.client import MultiServerMCPClient
from scalekit import ScalekitClient

client = ScalekitClient(env_url=ENV_URL, client_id=CLIENT_ID, client_secret=SECRET)
token = client.agent.get_token(user_id="user_id", connector="magicpatternsmcp")

mcp = MultiServerMCPClient({
"magicpatternsmcp": {
"url": "https://mcp.scalekit.com/magicpatternsmcp",
"headers": {"Authorization": "Bearer " + token}
}
})
tools = await mcp.get_tools()
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const client = new ScalekitClient({ envUrl, clientId, clientSecret });
const token = await client.agent.getToken({ userId: "user_id", connector: "magicpatternsmcp" });

const openai = new OpenAI();
// Connect to MCP at https://mcp.scalekit.com/magicpatternsmcp
// Pass: Authorization: Bearer + token
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const client = new ScalekitClient({ envUrl, clientId, clientSecret });
const token = await client.agent.getToken({ userId: "user_id", connector: "magicpatternsmcp" });

const anthropic = new Anthropic();
// Connect to MCP at https://mcp.scalekit.com/magicpatternsmcp
// Pass: Authorization: Bearer + token
from google.adk.agents import LlmAgent
from scalekit import ScalekitClient

client = ScalekitClient(env_url=ENV_URL, client_id=CLIENT_ID, client_secret=SECRET)
token = client.agent.get_token(user_id="user_id", connector="magicpatternsmcp")
# Connect to MCP at https://mcp.scalekit.com/magicpatternsmcp
# Pass: Authorization: Bearer + token
Try these prompts
Copy any prompt into your agent. Each maps directly to a Magic Patterns tool. Click to copy, paste into your agent, done.
Get started
Copy the prompt
Copied
Creates or overwrites one or more files in an artifact?
Copy the prompt
Copied
Sends a natural language prompt to the Magic Patterns AI for an existing design?
Advanced
Copy the prompt
Copied
Reads the recent chat item history for a design, returning the last 10 chat items (user prompts, AI responses, artifact ?
Copy the prompt
Copied
Compiles an artifact’s source files and sets it as the active artifact for the design?
SEE HOW AUTH WORKS
Your users connect once. Their Magic Patterns credentials stay vaulted, every call is scope-checked, and every action is logged.
1
Authorize
Your user connects
Magic Patterns MCP
once. We tie it to their identity and the meetings they approved — no shared bot account, no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Magic Patterns MCP
token lives in a vault scoped to them. User A's meetings are never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tokens:
auto-refreshed
3
Resolve
When your agent calls a
Magic Patterns MCP
tool, we fetch the right token server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Magic Patterns MCP
tool call is logged — who triggered it, which meeting was fetched, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Engineering Teams
Engineering standup agent
Pulls commits from GitHub and GitLab, tracks issue movement in Jira, and posts a per-engineer standup brief to Slack. Each engineer's activity is read on their own delegated OAuth.
Engineering Teams
Auto release notes agent
Reads merged GitHub PRs, groups them into structured release notes, publishes the page to Notion, and announces the release in Slack. Every call runs on the engineer's own delegated OAuth.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Test other agents
See the same per-user auth pattern across other connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
ENGINEERING
Engineering standup agent
Pull commits from GitHub and GitLab, track Jira issue movement, and post a per-engineer standup brief to Slack.
ENGINEERING
Auto-release notes agent
Group merged GitHub PRs into structured release notes, publish the page to Notion, and announce the release in Slack.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared token looks fine in a demo. In production every call looks like a service account. Scalekit resolves the real user credential.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
One connector today. Ten tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions

Does the agent access Magic Patterns as the user or as a shared key?
As the user. Each workspace member authorizes once and Scalekit resolves their credential at request time. Audit logs attribute every action to that user, not a shared service account.

Where is the Magic Patterns OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Tokens never appear in prompts, logs, or LLM context.

Can I limit what the agent is allowed to do in Magic Patterns?
Yes. Pass a tool name filter to listScopedTools so the AI agent only sees the subset you authorize. Pre-API-call scope checks block out-of-policy actions before the request reaches Magic Patterns.

What happens when a user revokes Magic Patterns access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.

Whose design system do generated components use?
The authorizing user's Magic Patterns workspace and design systems. Generations and artifact edits bill and attribute to that user, keeping design output inside the right team.

Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""magicpatternsmcp"": {
""url"": ""https://mcp.scalekit.com/magicpatternsmcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.magicpatternsmcp]
url = ""https://mcp.scalekit.com/magicpatternsmcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""magicpatternsmcp"": {
""url"": ""https://mcp.scalekit.com/magicpatternsmcp"",
""type"": ""http""
}
}
}