Skip to content

Commit b9e8c1c

Browse files
Using official hub.docker.com/r/mongodb/mongodb-mcp-server
1 parent 0915619 commit b9e8c1c

File tree

4 files changed

+10
-34
lines changed

4 files changed

+10
-34
lines changed

deploy/azure/README.md

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,7 @@ This directory contains an Azure Bicep template (`bicep/main.bicep`) and support
66
## Prerequisites
77
- Azure CLI (2.55.0 or later) installed and signed in (`az login`).
88
- Azure subscription with permissions to deploy the required resources.
9-
- Docker installed locally for building container images.
10-
- Azure Container Registry (ACR) to host the MongoDB MCP server image.
11-
- MongoDB MCP server container image available in your registry (instructions below).
12-
13-
## Prepare the MongoDB MCP Docker Image
14-
If you already have a tagged image in your ACR, skip this section. Otherwise, build and push the image using the official Dockerfile:
15-
16-
```powershell
17-
# 1. Clone the MongoDB MCP server repository
18-
git clone https://github.com/mongodb-js/mongodb-mcp-server.git
19-
cd mongodb-mcp-server
20-
21-
# 2. Log in to your Azure Container Registry
22-
$acrName = "<your-acr-name>" # without the .azurecr.io suffix
23-
az acr login --name $acrName
24-
25-
# 3. Build the MongoDB MCP server image
26-
$tag = "$acrName.azurecr.io/mongodb-mcp-server:latest"
27-
docker build -f Dockerfile -t $tag .
28-
29-
# 4. Push the image to your ACR
30-
docker push $tag
31-
```
32-
33-
Record the fully qualified image name (FQIN) for later use in your parameter file, e.g. `myregistry.azurecr.io/mongodb-mcp-server:latest`.
9+
- MongoDB MCP server container image available in dockerhub registry (mongodb/mongodb-mcp-server:latest).
3410

3511
## Parameter Files
3612
Two sample parameter files are provided to help you tailor deployments:
@@ -73,7 +49,7 @@ Two sample parameter files are provided to help you tailor deployments:
7349
5. **Monitor outputs:** Review the deployment outputs and logs for connection endpoints, credential references, or other values needed to complete integration.
7450

7551
## Post-Deployment Checklist
76-
- Confirm the container instance or orchestration target pulled the correct MongoDB MCP image from your ACR.
52+
- Confirm the container instance or orchestration target pulled the correct MongoDB MCP image from your dockerhub.
7753
- Verify networking rules (firewalls, VNet integrations, etc.) allow intended clients to reach the server endpoint.
7854
- If using the auth-enabled parameters, validate that credentials/secrets are stored securely (Key Vault, managed identity) and tested end-to-end.
7955
- Document any additional operational steps (scaling, logging, maintenance) based on your environment requirements.

deploy/azure/bicep/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param location string = resourceGroup().location
88
param containerAppName string = 'mongo-mcp-server-app'
99

1010
@description('Docker image to deploy')
11-
param containerImage string = '<your-docker-registry>/mongo-mcp-server:latest'
11+
param containerImage string = 'mongodb/mongodb-mcp-server:latest'
1212

1313
@description('Container CPU (vCPU) as string. Allowed: 0.25 - 2.0 in 0.25 increments')
1414
@allowed([

deploy/azure/bicep/params.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
33
"contentVersion": "1.0.0.0",
44
"parameters": {
5-
"containerImage": { "value": "<your-docker-registry>/mongo-mcp-server:latest" },
5+
"containerImage": { "value": "mongodb/mongodb-mcp-server:latest" },
66
"containerCpu": { "value": "1.0" },
77
"containerMemory": { "value": "2Gi" },
88
"appEnvironmentVars": {

deploy/azure/bicep/paramsWithAuthEnabled.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
33
"contentVersion": "1.0.0.0",
44
"parameters": {
5-
"containerAppEnvName": { "value": "mcp-env-wlm2rwwpyzafw" },
5+
"containerAppEnvName": { "value": "container-app-env" },
66
"containerAppName": { "value": "mongo-mcp-server-app-with-auth" },
7-
"containerImage": { "value": "<your-docker-registry>/mongo-mcp-server:latest" },
7+
"containerImage": { "value": "mongodb/mongodb-mcp-server:latest" },
88
"containerCpu": { "value": "1.0" },
99
"containerMemory": { "value": "2Gi" },
1010
"appEnvironmentVars": {
@@ -21,9 +21,9 @@
2121
"mdbConnectionString": { "value": "<MONGODB_CONNECTION_STRING>" },
2222

2323
"authMode": { "value": "MicrosoftMIBasedAuth" },
24-
"authClientId": { "value": "97251c0f-95cd-4a6f-8414-ae34319fbb29" },
25-
"authIssuerUrl": { "value": "https://login.microsoftonline.com/888d76fa-54b2-4ced-8ee5-aac1585adee7/v2.0" },
26-
"authTenantId": { "value": "888d76fa-54b2-4ced-8ee5-aac1585adee7" },
27-
"authAllowedClientApps": { "value": ["6553980f-5268-4494-b1b2-233ba381fb6e"] }
24+
"authClientId": { "value": "<AUTH_CLIENT_ID>" },
25+
"authIssuerUrl": { "value": "<AUTH_ISSUER_URL>" },
26+
"authTenantId": { "value": "<AUTH_TENANT_ID>" },
27+
"authAllowedClientApps": { "value": ["<AUTH_ALLOWED_CLIENT_APP_1>","<AUTH_ALLOWED_CLIENT_APP_2>"] }
2828
}
2929
}

0 commit comments

Comments
 (0)