Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
updatePackageVersion.ts737 B
#!/usr/bin/env node import { readFileSync, writeFileSync } from "fs"; import { join } from "path"; // Read package.json const packageJsonPath = join(import.meta.dirname, "..", "package.json"); const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8")) as { version: string; }; // Define the packageInfo.ts content const packageInfoContent = `// This file was generated by scripts/updatePackageVersion.ts - Do not edit it manually. export const packageInfo = { version: "${packageJson.version}", mcpServerName: "MongoDB MCP Server", }; `; // Write to packageInfo.ts const packageInfoPath = join(import.meta.dirname, "..", "src", "common", "packageInfo.ts"); writeFileSync(packageInfoPath, packageInfoContent);

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