Skip to content

MongoDB and MCP server tools not connecting via Chainlit application #598

@Pradhisha-289248

Description

@Pradhisha-289248

Description:
I am able to run the MongoDB MCP server tools and connect to MongoDB successfully in standalone mode via port forwarding. However, when I try to query the database through the Chainlit application, neither the database nor the MCP server tools are connecting.

Steps to Reproduce:

1.Start MongoDB MCP server tools using the standard commands.
2. Confirm that tools load correctly and list available functions.

Image
  1. Connect to MongoDB using mongosh CLI:npx -y mongosh "mongodb://:@:/?authSource=admin"
  2. Connection succeeds, MongoDB is accessible via CLI.
Image
  1. Attempt to query the same database via the Chainlit application.
  2. The application fails to connect to MongoDB and MCP server tools.
    Expected Behavior:
    The Chainlit application should be able to connect to MongoDB and the MCP server tools just like in standalone mode.

Actual Behavior:
Connection fails when using the Chainlit application.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions