Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:21st dev Magic mcp search logo

From Leeroopedia
Knowledge Sources
Domains Search, UI_Components
Last Updated 2026-10-19 16:40 GMT

Overview

Concrete tool for retrieving a single brand logo as a ready-to-paste JSX/TSX component, provided by the 21st MCP server (reached through the proxy).

Description

The search_logo tool returns one brand's logo as a ready-to-paste JSX/TSX component. The contract is one brand per call — querying multiple brands in a single call is not supported; call once per brand. Hosted server-side at `https://21st.dev/api/mcp`; this repo only forwards calls to it opaquely over the proxy.

Legacy name `logo_search` is still accepted server-side and translated to `search_logo`.

This is an External Tool Doc: the signature below is reconstructed from `skills/21st-ui/SKILL.md` and `README.md`, not from in-repo source.

Usage

Call `search_logo` when the user needs a company logo in JSX/TSX. Identify a single brand name first, then call once with that name.

Code Reference

Source Location

Signature

// JSON-RPC tool call, proxied to https://21st.dev/api/mcp
// One brand per call — pass a single brand name, not a list.
search_logo(query: string): {
  jsx: string;   // ready-to-paste JSX/TSX logo component
};

Import

// Not imported. Call as an MCP tool through the 21st MCP server:
//   { "jsonrpc": "2.0", "id": <n>, "method": "tools/call",
//     "params": { "name": "search_logo",
//                 "arguments": { "query": "Acme" } } }
// Legacy name still accepted server-side: logo_search → search_logo

I/O Contract

Inputs

Name Type Required Description
query string Yes A single brand name (one brand per call, not multiple)

Outputs

Name Type Description
jsx string Ready-to-paste JSX/TSX logo component

Usage Examples

{
  "jsonrpc": "2.0",
  "id": 7,
  "method": "tools/call",
  "params": {
    "name": "search_logo",
    "arguments": { "query": "Acme" }
  }
}

Related Pages

Implements Principle

Requires Environment

Uses Heuristic

Notes

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment