Skip to main content
Glama
mongodb-js

MongoDB MCP Server

Official
by mongodb-js
docker-publish.yml1.71 kB
--- name: Build and Push Docker Image on: workflow_call: secrets: DOCKERHUB_USERNAME: required: true DOCKERHUB_PASSWORD: required: true jobs: build-push: runs-on: ubuntu-latest permissions: contents: read steps: - name: Check out code uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 with: persist-credentials: false - name: Get version and date id: release-meta run: | VERSION=$(npm pkg get version | tr -d '"') DATE=$(date +'%Y-%m-%d') echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT" echo "DATE=${DATE}" >> "$GITHUB_OUTPUT" - name: Set up Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 - name: Login to Docker Hub uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef with: username: "${{ secrets.DOCKERHUB_USERNAME }}" password: "${{ secrets.DOCKERHUB_PASSWORD }}" - name: Build and push image to dockerhub registry uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 with: context: . platforms: linux/amd64,linux/arm64 tags: ${{ vars.DOCKERHUB_IMAGE_REPOSITORY }}:latest, ${{ vars.DOCKERHUB_IMAGE_REPOSITORY }}:${{ steps.release-meta.outputs.VERSION }}, ${{ vars.DOCKERHUB_IMAGE_REPOSITORY }}:${{ steps.release-meta.outputs.VERSION }}-${{ steps.release-meta.outputs.DATE }} file: Dockerfile push: true provenance: mode=max sbom: true build-args: | VERSION=${{ steps.release-meta.outputs.VERSION }}

Latest Blog Posts

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/mongodb-js/mongodb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server