Schema-aware coding
Give the VS Code agent current tables, columns, relationships, indexes, and descriptions instead of stale guesses.
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.
tools/call → productionPOLICY CHECKEDThe production path
VS Code supports MCP servers for agent tools and context. DataMCP exposes your live PostgreSQL schema and approved query operations through a remote HTTP server the editor can use while planning changes, investigating data, or writing SQL.
The workspace configuration contains the MCP endpoint rather than the database connection string. Create a distinct link for each repository or environment, assign the minimum permissions it needs, and revoke access without rotating PostgreSQL credentials.
Follow the VS Code MCP setup guide for the gallery, Command Palette, .vscode/mcp.json, secure inputs, and troubleshooting. For the underlying tools and permission model, review the hosted PostgreSQL MCP server page.
What you get
Give the VS Code agent current tables, columns, relationships, indexes, and descriptions instead of stale guesses.
Connect with a hosted HTTPS endpoint supported by VS Code without installing or supervising a local runtime.
Create a separate MCP link and permission scope for each repository, team, or environment.
Keep PostgreSQL credentials encrypted server-side and out of .vscode/mcp.json and repository history.
Disable one VS Code link without rotating the database credential used by other clients.
Review PostgreSQL query execution details and permission denials produced through VS Code links.
Source to controlled MCP link
Connect the source once. DataMCP handles discovery, hosted transport, client authentication, and link policy.
Read the setup guideAdd the database once and verify the schema and tools DataMCP discovers.
Choose read-only or custom permissions and copy the remote MCP server details.
Add the HTTP server in workspace or user MCP settings, start it, and verify the database tools.
Build or use datamcp
See what stays on your engineering backlog when the MCP runtime and control layer are managed for you.
Command, package, runtime, and arguments
Local environment or config input
Usually one PostgreSQL role
Remove config or rotate credentials
Build from editor and database logs
Frequently asked questions
Clear answers about architecture, access, credentials, and supported clients.
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.
Keep exploring
Install from the gallery, configure remote HTTP or local stdio servers, keep secrets out of Git, and troubleshoot failures.
GUIDEAdd the remote server, verify its status, and expose PostgreSQL tools to the agent.
GUIDEReview database tools, permissions, credential handling, and hosting.
GUIDECompare the setup for another MCP-enabled code editor using the same controlled gateway.
Start with one link
Connect one PostgreSQL database and create one project-scoped remote MCP link for free. No local server and no credit card.