apps/docs/content/docs.v6/postgres/integrations/vscode.mdx
Visual Studio Code is one of the most popular code editors, offering speed, flexibility, and a vast extension ecosystem. With over 2.5M installs and 350K monthly active users, the Prisma VS Code extension is a powerful tool when you're building applications with Prisma Postgres using VS Code as your editor.
:::info Be sure to update the VS Code extension regularly in order to maintain functionality and take advantage of new features in the latest release of Prisma ORM :::
The Prisma VS Code extension includes a dedicated UI to manage Prisma Postgres instances (local and remote).
The UI enables the following workflows:
To manage Prisma Postgres instances via the UI in the Prisma VS Code extension:
The Prisma Extension can support both version 6 and version 7 of Prisma ORM. If you open a project using either version, you can set the supported version by the command palette or the diagnostics prompt.
Beyond managing your database instances, the Prisma VS Code extension embeds Prisma Studio directly in your editor making it easy to perform create, update, delete steps on your database from right inside of VS Code. Follow these easy steps to get started.
Prisma provides its own Model Context Protocol (MCP) server that lets you manage Prisma Postgres databases, model database schemas and chat through migrations.
You can add the Prisma MCP server to VS Code using the one-click installation by clicking on the following link:
<a href="vscode:mcp/install?%7B%22name%22%3A%22prisma-postgres%22%2C%22gallery%22%3Atrue%2C%22url%22%3A%22https%3A%2F%2Fmcp.prisma.io%2Fmcp%22%7D" aria-label="Install Prisma MCP server in VS Code" style={{ display: "inline-flex", alignItems: "center", borderRadius: "6px", overflow: "hidden", textDecoration: "none", height: "2.0rem", }}
<span style={{ backgroundColor: "#2C2C2C", color: "white", padding: "0.6rem 0.8rem" }}> VS CODE </span> <span style={{ backgroundColor: "#0098FF", color: "white", padding: "0.6rem 1rem" }}> INSTALL PRISMA MCP SERVER </span> </a>
This will prompt you to open VS Code. Once opened, you'll be guided to install the Prisma MCP server directly into your VS Code configuration.
If your browser blocks the link, you can set it up manually by creating a .vscode/mcp.json file in your workspace and adding:
{
"servers": {
"Prisma-Local": {
"command": "npx",
"args": ["-y", "prisma", "mcp"]
},
"Prisma-Remote": {
"url": "https://mcp.prisma.io/mcp"
}
}
}
Learn more about the MCP server in our MCP server documentation.
VS Code includes an agent mode (powered by GitHub Copilot) that automatically performs code changes and executes Prisma CLI commands based on your prompts.
The Prisma VS Code extension enables support for VS Code agent mode.
VS Code agent mode can perform the following tasks:
The latest version of the Prisma VS Code extension fully supports agent mode. Since extensions update automatically, no manual action is required to enable it.
:::note We recommend you to use the latest version of Prisma ORM. :::
To use the agent mode:
.env file.:::note Currently, the agent mode uses your default workspace in the Prisma Data Platform. :::
Complementing the agent, the Prisma Copilot extension allows you to query Prisma documentation directly within VS Code.
You need to install the Prisma for Copilot extension from the GitHub marketplace.
Then, switch to Ask mode in GitHub Copilot Chat and type your question using the @prisma-for-github-copilot namespace.
For more details, refer to our GitHub Copilot documentation.