Skip to content

Commit f2e1e42

Browse files
committed
feat: add chatGPT page
1 parent 74f9181 commit f2e1e42

File tree

7 files changed

+83
-13
lines changed

7 files changed

+83
-13
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: 'ChatGPT'
3+
metaTitle: 'Using the Prisma MCP Server with ChatGPT'
4+
metaDescription: 'Learn how to add the remote Prisma MCP server to ChatGPT to manage your Prisma Postgres databases.'
5+
tocDepth: 3
6+
toc: true
7+
---
8+
9+
[ChatGPT](https://openai.com/chatgpt) is a large language model-based chatbot developed by OpenAI. You can extend its capabilities by connecting it to external tools, such as the Prisma MCP server, to interact with your Prisma Postgres databases.
10+
11+
This guide explains how to add the remote Prisma MCP server to ChatGPT, allowing you to create and manage your databases using natural language prompts.
12+
13+
Here is an end to end demo of setting up the remote Prisma MCP server and using it in ChatGPT:
14+
15+
![Using the remote Prisma MCP server in ChatGPT](/img/orm/chatgpt-demo.gif)
16+
17+
## Features of the Prisma MCP server
18+
19+
By connecting the Prisma MCP server to ChatGPT, you can perform a variety of database management tasks directly from the chat interface. Here are some of the key features available:
20+
21+
- **Database management**: Create, list, and delete your Prisma Postgres databases.
22+
- **Connection strings**: Generate, list, and revoke database connection strings.
23+
- **Backup and recovery**: Create and list database backups, and restore a database from a backup.
24+
- **Schema and Data interaction**: Execute SQL queries, introspect your database schema to understand its structure, and apply schema updates.
25+
- **Workspace information**: Fetch details about your Prisma workspace.
26+
27+
## Prerequisites
28+
29+
To use the Prisma MCP server with ChatGPT, you need access to ChatGPT's Developer Mode. This feature is available on specific ChatGPT plans. For the most up-to-date information on supported plans, please refer to the [official OpenAI documentation](https://platform.openai.com/docs/guides/developer-mode).
30+
31+
## Enable Developer mode in ChatGPT
32+
33+
1. Go to **Settings** in your ChatGPT account.
34+
2. Click **Apps & Connectors**.
35+
3. Scroll down and locate **Advanced settings**, then click it.
36+
4. Toggle the **Developer mode** button on.
37+
5. Click **Back**.
38+
39+
## Add the remote Prisma MCP server
40+
41+
1. Make sure "Developer mode" is enabled.
42+
2. Go to the **Apps & Connectors** section of your **Settings**.
43+
3. On the top right, locate and click **Create**.
44+
4. A "New Connector" popup will open. Fill in the text fields as follows:
45+
- **Icon**: You can download and use the [Prisma favicon](https://www.prisma.io/favicon.ico).
46+
- **Name**: `Prisma MCP server`
47+
- **Description**: `Manage Prisma Postgres databases`
48+
- **MCP Server URL**: `https://mcp.prisma.io/mcp`
49+
- **Authentication**: `OAuth`
50+
5. Check the "I trust this application" box and click **Create**.
51+
52+
You will be redirected to authenticate with your Prisma Data Platform account and choose your desired workspace. After successful authentication, you will be redirected back to ChatGPT.
53+
54+
## Using the remote Prisma MCP server
55+
56+
Once Developer Mode is enabled and the Prisma MCP server is added, you can use it in your chats.
57+
58+
1. In ChatGPT, click the **+** icon to the left of the chat input box.
59+
2. Click **More**.
60+
3. Select the **Prisma MCP server** to add it to your chat as a connector.
61+
62+
Now you can use natural language prompts to manage your database. For example:
63+
64+
```
65+
Create a DB called pet-app for me near Paris
66+
```

content/200-orm/800-more/350-ai-tools/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'AI tools'
33
metaTitle: 'AI tools'
4-
metaDescription: 'Learn tips and best practices for using Prisma ORM in AI coding tools, like Cursor, Tabnine, Lovable, v0 and more.'
4+
metaDescription: 'Learn tips and best practices for using Prisma ORM in AI coding tools, like Cursor, ChatGPT, Tabnine, Lovable, v0 and more.'
55
hide_table_of_contents: true
66
---
77

content/250-postgres/350-integrations/400-mcp-server.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ Alternatively, you can add the _remote_ MCP server as an [integration](https://w
368368
- **Integration URL**: `https://mcp.prisma.io/mcp`
369369
1. Click **Add**
370370

371+
### ChatGPT
372+
373+
You can add the remote Prisma MCP server to ChatGPT to manage your Prisma Postgres databases using natural language. Learn more about setting it up in our [ChatGPT integration guide](/orm/more/ai-tools/chatgpt).
374+
371375
### OpenAI Agents SDK
372376

373377
Here's an example for using the Prisma MCP servers in a Python script via the OpenAI Agents SDK:

content/900-ai/index.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,28 @@ Prisma ORM and Prisma Postgres integrate seamlessly with your AI coding tools. C
3434
<LinkCard
3535
icon="fa-brands fa-cursor"
3636
title="Cursor"
37-
desc="Set up Prisma ORM from scratch with a SQLite database in 5 minutes."
37+
desc="Define project-specific rules and use your schema as context to generate accurate queries and code."
3838
link="/orm/more/ai-tools/cursor"
3939
/>
4040
<LinkCard
4141
icon="fa-brands fa-windsurf"
4242
title="Windsurf"
43-
desc="Explore our ready-to-run examples with your favorite frameworks and libraries."
43+
desc="Automate your database workflows by generating schemas, queries, and seed data in this AI-powered editor."
4444
link="/orm/more/ai-tools/windsurf"
4545
/>
4646
</Grid>
4747
<Grid>
4848
<LinkCard
49-
icon="fa-brands fa-openai"
49+
icon="fa-brands fa-github"
5050
title="Github Copilot"
51-
desc="Set up Prisma ORM from scratch with a SQLite database in 5 minutes."
51+
desc="Get Prisma-aware code suggestions, run CLI commands from chat, and query the Prisma docs."
5252
link="/orm/more/ai-tools/github-copilot"
5353
/>
5454
<LinkCard
55-
icon="fa-brands fa-tabnine"
56-
title="Tabnine"
57-
desc="Explore our ready-to-run examples with your favorite frameworks and libraries."
58-
link="/orm/more/ai-tools/tabnine"
55+
icon="fa-brands fa-openai"
56+
title="ChatGPT"
57+
desc="Learn how to connect the Prisma MCP server to ChatGPT to manage your databases with natural language."
58+
link="/orm/more/ai-tools/chatgpt"
5959
/>
6060
</Grid>
6161

sidebars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ const sidebars: SidebarsConfig = {
536536
"orm/more/ai-tools/cursor",
537537
"orm/more/ai-tools/windsurf",
538538
"orm/more/ai-tools/github-copilot",
539-
"orm/more/ai-tools/tabnine",
539+
"orm/more/ai-tools/chatgpt",
540540
],
541541
},
542542
{

src/data/indexData.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ export const how_do_i = [
207207
{
208208
title: "Get started with Prisma & AI?",
209209
description:
210-
"Learn how to get started with Prisma and AI, from setting up Prisma ORM in tools like ChatGPT, Cursor, Windsurf, GitHub Copilot, and Tabnine to using the Prisma MCP server for database automation. Explore step-by-step guides, real-world examples with Next.js, and integrations with Vercel AI SDK and Firebase Studio. Build faster, stay type-safe, and connect Prisma Postgres with thousands of apps to power your AI-driven workflows.",
211-
url: "/ai"
210+
"Learn how to get started with Prisma and AI, from setting up Prisma ORM in tools like ChatGPT, Cursor, Windsurf, GitHub Copilot, ChatGPT and Tabnine to using the Prisma MCP server for database automation. Explore step-by-step guides, real-world examples with Next.js, and integrations with Vercel AI SDK and Firebase Studio. Build faster, stay type-safe, and connect Prisma Postgres with thousands of apps to power your AI-driven workflows.",
211+
url: "/ai",
212212
},
213213
{
214214
title: "Model my schema?",
@@ -280,5 +280,5 @@ export const how_do_i = [
280280
// tags: ["guides", "schema", "orm"],
281281
url: "/orm/prisma-client/setup-and-configuration/generating-prisma-client",
282282
// time: 15
283-
}
283+
},
284284
];

static/img/orm/chatgpt-demo.gif

16.1 MB
Loading

0 commit comments

Comments
 (0)