Servers API
Servers API
Access the MCPSafe server registry to list, search, and get detailed information about MCP servers.
Endpoints
GET
/api/v1/serversList all servers in the registry
Parameters
pagenumber
Page number (default: 1)limitnumber
Results per page (default: 20, max: 100)categorystring
Filter by category slugsearchstring
Search by name or descriptionsortstring
Sort field: name, score, created (default: score)orderstring
Sort order: asc, desc (default: desc)GET
/api/v1/servers/:slugGet detailed information about a specific server
Parameters
slugstring
Server slug (path parameter)GET
/api/v1/servers/:slug/vulnerabilitiesGet vulnerabilities for a specific server
Parameters
slugstring
Server slug (path parameter)severitystring
Filter by severity: critical, high, medium, low, infoGET
/api/v1/servers/:slug/historyGet scan history for a specific server
Parameters
slugstring
Server slug (path parameter)limitnumber
Number of history entries (default: 10)Examples
Request
List all servers
curl https://api.mcpsafe.org/api/v1/servers?page=1&limit=20 \
-H "Authorization: Bearer YOUR_API_KEY"Response
200 OK
{
"success": true,
"data": {
"servers": [
{
"id": "srv_abc123",
"name": "filesystem-server",
"slug": "filesystem-server",
"description": "MCP server for file system operations",
"category": "file-management",
"repositoryUrl": "https://github.com/modelcontextprotocol/servers",
"npmPackage": "@modelcontextprotocol/server-filesystem",
"securityScore": 85,
"grade": "A",
"lastScannedAt": "2024-01-15T10:30:00Z",
"vulnerabilities": {
"critical": 0,
"high": 0,
"medium": 1,
"low": 2,
"info": 3
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 156,
"totalPages": 8
}
}
}Response Fields
securityScoreNumeric score from 0-100 based on vulnerability findingsgradeLetter grade (A+ to F) derived from security scorequalityMetricsObject containing maintenance, popularity, documentation, and compatibility scoresvulnerabilitiesCount of vulnerabilities grouped by severity levellastScannedAtISO 8601 timestamp of the most recent security scan