Skip to content
Gelatin UIAlpha

Connect the MCP server

Connect your AI agent to the Gelatin UI MCP server. It finds items, reads their docs, plans the install, and checks the code it writes.

For AI agents · step 2 of 4 · 9 min read

Prompt for your agent

Read https://gelatinui.com/docs/mcp-server.md. Connect the Gelatin UI MCP server to the agent I use, with the setup for that client; if it is not listed, use the steps of Any other client. Then call search_items with the queries ['button']. Done: the call answers with button items. If the client cannot connect yet, tell me why.

Your agent reads /docs/mcp-server.md: the same text as this page, as Markdown.

The MCP server puts Gelatin UI inside your agent. It lets an agent in your editor or chat find items, read them, and plan the install. MCP (Model Context Protocol) is the standard way for an agent to call tools on a server.

  • Server URL: https://gelatinui.com/mcp
  • Key: none for Free items. No account either.
  • Protocol: MCP versions 2024-11-05 to 2026-07-28, with no session. Clients that work lists what we tested.

What the agent can do

Each job uses one or more tools of the server:

  • Find items. Find the items for what you build, and compare items that look alike (search_items, compare_items).
  • Read an item. What it is, how to add it, its parts, props, and source (get_item).
  • Plan the install. Get the setup steps and the add command before the agent changes your project (get_install_plan).
  • Check the code. Check the code that the agent wrote, or a planned tree before it writes code (check_usage).
  • Make a theme. Make a theme from your brand color, font, and radius (get_theme).
  • Search the docs. Search these docs pages and the Gelatin UI agent skill (search_docs, get_agent_skill).
  • Pro and feedback. Learn what Pro gives, and send feedback to our team (get_pro_access, send_feedback).

The server also gives the docs pages as resources.

Set up your client

Find your client below and follow its setup. Each setup first says if the client works today. Not listed? Use Any other client.

Claude Code

Works today (tested on Claude Code 2.1.274).

Run this command one time in your project folder. Claude Code adds the server for this project only; add --scope user to add it for all your projects:

With a Pro API key, add the header. Keep the single quotes: Claude Code then stores ${GELATIN_UI_PRO_TOKEN} as text and reads the key at each connect, so the key never sits in a config file. Set GELATIN_UI_PRO_TOKEN in the shell that starts Claude Code (your shell profile, for example). Claude Code does not read .env.local:

With double quotes, your shell puts the key itself into ~/.claude.json as plain text. If the variable is not set when Claude Code starts, claude mcp list warns, and the server gives Free items only.

To share the server with your team, put this .mcp.json file in the project root. The file holds no key. When Claude Code starts, it reads the key from the environment of each person:

JSON

To check the setup, type /mcp in Claude Code. The list shows the gelatin-ui server and its tools.

Claude.ai and Claude Desktop

Should work: the server answers the MCP versions these apps speak. Not yet tested in the apps.

  1. Open the Connectors page.
  2. Select Add, then Add custom connector.
  3. Type the name Gelatin UI and the URL https://gelatinui.com/mcp, then select Continue.
  4. Under Authentication, select No sign-in. Then select Add.
  5. In a chat, select +, find Gelatin UI under Connectors, and turn it on.

The Free plan of Claude allows one custom connector. On a Team or Enterprise plan, an owner adds the connector in Organization settings, then each member selects Connect.

A custom connector gives Free items only, unless your organization has the Request headers section (a beta). Then add the header authorization with the value Bearer <your key>, with the space. You cannot change a header later: remove the connector and add it again. For Pro items in other cases, use a client that sends a header (Claude Code, Cursor, VS Code, Codex).

Cursor

Should work. Cursor speaks MCP versions up to 2025-11-25, and the server answers them. Not yet tested in Cursor.

Add to Cursor adds the server with no key. You can also add the server to a file: .cursor/mcp.json in your project, or ~/.cursor/mcp.json for all projects:

JSON

Without a key, leave out headers.

VS Code

Should work. VS Code speaks MCP version 2025-11-25, and the server answers it. Not yet tested in VS Code.

Add to VS Code adds the server with no key. You can also add the server to .vscode/mcp.json. VS Code then asks for the key one time and keeps it in a safe store:

JSON

Without a key, leave out inputs and headers.

Codex

Should work, with no extra setting. Not yet tested in Codex.

Add the server with no key:

Or add it to ~/.codex/config.toml. Codex reads the key from the GELATIN_UI_PRO_TOKEN environment variable, so set it before you start Codex:

Plain text

ChatGPT

Should work: ChatGPT speaks Streamable HTTP. Not yet tested in ChatGPT.

  1. On chatgpt.com, open Plugins. Select +, then Add custom MCP server.
  2. Type the name Gelatin UI and the server URL https://gelatinui.com/mcp. Set the authentication to No authentication.
  3. Read the risk warning and select I understand and want to continue. Then select Create as a plugin.
  4. Install the plugin. Then you can use it in a chat.

