query_ordersRead only · 48 rowsThe agent traces the drop to records created after the provider incident.
VS Code / PostgreSQL / remote MCP
Give the VS Code agent live PostgreSQL schema and approved query tools through a hosted MCP server. Keep production credentials out of mcp.json, scope access per project, and review PostgreSQL query activity.
1 {
2 "servers": {
3 "datamcp": {
4 "type": "http",
5 "url": "https://api.datamcp.app/..."
6 }
7 }
8 }
Find why yesterday's paid orders are lower. Do not modify anything.
The decrease comes from 17 payments still marked processing. All were created after the provider incident at 18:42 UTC.
What the editor actually gets
The workspace points to one remote HTTP MCP server. datamcp keeps the source credential behind the gateway and exposes only the tools allowed for that repository.
datamcp discovers the live schema and publishes the available database tools.
Give this repository only the source and operations it actually needs.
Add the remote server from the Command Palette or `.vscode/mcp.json`.
Investigate data and write schema-aware code without committing a database password.
Work with the real system
The agent can inspect only the tools and data exposed by the MCP link assigned to this project.
query_ordersRead only · 48 rowsThe agent traces the drop to records created after the provider incident.
inspect_schemaRead only · schemaVS Code sees current tables, relationships, and indexes instead of guessing from stale code.
inspect_constraintsRead only · metadataThe agent checks the real constraint names before proposing a safe migration.
Set up VS Code
Keep repository configuration portable while the PostgreSQL credential remains outside Git and outside the editor settings.
Open the complete setup guide →Use a dedicated role and verify the discovered schema in datamcp.
Choose read-only or custom permissions and copy the remote server details.
Use MCP: Add Server or save the HTTP server in `.vscode/mcp.json`.
Start the server, run one approved query, and test a blocked operation.
Project context, not blanket access
The editor configuration points to an MCP endpoint. It does not need the PostgreSQL password to discover the schema or run approved tools.
Hosted or local
VS Code supports both remote HTTP and local MCP servers. The decision is whether your team wants to run the connection layer itself.
Before you connect
Configuration, credentials, permissions, hosting, and the limits that matter in a real project.
VS Code connects to a remote HTTP MCP endpoint configured as an MCP server. datamcp publishes PostgreSQL schema and query tools through that endpoint, validates permissions, runs approved operations, and returns the results to the VS Code agent.
Microsoft documents workspace MCP servers in .vscode/mcp.json and user-level servers in the VS Code profile. You can also use the MCP: Add Server command from the Command Palette.
No. Microsoft recommends avoiding hardcoded secrets in MCP configuration. With datamcp, mcp.json points to the hosted endpoint while the PostgreSQL connection string remains encrypted server-side.
Yes. Create a read-only link for schema exploration and SELECT queries, or use custom table permissions when a project should access only part of the database.
No. VS Code supports remote HTTP MCP servers, so datamcp operates the server and transport. The editor connects to the hosted HTTPS endpoint directly.
Start with one link
Connect one PostgreSQL database and create one project-scoped MCP link free forever. Upgrade only when you need more sources or links.