Skip to main content

MongoDB Integration

Configure MongoDB connectivity so MCP Express can authenticate, confirm database access, and prepare collection-aware tools. This sets the trust boundary for read and write operations.

Connection Parameters

Configure the following fields using a dedicated database user with the minimum permissions required.

ParameterTechnical DescriptionRequired
HostMongoDB host or cluster endpoint.Yes
PortMongoDB port (Default: 27017).Optional
Database NameDatabase scope for the integration.Yes
UsernameDatabase user name.Yes
PasswordPassword for the database user.Yes
Required Permissions

Ensure the database user can access only the collections and actions you plan to expose.

Network Access

Ensure the MCP server can reach the MongoDB host on the configured port and that any firewall or network rules allow access.

Connection Validation

When you test the connection, MCP Express performs the following checks:

  • Credential Verification: Confirms the username and password.
  • Database Reachability: Verifies the target database is accessible.
  • Collection Access: Checks that collections are visible for configuration.

If validation fails, the test output shows what went wrong so you can fix connection or access issues.