sfmcMCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sfmcMCPlist clusters in resource group dev-group"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Service Fabric Managed Clusters MCP Server
An MCP (Model Context Protocol) server for managing Azure Service Fabric Managed Clusters through the Azure REST API.
Features
This MCP server provides tools to:
Create Service Fabric managed clusters
Read cluster information (get by name, list by resource group or subscription)
Update existing clusters (tags, configuration, version upgrades)
Delete managed clusters
Azure Authentication: Supports multiple Azure authentication methods (CLI, Service Principal, Managed Identity)
Type Safety: Full TypeScript support with Zod validation
Related MCP server: Azure MCP Server
Prerequisites
Node.js 18 or later
An Azure subscription
Azure authentication credentials (one of the following):
Azure CLI logged in (
az login)Service Principal credentials (tenant ID, client ID, client secret)
Managed Identity (when running on Azure)
Installation
cd mcp-server-template
npm install
npm run buildAuthentication
This server uses Azure Identity libraries and supports multiple authentication methods:
Option 1: Azure CLI (Easiest for local development)
az loginOption 2: Service Principal
# Set environment variables
export AZURE_TENANT_ID="your-tenant-id"
export AZURE_CLIENT_ID="your-client-id"
export AZURE_CLIENT_SECRET="your-client-secret"Or pass them as command-line arguments (see Usage below).
Option 3: Managed Identity
When running on Azure (VM, App Service, etc.), the server will automatically use the managed identity.
Usage
Basic Usage with Azure CLI Authentication
node dist/index.js --subscription-id "your-subscription-id"Usage with Service Principal
node dist/index.js \
--subscription-id "your-subscription-id" \
--tenant-id "your-tenant-id" \
--client-id "your-client-id" \
--client-secret "your-client-secret"Command-Line Options
Option | Alias | Description | Required |
|
| Azure subscription ID | Yes |
|
| Azure tenant ID | No* |
|
| Service principal client ID | No* |
| - | Service principal client secret | No* |
|
| Domains to enable (default: | No |
| - | Show help | No |
| - | Show version | No |
* Required only if using Service Principal authentication
Using with MCP Inspector
For testing and debugging, use the MCP Inspector:
npm run inspectThen interact with the server at http://localhost:5173.
IDE Integration
VS Code Integration
For VS Code setup, see the detailed guide: VSCODE_SETUP.md
Quick Setup: Create or edit .vscode/settings.json in your workspace:
{
"mcp.servers": {
"service-fabric": {
"command": "node",
"args": [
"${workspaceFolder}/dist/index.js",
"--subscription-id",
"your-subscription-id"
]
}
}
}A template is provided at .vscode/settings.json.example.
Claude Desktop Integration
Add this configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"service-fabric": {
"command": "node",
"args": [
"/path/to/mcp-server-template/dist/index.js",
"--subscription-id",
"your-subscription-id"
],
"env": {
"AZURE_TENANT_ID": "your-tenant-id",
"AZURE_CLIENT_ID": "your-client-id",
"AZURE_CLIENT_SECRET": "your-client-secret"
}
}
}
}Or if using Azure CLI authentication:
{
"mcpServers": {
"service-fabric": {
"command": "node",
"args": [
"/path/to/mcp-server-template/dist/index.js",
"--subscription-id",
"your-subscription-id"
]
}
}
}Available Tools
1. sfmc_create_cluster
Creates or updates a Service Fabric managed cluster.
Parameters:
resourceGroupName(string, required): The resource group nameclusterName(string, required): The cluster namelocation(string, required): Azure region (e.g., "eastus", "westeurope")dnsName(string, required): The cluster's DNS nameadminUserName(string, optional): VM admin usernameadminPassword(string, optional): VM admin passwordsku(string, optional): Cluster SKU - "Basic" or "Standard" (default: "Basic")clientConnectionPort(number, optional): Client connection port (default: 19000)httpGatewayConnectionPort(number, optional): HTTP gateway port (default: 19080)clusterCodeVersion(string, optional): Service Fabric runtime versiontags(object, optional): Resource tagsapiVersion(string, optional): API version (default: "2024-11-01-preview")
Example:
{
"resourceGroupName": "my-rg",
"clusterName": "my-cluster",
"location": "eastus",
"dnsName": "mycluster",
"sku": "Standard",
"adminUserName": "adminuser",
"adminPassword": "P@ssw0rd123!",
"tags": {
"environment": "production",
"owner": "team-a"
}
}2. sfmc_get_cluster
Retrieves information about a specific managed cluster.
Parameters:
resourceGroupName(string, required): The resource group nameclusterName(string, required): The cluster nameapiVersion(string, optional): API version (default: "2024-11-01-preview")
Example:
{
"resourceGroupName": "my-rg",
"clusterName": "my-cluster"
}3. sfmc_update_cluster
Updates an existing managed cluster (partial update).
Parameters:
resourceGroupName(string, required): The resource group nameclusterName(string, required): The cluster nametags(object, optional): Updated resource tagsclusterCodeVersion(string, optional): Service Fabric version to upgrade toclientConnectionPort(number, optional): Updated client connection porthttpGatewayConnectionPort(number, optional): Updated HTTP gateway portapiVersion(string, optional): API version (default: "2024-11-01-preview")
Example:
{
"resourceGroupName": "my-rg",
"clusterName": "my-cluster",
"clusterCodeVersion": "9.1.1583.9590",
"tags": {
"environment": "staging"
}
}4. sfmc_delete_cluster
Deletes a managed cluster (long-running operation).
Parameters:
resourceGroupName(string, required): The resource group nameclusterName(string, required): The cluster name to deleteapiVersion(string, optional): API version (default: "2024-11-01-preview")
Example:
{
"resourceGroupName": "my-rg",
"clusterName": "my-cluster"
}5. sfmc_list_clusters
Lists all managed clusters in a resource group.
Parameters:
resourceGroupName(string, required): The resource group nameapiVersion(string, optional): API version (default: "2024-11-01-preview")
Example:
{
"resourceGroupName": "my-rg"
}6. sfmc_list_clusters_by_subscription
Lists all managed clusters in the subscription.
Parameters:
apiVersion(string, optional): API version (default: "2024-11-01-preview")
Example:
{
"apiVersion": "2024-11-01-preview"
}Development
Build
npm run buildWatch Mode
npm run watchFormat Code
npm run formatLint
npm run lintClean Build Artifacts
npm run cleanAPI Reference
This MCP server is based on the Azure Service Fabric Managed Clusters REST API:
Troubleshooting
Authentication Errors
If you see authentication errors:
Check Azure CLI login:
az login az account showVerify service principal credentials:
az login --service-principal \ --username $AZURE_CLIENT_ID \ --password $AZURE_CLIENT_SECRET \ --tenant $AZURE_TENANT_IDCheck subscription access:
az account set --subscription "your-subscription-id" az account show
Common Errors
"subscriptionId is required": Make sure to pass
--subscription-idargument"401 Unauthorized": Check your Azure credentials
"403 Forbidden": Verify you have appropriate RBAC permissions on the subscription/resource group
"404 Not Found": The cluster or resource group doesn't exist
"409 Conflict": The cluster is currently being modified by another operation
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vbhaskarrao/sfmcMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server