[FEATURE] Support non-HTTP/HTTPS ports for database access in Claude Code Web (e.g., MongoDB, PostgreSQL)
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Claude Code currently restricts network access to HTTP/HTTPS ports. This prevents direct connections to databases like MongoDB (27017), PostgreSQL (5432), MySQL (3306), Redis (6379), etc.
When working on backend projects, it's common to need direct database access for:
Running queries to inspect or back up data
Executing migration scripts
Debugging data issues during development
Request: Allow Claude Code to access non-HTTP/HTTPS ports
Proposed Solution
Allow custom ports
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
Claude Code Web
Use Case Example
Running queries to inspect or back up data
Executing migration scripts
Debugging data issues during development
Additional Context
Cursor supports this without issue. Having to work around this limitation (e.g., shelling out to CLI tools like mongosh or psql) adds friction.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