mcp-icon

mcp-icon

A Model Context Protocol (MCP) server for semantic SVG icon search. Generate infographic SVG icons by keyword โ€” over 100,000 icons with semantic search support.

Category
Visit Server

README

<div align="center">

๐ŸŽจ mcp-icon

A Model Context Protocol (MCP) server for semantic SVG icon search.

Generate infographic SVG icons by keyword โ€” over 100,000 icons with semantic search support, powered by AntV Infographic.

npm version Build License: MIT

</div>


๐Ÿ“‹ Table of Contents


โœจ Features

  • ๐Ÿ” Semantic search โ€” Find icons by meaning, not just exact names
  • ๐Ÿ–ผ๏ธ 100,000+ SVG icons โ€” A massive library of high-quality infographic icons
  • โšก Three transport modes โ€” stdio, sse, and streamable-http
  • ๐Ÿชถ Minimal dependencies โ€” Clean, focused implementation
  • ๐Ÿงช Fully tested โ€” Unit tests with Vitest

Available Tool

Tool Description
search_icons Search for SVG icons by keyword. Returns a list of SVG URLs matching the semantic query.

search_icons parameters:

Parameter Type Required Default Description
keyword string โœ… โ€” Search keyword or phrase (e.g. "data analysis", "cloud")
topK number โŒ 3 Number of icons to return (1โ€“20)

๐Ÿค– Usage

Add to your MCP client configuration (e.g. Claude Desktop, VS Code, Cursor):

macOS / Linux:

{
  "mcpServers": {
    "mcp-icon": {
      "command": "npx",
      "args": ["-y", "mcp-icon"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "mcp-icon": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "mcp-icon"]
    }
  }
}

๐Ÿšฐ Transport Modes

mcp-icon supports three standard MCP transport protocols.

stdio (default)

Used by desktop MCP clients (Claude Desktop, Cursor, etc.):

npx mcp-icon
# or explicitly:
npx mcp-icon --transport stdio

SSE (Server-Sent Events)

npx mcp-icon --transport sse --port 3456
# Server available at: http://localhost:3456/sse

Streamable HTTP

npx mcp-icon --transport streamable --port 3456
# Server available at: http://localhost:3456/mcp

๐ŸŽฎ CLI Options

mcp-icon CLI

Options:
  --transport, -t  Transport protocol: "stdio", "sse", or "streamable" (default: "stdio")
  --host, -h       Host for SSE or streamable transport (default: localhost)
  --port, -p       Port for SSE or streamable transport (default: 3456)
  --endpoint, -e   Endpoint path:
                   - For SSE: default is "/sse"
                   - For streamable: default is "/mcp"
  --help, -H       Show this help message

๐Ÿ”จ Development

# Clone the repository
git clone https://github.com/hustcc/mcp-icon.git
cd mcp-icon

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Start with MCP inspector (for local debugging)
npm start

Project Structure

src/
โ”œโ”€โ”€ index.ts          # CLI entry point
โ”œโ”€โ”€ server.ts         # MCP server + tool handlers
โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ stdio.ts      # Stdio transport
โ”‚   โ”œโ”€โ”€ sse.ts        # SSE transport
โ”‚   โ””โ”€โ”€ streamable.ts # Streamable HTTP transport
โ”œโ”€โ”€ tools/
โ”‚   โ””โ”€โ”€ search-icons.ts  # Tool definition
โ””โ”€โ”€ utils/
    โ”œโ”€โ”€ api.ts        # Icon search API client
    โ””โ”€โ”€ logger.ts     # Logger utility
tests/
โ”œโ”€โ”€ api.test.ts       # API client unit tests
โ””โ”€โ”€ server.test.ts    # MCP server integration tests

๐Ÿ“„ License

MIT ยฉ hustcc

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured