Implementation:21st dev Magic mcp search logo
| 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
- Repository: magic-mcp (proxy; tool is server-side)
- Docs: skills/21st-ui/SKILL.md:L43, README.md:L59, llms-install.md:L46
- Transport: forwarded via Implementation:21st_dev_Magic_mcp_forward
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
Retrieve a brand logo
{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "search_logo",
"arguments": { "query": "Acme" }
}
}
Related Pages
Implements Principle
Requires Environment
Uses Heuristic
Notes
- One brand per call — do not batch multiple brands.
- The returned JSX/TSX is wired into the project like any other component — see Principle:21st_dev_Magic_mcp_Component_Integration.