Quick overview
This workflow exposes a webhook-based MCP server registry API that discovers MCP servers from a seed list, enriches tool/resource metadata via an HTTP AI enrichment endpoint, upserts entries to a central catalog, performs health checks, logs an audit event, and returns a structured discovery, search, registration, or health report.
How it works
- Receives a POST request on a webhook endpoint with an action such as discover, register, search, health, or list.
- Validates the request payload, builds a request context (requestId, query, serverUrl, tools/resources), and selects the downstream endpoint URLs (optionally simulating discovery status codes).
- Calls an HTTP discovery endpoint to probe a configured seed list of MCP server URLs and collect discovery results.
- Sends the discovery/context data to an HTTP AI enrichment endpoint to generate improved descriptions, categories, tags, and capability flags.
- Calls an HTTP registry endpoint to register or update the server, tools, resources, and metadata in a central catalog.
- Calls an HTTP health endpoint to check server status/latency and then calls an HTTP logging endpoint to write an audit trail entry.
- Builds an action-specific response (catalog list, registration result, search hits, or health summary) and returns it via the webhook response.
Setup
- Configure the webhook path in n8n and copy the production webhook URL into any client or system that will call this registry API.
- Replace the placeholder httpbin.org URLs with your real discovery, AI enrichment, registry, health, and audit logging service endpoints.
- Update the seed MCP server list (and any default tags) in the workflow’s configuration code to match your environment.
- If your HTTP endpoints require authentication, add the required headers/credentials to the HTTP Request steps.