MCP server

Tools

The eight read-only tools and three prompts the MCP server gives your agent, and what each one returns.

Every tool only reads. None of them changes anything in your account or your project: your agent installs a block by running the shadcn CLI itself, with the command the server gives.

The server also tells your agent how to work: search first, read the block, then install it, and fill the props with your real content only.

search_blocks

Finds blocks from a description of the section you need, such as « hero with form » or « product reviews ».

  • Takes: a query, and optionally a category, a storefront subgroup, a group, a page, an access (free or pro) and a limit.
  • Returns: the best matches, each with its id (also its install item), category, group, when it fits, whether it is free or Pro, its page on this site and its live preview.

get_block

Reads everything your agent needs to use one block.

  • Takes: the block’s id.
  • Returns: its category, group, pages and access; when it fits; the other blocks of its group, each with when it fits; its live preview, and its film when it has one; every prop with its kind, description, allowed values and whether it is required; and its install item, its id.

get_install_command

Gives the exact command to install a block or a component.

  • Takes: an item, a framework (vue or react) and optionally a packageManager.
  • Returns: the shadcn command, the components.json snippet with the key header, the .env line, and whether the item needs no key, a free key or a Pro key.

get_demo

Shows the shape of a block’s props with example data.

  • Takes: a block id.
  • Returns: the block’s demo props. They are an example of the shape: your agent replaces every word, picture and figure with your own content.

check_props

Checks the props your agent wrote for a block before it writes the code.

  • Takes: a block id and the props it intends to pass.
  • Returns: whether they match the block’s schema, and each error with its path: a misspelt prop, a missing required one, a wrong type or a value that does not exist. It also lists any text left from the demo, which must be replaced with your content.

list_categories

  • Takes: nothing.
  • Returns: the categories with their labels and how many blocks each holds, storefront’s sub-groups, and the kinds of pages blocks target.

list_themes

  • Takes: nothing.
  • Returns: every theme with its id, name and description, and the CSS files to import for it.

compose_page

Outlines a whole page from its kind.

  • Takes: a kind: landing, saas-marketing, store-home, product, dashboard, blog or account.
  • Returns: the sections of the page in order, each with the block that fits, its group, why, whether it is optional, and alternatives.

Prompts

The server also offers three prompts. Clients that support them show them as commands; in Claude Code they appear as /mcp__trame__build_page, /mcp__trame__add_section and /mcp__trame__pick_theme.

  • build_page: plans a whole page from your brief, picks a block per section, fills them with your content, checks the props and installs the blocks.
  • add_section: finds the right block for one section and adds it.
  • pick_theme: proposes two or three themes for your product and applies the one you choose.

Your content only

Blocks never make up content. The server tells your agent the same rule: no invented reviews, quotes, ratings, logos, figures, prices or dates. A prop without real content stays empty, and the block hides it. If your agent lacks something, it should ask you.