From 20965d111ac5618e8ae661c0ada5e6bb562a486b Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Mon, 19 May 2025 17:05:05 +0000 Subject: [PATCH 1/2] Add Smithery configuration --- smithery.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..42f3a8a --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,26 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config + +build: + dockerfile: Dockerfile + dockerBuildPath: ../ +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + properties: + connectionString: + type: string + description: The connection string to use to connect to MongoDB. + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ + "command": "node", + "args": [ + "dist/index.js" + ], + "env": { + "MDB_MCP_CONNECTION_STRING": config.connectionString + } + }) From c0cf262b14b5089bc56f68fc8838ee911701cdc7 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Mon, 19 May 2025 17:05:06 +0000 Subject: [PATCH 2/2] Update README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3783d3e..3b67fd1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # MongoDB MCP Server +[![smithery badge](https://smithery.ai/badge/@mongodb-js/mongodb-mcp-server)](https://smithery.ai/server/@mongodb-js/mongodb-mcp-server) + A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas. ## 📚 Table of Contents @@ -34,6 +36,14 @@ node -v ## Setup +### Installing via Smithery + +To install MongoDB MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@mongodb-js/mongodb-mcp-server): + +```bash +npx -y @smithery/cli install @mongodb-js/mongodb-mcp-server --client claude +``` + ### Quick Start Most MCP clients require a configuration file to be created or modified to add the MCP server.