ChatGPT signs in to a server only with OAuth, and it has no field for a key. So it gives Free items only.

Gemini CLI

Should work. Not yet tested in Gemini CLI.

Add the server to ~/.gemini/settings.json, or to .gemini/settings.json in your project. Use the key httpUrl: in Gemini CLI, url means the old SSE transport, which this server does not serve.

JSON

Without a key, leave out headers.

Google now serves Gemini CLI only with a paid Gemini API key or an enterprise license, and moves other people to Antigravity CLI.

Antigravity CLI

Should work: Antigravity CLI speaks Streamable HTTP. Not yet tested in Antigravity CLI.

Add the server to .agents/mcp_config.json in your project, or to ~/.gemini/config/mcp_config.json for all projects. Use the key serverUrl; Antigravity CLI does not read httpUrl.

JSON

To check the setup, type /mcp in Antigravity CLI. The MCP Manager shows the gelatin-ui server and its state.

This setup gives Free items only. The Antigravity CLI docs show no way to read the key from an environment variable, so do not put a Pro API key in its settings.

Cline

Should work. Not yet tested in Cline.

Select Configure MCP Servers in Cline to open cline_mcp_settings.json. Set type to streamableHttp: with no type, Cline uses the old SSE transport.

JSON

Roo Code

Should work. Not yet tested in Roo Code.

Add the server to .roo/mcp.json in your project, or to the global mcp_settings.json (Edit Global MCP). Set type to streamable-http, with a hyphen: with no type, Roo Code fails to load the server.

JSON

Cline and Roo Code show no way to read the key from an environment variable, so these setups give Free items only. Do not put a Pro API key in their settings files.

Windsurf

Should work. Not yet tested in Windsurf.

Add the server to ~/.config/devin/mcp_config.json (on Windows, %AppData%/devin/mcp_config.json). Windsurf reads the key from the GELATIN_UI_PRO_TOKEN environment variable:

JSON

Without a key, leave out headers.

Zed

Should work. Not yet tested in Zed.

Add the server to your user settings.json:

JSON

This setup gives Free items only. The Zed docs show no way to read the key from an environment variable, so do not put a Pro API key in its settings.

Any other client

Your client is not above? Find where it keeps its MCP servers in its own docs or settings. Then add the server with these facts:

  • URL: https://gelatinui.com/mcp. Name: gelatin-ui.
  • Transport: Streamable HTTP. Clients call it http, streamableHttp, streamable-http, httpUrl, or serverUrl. Never SSE: the server answers a GET with 405.
  • Where: the project config of the client when it has one, else your user config.
  • Pro API key: send the header Authorization: Bearer <key>. Read the key from GELATIN_UI_PRO_TOKEN with the variable syntax of your client (${env:GELATIN_UI_PRO_TOKEN}, $GELATIN_UI_PRO_TOKEN). Never write the key itself into a file. A client that cannot send a header gets Free items only.
  • Local servers only: a client that runs only local (stdio) servers cannot connect yet. A bridge package can relay it, but check that package before you install it.

The setups above show each format. Copy the one that looks most like your client's settings, and change the key names.

Clients that work

The server speaks MCP versions 2024-11-05, 2025-03-26, 2025-06-18, 2025-11-25, and 2026-07-28, over Streamable HTTP, with no session. Last check: November 2026.

ClientToday
Claude Code (tested on 2.1.274)Works
Cursor, VS Code, Codex, Gemini CLI, Antigravity CLI, Cline, Roo Code, Zed, Windsurf, Claude.ai, ChatGPTShould work; not yet tested

The server does not serve the old SSE transport (a GET stream at /mcp): a GET gets 405. Set your client to Streamable HTTP, as the setups above show.

A web page in a browser cannot call the server.

Call the server over HTTP

A client does this for you. To call the server by hand (a script, a test), send one JSON-RPC request per POST. Put the protocol version and the client facts in params._meta, and the method in the Mcp-Method header. A tools/call, resources/read, or prompts/get also names its tool, resource, or prompt in the Mcp-Name header:

Shell

With the 2026-07-28 header and without these fields, the server answers -32602 "Required request metadata is missing". A request with no MCP-Protocol-Version header, or a 2025 one, is read as the older protocol: initialize first, then plain calls with no _meta.

Use Pro items

The source of Pro items needs your API key.

  1. Create an API key in the dashboard.
  2. Put the key in the GELATIN_UI_PRO_TOKEN environment variable. The client setups send it as the Authorization: Bearer header.

Without a key, the agent still finds Pro items, reads what they do, and sees what Pro gives.

Never paste a key into a chat. Never put it in a file that you commit.

Limits

  • Without a key: 60 calls a minute from one address.
  • With a key: 600 calls a minute for the key, from any address.

Above the limit, the server answers with an error. Wait one minute, then send the call again.

Next steps