MCP Registry Concepts
The MCP Registry is a central storage and discovery service for Model Context Protocol (MCP) servers.
What is MCP?
The Model Context Protocol (MCP) is a standard for connecting AI applications to external tools and data sources. MCP servers expose:
- Tools: Functions that AI agents can execute
- Resources: Data that AI agents can access
- Prompts: Pre-defined interaction patterns
Registry Purpose
The MCP Registry serves as the central catalog for MCP servers in your organization:
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ MCP Server 1 │ │ MCP Server 2 │ │ MCP Server N │
│ (Web Search) │ │ (Database) │ │ (Custom) │
└────────┬─────────┘ └────────┬─────────┘ └────────┬─────────┘
│ │ │
└────────────────────────┼────────────────────────┘
│
▼
┌──────────────────────────┐
│ MCP Registry │
│ - Server catalog │
│ - Capabilities index │
│ - Health status │
│ - Discovery APIs │
└──────────────────────────┘
│
▼
┌──────────────────────────┐
│ AI Applications │
│ - CrewAI agents │
│ - LangGraph workflows │
│ - Custom agents │
└──────────────────────────┘
Key Concepts
MCP Servers
An MCP server record contains:
{
"id": "uuid",
"name": "web-search",
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-web-search"],
"capabilities": {
"tools": ["search_web", "search_images"],
"resources": [],
"prompts": []
},
"status": "active",
"last_verified": "2024-01-15T10:00:00Z",
"scanner_id": "scanner-uuid"
}
| Field | Description |
|---|---|
id | Unique identifier |
name | Human-readable name |
command | Executable to run the server |
args | Command-line arguments |
capabilities | Tools, resources, and prompts provided |
status | Current health status |
last_verified | Last successful health check |
scanner_id | Scanner that registered this server |
Scanners
Scanners are agents that discover and register MCP servers:
{
"id": "uuid",
"agent_id": "scanner-agent-001",
"name": "Production Scanner",
"api_key_hash": "sha256:...",
"last_seen": "2024-01-15T10:00:00Z",
"is_active": true
}
Scanners authenticate with API keys and can:
- Register new MCP servers
- Update server information
- Report health status
- Remove stale servers
Capabilities
MCP server capabilities define what they offer:
Tools: Functions the server can execute
{
"name": "search_web",
"description": "Search the web for information",
"input_schema": {
"type": "object",
"properties": {
"query": {"type": "string"}
},
"required": ["query"]
}
}
Resources: Data the server can provide
{
"uri": "file:///documents/{path}",
"name": "Document Access",
"description": "Access to document files",
"mime_type": "application/json"
}
Prompts: Pre-defined interaction templates
{
"name": "analyze_code",
"description": "Analyze code for issues",
"arguments": [
{"name": "code", "description": "Code to analyze", "required": true}
]
}
Registry Operations
Discovery
AI agents can discover available MCP servers:
# List all active servers
GET /mcp-servers
# Search by capability
GET /mcp-servers?capability=search_web
# Get specific server
GET /mcp-servers/{id}
Registration
Scanners register discovered servers:
POST /mcp-servers
{
"name": "web-search",
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-web-search"],
"capabilities": {...}
}
Health Monitoring
The registry tracks server health:
- active: Server is responding normally
- unhealthy: Server failed health check
- unknown: Server hasn't been verified recently
Integration with Authorization
The MCP Registry integrates with WL-APDP for authorization:
Agent wants to use Tool::"search_web"
│
▼
┌──────────────────────────┐
│ MCP Registry │
│ → Find server with tool │
│ → Return server info │
└──────────────────────────┘
│
▼
┌──────────────────────────┐
│ WL-APDP │
│ → Check authorization │
│ → Apply intent/goal │
└──────────────────────────┘
│
▼
Allow/Deny + Server Connection Info
Data Flow
- Scanner discovers MCP server (file system, network, config)
- Scanner registers server with Registry
- Agent queries Registry for available tools
- Agent requests authorization from WL-APDP
- Agent connects to MCP server if authorized
- Scanner updates server status periodically
Next Steps
- Registry Quickstart - Set up the registry
- Discovery Configuration - Configure MCP discovery
- Authorization Integration - Secure MCP access