Postgres
Learn how to use Klavis to connect your AI application to Postgres MCP Server
Prerequisites
To get the most out of this guide, you’ll need to:
1. Create a Postgres MCP Server
Use the following endpoint to create a new remote Postgres MCP server instance:
Request
Response
serverUrl specifies the endpoint of the Postgres MCP server, which allows you to interact with PostgreSQL databases.
instanceId is used for authentication and identification of your server instance.
2. Configure Postgres Connection
To connect to your PostgreSQL database, you need to configure the MCP server with your database credentials.
They are usually in the form of postgresql://<user>:<password>@<host>:<port>/<database_name>
.