Relay MCP Server
The Relay API, provided by Microsoft Azure, is a comprehensive management plane interface designed for the programmatic administration of Azure Relay hybrid connectivity services through Azure Resource Manager (ARM).
Quick Start Summary
The Relay MCP server is a Model Context Protocol bridge that connects AI assistants — including Claude Desktop, Cursor, Windsurf, and VS Code Copilot — to the Relay API through natural language. It exposes 10 API endpoints as callable tools, such as Operations_List, Namespaces_CheckNameAvailability, Namespaces_List, and more. No authentication is required — setup takes approximately 30 seconds. The server uses STDIO transport and can be installed by running npx -y @mcp/azure-com-relay. This integration is sourced from the auto Relay OpenAPI specification (v2016-07-01) and has a quality score of 34/99 (fair documentation coverage).
Server Details
- Category
- Cloud Infrastructure
- Authentication
- None
- Endpoints
- 10 operations
- Transport
- STDIO
- Spec Version
- v2016-07-01
- Install Command
npx -y @mcp/azure-com-relay
Environment Variables
RELAY_API_KEYExample: your_relay_api_key
Top Endpoints
/providers/Microsoft.Relay/operationsOperations_List
/subscriptions/{subscriptionId}/providers/Microsoft.Relay/CheckNameAvailabilityNamespaces_CheckNameAvailability
/subscriptions/{subscriptionId}/providers/Microsoft.Relay/NamespacesNamespaces_List
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/NamespacesNamespaces_ListByResourceGroup
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}Namespaces_Get
One-Click Install
Copy the snippet for your MCP client and paste it in — zero editing required.
Claude Desktop
Add to claude_desktop_config.json
{
"mcpServers": {
"azure-com-relay": {
"command": "npx",
"args": [
"-y",
"@mcp/azure-com-relay"
],
"env": {
"RELAY_API_KEY": "your_relay_api_key"
}
}
}
}Cursor
Settings → MCP Servers → Add
{
"mcpServers": {
"azure-com-relay": {
"url": "https://mcpbridge.org/config/azure-com-relay.json"
}
}
}Saves as .cursor/mcp.json in the download. Move it to your project root.
VS Code
Use with MCP extension
{
"mcpServers": {
"azure-com-relay": {
"url": "https://mcpbridge.org/config/azure-com-relay.json"
}
}
}Endpoints Explorer
Search and browse the 10 operations supported by this server.
Multi-Language Code Examples
Executable code snippets for calling Relay endpoints in curl, TypeScript, or Python.
curl -X GET "https://api.apis.guru/v2/specs/azure.com/relay/2016-07-01/swagger.json/providers/Microsoft.Relay/operations" \ -H "Content-Type: application/json" \ # No auth required
Manual Configuration
Directly add this block to your JSON config file, or use the hosted config registry URL.
{
"mcpServers": {
"azure-com-relay": {
"command": "npx",
"args": ["-y","@mcp/azure-com-relay"],
"env": {
"RELAY_API_KEY": "your_relay_api_key"
}
}
}
}Authentication Details
No authentication required. This MCP server runs out-of-the-box.
Documentation Links
Error Handling & HTTP Status Code Matrix
Common status codes, error causes, and resolution steps when invoking Relay endpoints.
400 Bad RequestCause: Malformed payload parameters or missing required fields.
Resolution: Verify request schema in Endpoints tab before calling tool.
401 UnauthorizedCause: Missing or invalid API key credentials.
Resolution: Set environment variable in MCP client config under env object.
403 ForbiddenCause: Insufficient scope permissions for requested resource.
Resolution: Verify key permissions in developer dashboard.
404 Not FoundCause: Resource URL path or requested entity ID does not exist.
Resolution: Check path variables and parameters.
429 Rate Limit ExceededCause: API rate limit quota exceeded.
Resolution: Implement exponential backoff retry in tool call.
500 Internal ErrorCause: Upstream server runtime fault.
Resolution: Inspect STDIO stderr output for log trace.
Quality Score
Checked against our protocol-compliance rules.
Specification Version: v2016-07-01
Page compiled on: June 13, 2026
Own this API?
Verify ownership of this listing to control the description, configuration details, and documentation links. Choose between free manual verification or instant premium placement.
Option 1: Free Verification
Slow manual review. Requires creating a GitHub issue with verified documentation or domain verification.
- • Verified badge on page
- • Standard search sorting
- • 2-3 business days review
Option 2: Featured Upgrade($9/mo)
Instant verification plus premium styling, featured badges, and directory placement boost.
- • ★ Featured star & amber highlight border
- • Top of directory search placement
- • Instant activation via claim token
📖 Detailed MCP Integration Guide
A technical breakdown of capabilities, agent workflows, and security/configuration best practices.
CheckNameAvailability followed by the PUT namespace call. Furthermore, the AI can be leveraged for security and compliance tasks, such as querying all authorization rules for a namespace to audit permissions or programmatically updating a rule to enforce stricter access policies. This integration bridges the gap between high-level development intent and low-level cloud management operations, drastically reducing context-switching and manual portal navigation.PUT call. For operational troubleshooting and setup, a user might ask, "List all authorization rules for my namespace 'enterprise-relay' so I can verify the connection strings," prompting the AI to use the GET AuthorizationRules endpoint. An AI agent can also be instructed to perform cleanup or optimization tasks, such as "Delete the unused relay namespace 'test-ns-old' in the resource group 'RG-DevTest'," thereby automating resource lifecycle management. For security configuration, a prompt like "Add a new send authorization rule called 'EventHubSender' to namespace 'prod-relay'" would have the AI execute the POST to AuthorizationRules, embedding the request payload with appropriate rights. These examples highlight how the AI becomes a collaborative partner in both development and operational phases, handling structured resource management tasks via natural language.Microsoft.Relay/namespaces/write for creation or Microsoft.Relay/namespaces/read for viewing. It is a critical best practice to avoid using high-privilege accounts like Global Admins for API automation. Furthermore, when setting up an MCP server, secrets and tokens must be managed securely, preferably through Azure Key Vault or environment variables, never hard-coded. All API interactions should be monitored through Azure Activity Logs to maintain an audit trail, and resources should be deployed within defined virtual networks and private endpoints where possible to minimize public exposure.Similar APIs
Other APIs in the Cloud Infrastructure category.
Supabase API
Manage Supabase projects, databases, authentication, and storage through your AI agent.
API KeyCloudflare API
Manage Cloudflare DNS, CDN, Workers, and security settings through your AI agent.
API KeyVercel API
Deploy projects, manage domains, and monitor deployments through your AI agent.
Bearer TokenDigitalOcean API
The DigitalOcean API is a comprehensive, RESTful interface provided by DigitalOcean, a leading cloud infrastructure provider focused on simplifying cloud computing for developers, startups, and enterprises. It serves as the programmatic backbone for managing the entire DigitalOcean ecosystem, enabling users to provision, configure, and control cloud resources such as Droplets (virtual private servers), Kubernetes clusters, managed databases, networks, storage volumes, and application platforms. Core capabilities include full lifecycle management of these resources, from creation and scaling to monitoring and deletion, mirroring the functionality available in the DigitalOcean control panel. Its primary use cases range from automating infrastructure setup for CI/CD pipelines and enabling infrastructure-as-code practices to supporting dynamic application scaling and resource optimization for SaaS products, e-commerce sites, and development environments. The API is designed for both developers seeking to automate their cloud operations and businesses that require programmable, scalable cloud infrastructure without the complexity of larger hyperscale providers.
Related MCP Server Integrations
Supabase API MCP Setup
Manage Supabase projects, databases, authentication, and storage through your AI agent.
Cloudflare API MCP Setup
Manage Cloudflare DNS, CDN, Workers, and security settings through your AI agent.
Vercel API MCP Setup
Deploy projects, manage domains, and monitor deployments through your AI agent.
DigitalOcean API MCP Setup
The DigitalOcean API is a comprehensive, RESTful interface provided by DigitalOcean, a leading cloud infrastructure provider focused on simplifying cloud computing for developers, startups, and enterprises. It serves as the programmatic backbone for managing the entire DigitalOcean ecosystem, enabling users to provision, configure, and control cloud resources such as Droplets (virtual private servers), Kubernetes clusters, managed databases, networks, storage volumes, and application platforms. Core capabilities include full lifecycle management of these resources, from creation and scaling to monitoring and deletion, mirroring the functionality available in the DigitalOcean control panel. Its primary use cases range from automating infrastructure setup for CI/CD pipelines and enabling infrastructure-as-code practices to supporting dynamic application scaling and resource optimization for SaaS products, e-commerce sites, and development environments. The API is designed for both developers seeking to automate their cloud operations and businesses that require programmable, scalable cloud infrastructure without the complexity of larger hyperscale providers.
Access Analyzer MCP Setup
The AWS Identity and Access Management Access Analyzer API provides a powerful, policy-as-code service that automatically identifies resources accessible from outside your AWS account or organization. At its core, the service continuously evaluates resource-based policies—such as Amazon S3 bucket policies, AWS Identity and Access Management (IAM) roles, Amazon KMS key policies, and AWS Lambda function policies—using logic-based reasoning to determine which resources grant access to unknown external principals. Its primary use case is for security and compliance teams within enterprises to proactively detect unintended data exposure, enforce least privilege principles, and audit cross-account and cross-service access. The API endpoints allow programmatic control to create, configure, and query analyzers, manage archive rules for storing findings, and generate custom policy documents, making it a foundational tool for automating cloud security posture management at scale.