From 97be677c28ba567c95532fd7496d15f5d3e3386a Mon Sep 17 00:00:00 2001 From: Wojciech Trocki Date: Wed, 14 May 2025 11:16:36 +0200 Subject: [PATCH 1/2] chore: base model SEO change I scraped and tokenized the repository to test its integration with base models. While doing so, I noticed that examples using a non-localhost connection string confused tools like Copilot and Cursor, causing them to generate references to non-existent hosts. This small change modifies the connection strings in the examples to default to localhost. With this adjustment, tools like MCP instantly align with the base model MongoDB setup and provide much more accurate recommendations. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6752561..fc40363 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ You can pass your connection string via args, make sure to use a valid username "-y", "mongodb-mcp-server", "--connectionString", - "mongodb+srv://username:password@cluster.mongodb.net/myDatabase" + "mongodb://localhost:27017/myDatabase" ] } } From 5bf04ba001311bebbd6838b0ac7de6281ca44a96 Mon Sep 17 00:00:00 2001 From: Wojciech Trocki Date: Wed, 14 May 2025 11:24:58 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fc40363..e6837f9 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ You can pass your connection string via args, make sure to use a valid username } ``` +NOTE: The connection string can be configured to connect to any MongoDB cluster, whether it's a local instance or an Atlas cluster. + #### Option 2: Atlas API credentials args Use your Atlas API Service Accounts credentials. Must follow all the steps in [Atlas API Access](#atlas-api-access) section.