Add MongoDB Native Query Support + FastMCP 3.1.0 Upgrade#13
Open
lepikj wants to merge 5 commits intohluaguo:mainfrom
Open
Add MongoDB Native Query Support + FastMCP 3.1.0 Upgrade#13lepikj wants to merge 5 commits intohluaguo:mainfrom
lepikj wants to merge 5 commits intohluaguo:mainfrom
Conversation
added 5 commits
February 28, 2026 20:59
- Add execute_mongodb_query() tool with automatic JSON conversion for aggregation pipelines - Add create_mongodb_card() tool for MongoDB-specific question cards - Use Context parameter for proper logging and error handling - Follow upstream's ToolError and middleware patterns - Supports MongoDB collections with native query execution These changes enable proper MongoDB querying via MCP while maintaining compatibility with upstream's FastMCP 2.12.0 architecture improvements.
- Change on_duplicate_tools/resources/prompts to unified on_duplicate parameter - FastMCP 3.1.0 simplified duplicate handling API - Server now starts successfully with latest FastMCP version
- Add execute_mongodb_query to Query Operations section - Add create_mongodb_card to Card Management section - Highlight MongoDB support in Key Features - Update Natural Language Queries to mention MongoDB
- Upgrade fastmcp from 2.12.4 to 3.1.0 - Update all related dependencies (mcp 1.26.0, cyclopts 4.6.0, etc.) - Add new dependencies required by FastMCP 3.1.0 (keyring, py-key-value-aio) - Remove deprecated dependencies (openapi-core, werkzeug, etc.) - Tested and verified with updated API compatibility
Reflect the upgrade from FastMCP 2.12.4 to 3.1.0 in README badge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add MongoDB Native Query Support + FastMCP 3.1.0 Upgrade
Adds MongoDB database support to Metabase MCP server, enabling AI assistants to query MongoDB alongside SQL databases.
New Tools
execute_mongodb_query: Execute native MongoDB queries with automatic JSON conversion for aggregation pipelinescreate_mongodb_card: Create MongoDB question cardsKey Changes
Commits
Testing