souravrax/svgl-mcp-server
3.2
If you are the rightful owner of svgl-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The SVGL MCP Server is a modular server designed to provide access to a comprehensive library of SVG logos through a clean and efficient Model Context Protocol.
Tools
4
Resources
0
Prompts
0
SVGL MCP Server
A clean, modular MCP (Model Context Protocol) server for the SVGL API that provides access to a beautiful library of SVG logos.
š Features
- 4 Tools: Get all SVGs, search SVGs, filter by category, get categories
- 2 Resources: API documentation and dynamic categories overview
- Type-safe: Full TypeScript support with Zod validation
- Error handling: Comprehensive error handling with custom error types
- Modular architecture: Clean separation of concerns
š Project Structure
src/
āāā index.ts # Main server entry point
āāā api.ts # SVGL API client with error handling
āāā tools.ts # MCP tools registration
āāā resources.ts # MCP resources registration
āāā types.ts # TypeScript interfaces and Zod schemas
š ļø Available Tools
get_all_svgs
Get all SVGs from the repository
- Parameters:
limit
(optional) - Maximum number of SVGs to return
get_categories
Get all available categories with counts
- Parameters: None
get_svgs_by_category
Filter SVGs by category
- Parameters:
category
(required) - Category name to filter by
search_svgs
Search SVGs by title
- Parameters:
query
(required) - Search term
š Resources
svgl://api-info
Static API documentation and usage information
svgl://categories-overview
Dynamic overview of all categories with live data from the API
š§ Installation
npm install
npm run build
šāāļø Running
npm start
šļø Architecture
- API Client: Centralized HTTP client with custom error handling
- Type Safety: Zod schemas for runtime validation
- Error Handling: Custom
SVGLAPIError
class with status codes - Modular Design: Clean separation between tools, resources, and API logic
- Graceful Shutdown: Proper signal handling for clean exits
š License
MIT