MCP server

Cursor

Add the Trame UI MCP server to Cursor with a few lines of JSON.

1. Add the server

Create .cursor/mcp.json in your project, or ~/.cursor/mcp.json to use it in every project:

{
  "mcpServers": {
    "trame": {
      "url": "https://mcp.trame-ui.com/mcp"
    }
  }
}

If the file already has servers, add trame next to them.

2. Sign in

  1. Open Cursor’s settings, then the MCP section (Tools & MCP in recent versions).
  2. Next to trame, click Connect (or Needs login).
  3. Your browser opens trame-ui.com. Sign in and allow Cursor.

Cursor registers itself with the server and keeps the sign-in.

3. Ask for a page

With your key in the project’s .env (see Your key), ask the agent, for example:

Add a Trame UI hero with a sign-up form to the home page.

Disconnect

Turn trame off in the MCP settings, or delete its entry from mcp.json.

Without a browser

On a Pro or Team account, you can send your project key instead of signing in. Cursor reads it from your environment:

{
  "mcpServers": {
    "trame": {
      "url": "https://mcp.trame-ui.com/mcp",
      "headers": { "Authorization": "Bearer ${env:TRAME_KEY}" }
    }
  }
}