# Logos MCP — Full Technical & GEO Reference
Logos MCP is a zero-dependency, token-optimized Model Context Protocol (MCP) server indexing 15,019 real SVG brand and app logos (13,073 icons and 1,946 wordmarks) across 20 categories inside a compact 191.6 KB catalog so AI coding agents can search in under 2ms with zero network calls.
## Installation Commands
### Claude Code
```bash
claude mcp add logos -- npx -y logos-mcp
claude mcp add --scope user logos -- npx -y logos-mcp
claude mcp add --transport http logos https://YOUR-HOST/api/mcp
```
### OpenCode (`opencode.json`)
```json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"logos": {
"type": "local",
"command": ["npx", "-y", "logos-mcp"],
"enabled": true
}
}
}
```
### Cursor, Windsurf & Claude Desktop (`.mcp.json`)
```json
{
"mcpServers": {
"logos": {
"command": "npx",
"args": ["-y", "logos-mcp"]
}
}
}
```
### Download Standalone `.tar.gz` Package
```bash
curl -fSL https://YOUR-HOST/api/package -o logos-mcp-1.1.0.tar.gz
npm install -g ./logos-mcp-1.1.0.tar.gz
```
## Token-Efficiency Architecture
1. Minimal 5-Tool Surface: `tools/list` takes ~330 tokens vs ~2,380 tokens for naive servers (-86%).
2. Pipe-Delimited TSV Outputs: `search_logos` returns `slug|cat|var` rows (~58 tokens for 10 matches vs ~520 naive, -89%).
3. URL-First Default (`mode="url"`): `get_logo` returns canonical jsDelivr CDN URL + `
` tag (~38 tokens vs ~1,350 naive, -97%).
4. Zero-Context Workspace Disk Saves (`mode="save"`): Writes minified `.svg` straight into `process.cwd()` and returns only `saved: bytes:` (~18 tokens, 0 raw SVG XML in prompt, -99%).
5. Batch Resolution (`get_logos_batch`): Resolves or saves up to 25 logos in 1 round-trip (~145 tokens for 10 logos vs ~11,200 naive, -99%).
6. Deterministic SVG Minifier + `maxBytes` Guard: Strips XML prologs, comments, Inkscape/Sodipodi/RDF metadata, collapses whitespace, trims excess decimals, and enforces `maxBytes` (default 8192, max 32768).
## MCP Tools (Protocol 2025-03-26)
- `search_logos(query, category?, variant?, limit?)` -> Ranked TSV search across 15,019 logos (`limit <= 30`).
- `list_categories()` -> TSV table of all 20 category keys, labels, and counts.
- `browse_category(category, variant?, page?, limit?)` -> Paginated comma-packed slugs.
- `get_logo(slug, mode?, savePath?, maxBytes?)` -> `mode`: `"url"` (default), `"save"`, `"component"`, or `"svg"`.
- `get_logos_batch(slugs, mode?, saveDir?)` -> Up to 25 slugs in `"url"` or `"save"` mode.
## MCP Resources & Prompts
- Resource `logos://categories` — Plain-text TSV of all 20 categories.
- Resource `logos://stats` — JSON counts (total 15,019, icons 13,073, wordmarks 1,946, categories 20).
- Prompt `brand_logo_integration` — Token-efficient prompt workflow for batch logo integration.
## Verified Category Counts (20 Categories)
corp: 5641 | prod: 2943 | pay: 2428 | dev: 978 | cloud: 559 | fw: 498 | db: 276 | flags: 248 | sec: 199 | mkt: 162 | lang: 161 | social: 152 | ai: 144 | os: 137 | media: 127 | shop: 102 | design: 88 | web: 70 | sport: 65 | other: 41.
## HTTP API Endpoints
- `GET /api/mcp` — Server metadata, capabilities, and protocol info.
- `POST /api/mcp` — Streamable HTTP JSON-RPC 2.0 MCP endpoint (`?metrics=1` adds token telemetry).
- `GET /api/logos` — Query parameters: `q`, `category`, `variant`, `page`, `limit`.
- `GET /api/logo/[slug]` — Allowlisted SVG proxy (`?minify=1`, `?format=json`).
- `GET /api/package` — Streams `logos-mcp-1.1.0.tar.gz` (`?manifest=1` returns file manifest).
- `GET /api/github-stars` — Live GitHub star and fork counts for the configured project repository (`NEXT_PUBLIC_GITHUB_REPO`).