MCP server
The PlentyLabs MCP server allows AI clients to work with your data in the same way as you would through the app.
Server
https://mcp.plentylabs.com/mcp- Transport: streamable HTTP. Every message is a JSON-RPC
POSTto the server URL. - Sessions: none. Each request stands alone and responses are JSON.
- Authentication: OAuth 2.1. API keys are not accepted.
- Tools and prompts: the client lists them after connecting. They cover boards, the asset library, Brand kits and image, video and audio generation. Clients that support MCP Apps also get tools that open views in the chat.
Connect
Add the server as a remote HTTP server, then sign in.
{
"mcpServers": {
"com.plentylabs/mcp": {
"type": "http",
"url": "https://mcp.plentylabs.com/mcp"
}
}
}Sign-in
- The client calls the server without a token and gets
401with aWWW-Authenticateheader. - The header points to the protected resource metadata at
https://mcp.plentylabs.com/.well-known/oauth-protected-resource/mcp, which names the authorization server. - The client reads the authorization server's metadata and identifies itself with a Client ID Metadata Document, or registers with dynamic client registration if it does not support one.
- The person signs in to PlentyLabs and approves the client. The client gets an access token with PKCE.
- The client sends the token as
Authorization: Beareron every request, and refreshes it when it expires.
The client has the signed-in person's access in every workspace they belong to. ListMyWorkspaces returns their workspace ids.
Artboard sizes and templates
ListCustomFormats, CreateCustomFormat and DeleteCustomFormats manage the workspace's saved artboard sizes, shared with Create's size menus. Each side must be a whole number from 64 to 8192 pixels, and a workspace can save up to 50 sizes. Saving the same dimensions returns the existing preset. Removing a preset leaves artboards and templates unchanged. These operations are also available through the GraphQL API with a workspace API key.
CreateArtboard accepts custom pixel dimensions in input.size, and CreateTemplate preserves them when saving that artboard. API keys can use the same operations through GraphQL as createArtboard and createTemplate. ApplyTemplate keeps every saved artboard's dimensions when formats is omitted, including for language variants. To request other sizes, pass preset ratios or pixel strings such as formats: ["1:1", "1999x999"]. Use dimensions from ListCustomFormats, not preset ids; the size does not need to be saved first. The GraphQL applyTemplate mutation accepts the same format strings.
Limits and errors
GenerateImage,GenerateVideoandEditImagetake 1 to 12 entries per call.- A request body can be at most 1 MB.
- Tools spend the signed-in person's request and complexity budgets and the same credits as the app. Generation tools share the workspace's generation limits, and
ImportImageFromUrlhas its own per-person limit, as do tools that open a view in the chat. - A tool that fails returns
isError: true; its text holds the GraphQL response with the API's error codes.GenerateImage,GenerateVideoandEditImagesetisErroronly when no entry succeeded, and list each failed entry's message by index. - A request with no valid token gets
401. An unsupportedMCP-Protocol-Versiongets400with JSON-RPC error-32022listing the supported versions.initializenegotiates the version instead. - A request that takes longer than 15 seconds gets
408.GETandDELETEget405.