---
title: "Generate dynamic SVG badge"
method: GET
path: "/api/badge/{id}"
---

# Generate dynamic SVG badge

`GET /api/badge/{id}`

## Request

- Base URL: `https://allmcps.com`
- URL: `https://allmcps.com/api/badge/{id}`
- Auth: none declared

Returns dynamic SVG badge for README embeds with dark/light themes and directory/featured styles. Public, unauthenticated.

## Path parameters

- `id` string, required

## Query parameters

- `style` 'shield' | 'flat-square' | 'featured' | 'directory'
- `metric` 'status' | 'upvotes' | 'views' | 'installs'
- `theme` 'dark' | 'light'

## Response `200`

SVG image content

## Other responses

- `404`: Server ID not found.

---

[API](https://skmtc.dev/allmcps/apis/allmcps-directory-api.md) · [All operations](https://skmtc.dev/allmcps/apis/allmcps-directory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/allmcps/apis/allmcps-directory-api/revisions/0a42338f0f1e?raw)
