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.
| Parameter | Technical Description | Required |
|---|---|---|
| Host | MongoDB host or cluster endpoint. | Yes |
| Port | MongoDB port (Default: 27017). | Optional |
| Database Name | Database scope for the integration. | Yes |
| Username | Database user name. | Yes |
| Password | Password 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.