# Plasmic — how to use (mcp.ai)

Connect your Plasmic account and use 1 tools for website builders straight from your AI agent. Connect with your own API key. Plasmic is a visual builder for the web, enabling teams to create and manage web pages and components without code.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_plasmic?ms=1787291220000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `plasmic_global_actions_provider`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/plasmic`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/plasmic/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/plasmic/global/actions/provider` — Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.
  - body: { contexts: object[] }

## Example prompts
- "What can I do in Plasmic?"
- "Show me a summary of my Plasmic account"

## More
- Page: https://mcp.ai/plasmic
- Agent spec (llms.txt): https://mcp.ai/plasmic/llms.txt
- Postman collection: https://mcp.ai/plasmic/postman.json
