Security Badges
Display your MCP server's security grade in your README
MCPSafe badges let you showcase your server's security rating directly in your GitHub README, documentation, or website. The badges update automatically whenever your server is rescanned, ensuring visitors always see the latest security status.
Quick Start
Add a security badge to your README in seconds. Just copy the code below and replace your-server-slug with your server's slug from the MCPSafe registry.
[](https://mcpsafe.dev/registry/your-server-slug)Finding your server slug
Your server's slug is the last part of its MCPSafe URL. For example, if your server is at mcpsafe.dev/registry/my-awesome-server, then your slug is my-awesome-server.
Badge Types
MCPSafe offers several badge types to suit different needs. Choose the one that best fits your README or documentation.
Security Badge
/api/badge/:slug.svgShows grade and score (e.g., A+ (98))
Grade Badge
/api/badge/:slug/grade.svgShows only the security grade (A+, A, B, C, D, F)
Score Badge
/api/badge/:slug/score.svgShows numeric score (e.g., 98/100)
Vulnerabilities Badge
/api/badge/:slug/vulnerabilities.svgShows vulnerability count
Badge Styles
Customize the appearance of your badge with different styles. Add thestyle query parameter to your badge URL.
flatstyle=flat
The classic badge style with subtle gradient
flat-squarestyle=flat-square
Flat style with sharp corners
for-the-badgestyle=for-the-badge
Larger badge with uppercase text
plasticstyle=plastic
3D-style badge with glossy effect
Example with style parameter
Customization
Customize your badge with query parameters to match your project's style.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
style | string | Badge style: flat,flat-square,for-the-badge,plastic |
label | string | Custom label text (default: "mcpsafe") |
labelColor | hex color | Label background color (6-digit hex without #) |
color | hex color | Override the status color (6-digit hex without #) |
Badge Builder
Customize your badge and copy the generated code
Preview (using placeholder):
[](https://mcpsafe.dev/registry/my-mcp-server)README Examples
Here are some examples of how to use MCPSafe badges in your project README.
Basic Security Badge
Simple badge showing security grade and score
# My MCP Server
[](https://mcpsafe.dev/registry/my-mcp-server)
A powerful MCP server for...Multiple Badges
Combine with other popular badges
# My MCP Server
[](https://www.npmjs.com/package/my-mcp-server)
[](https://mcpsafe.dev/registry/my-mcp-server)
[](https://opensource.org/licenses/MIT)
A powerful MCP server for...Large Style Header
Using for-the-badge style for prominent display
# My MCP Server
<p align="center">
<img src="https://api.mcpsafe.dev/api/badge/my-mcp-server.svg?style=for-the-badge" alt="MCPSafe Security" />
</p>
A powerful MCP server for...With Vulnerability Badge
Show both security grade and vulnerability count
# My MCP Server
[](https://mcpsafe.dev/registry/my-mcp-server)
[](https://mcpsafe.dev/registry/my-mcp-server)
A powerful MCP server for...Haven't scanned your server yet?
Submit your MCP server for scanning to get your security badge.