Announcement: V2 Breaking Changes for Library Usage of mongodb-mcp-server
#1045
gagik
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
In case you weren't aware, it’s currently possible to use the
mongodb-mcp-serverpackage as a library for creating custom, MongoDB-powered MCP servers. While we don’t have exact usage numbers, we’ve found that using a single package for both the user-facing executable and the extendable library causes several issues, such as pulling in CLI-specific dependencies that don't make sense for other environments. We’ve also evolved the codebase significantly and, while we've tried to keep the API stable, we have deprecated a large number of methods.Consequently, we are planning to introduce v2 of the MongoDB MCP library. This version will include a few breaking changes, such as:
@mongodb-js/mcp-transport).If you use
mongodb-mcp-servervia CLI or DockerIf you simply run the server via agentic tools/ IDEs (e.g. Claude Code, Cursor, GitHub Copilot),
npx mongodb-mcp-serveror Docker, nothing will change. The user-facing executable API will be kept as is, and no migration is necessary.If you use
mongodb-mcp-serveras a libraryIf you use the package as a library to build custom MCP servers and want to access the latest features in v2, you will likely need to migrate. We will publish a full migration guide as we get closer to the release date.
We want your input! Please share your feedback if there’s anything specific you’d like to see improved in the library usage experience.
Beta Was this translation helpful? Give feedback.
All reactions