Content
# Usage
- Install latest Node.js.
- Clone this repository.
- Run command: `npm i && npm run build`.
- Add configuration in you IDE or other supported AI agents.
- In VScode:
Configuration file path: `.vscode/mcp.json`
```
{
"servers": {
// you will see service start button here.
"postgres": {
"command": "node",
"args": [
"/Users/xxx/project/personal/mcp-postgre/build/index.js" // the absolute path to your compiled JS file
],
"env": {
"POSTGRES_HOST": "localhost",
"POSTGRES_PORT": "5432",
"POSTGRES_DB": "postgres",
"POSTGRES_USER": "postgres",
"POSTGRES_PASSWORD": "123456",
}
}
}
}
```
- In Cursor
You can also add configuration by UI in `Cursor Settings -> MCP`, or configuration file path: `.cursor/mcp.json`.
```
{
"mcpServers": {
"postgres": {
"command": "node",
"args": ["/Users/xxx/project/personal/mcp-postgre/build/index.js"], // the absolute path to your compiled JS file
"env": {
"POSTGRES_HOST": "localhost",
"POSTGRES_PORT": "5432",
"POSTGRES_DB": "postgres",
"POSTGRES_USER": "postgres",
"POSTGRES_PASSWORD": "123456"
}
}
}
}
```
- And then, you can switch your copilot to `Agent` mode and ask som questions in AI chat window.
- If you are using Cursor, ask questions directly.
- If you are using VScode, start server manuraly first in `mcp.json`. You can also use `Command` + `Shift` + `P`, and type `MCP` into input box to run some commands, including start and stop MCP servers.

> To avoid strange problems, make sure you are using the latest VScode and Cursor.
>
> See more details in `https://modelcontextprotocol.io/quickstart/server`
You Might Also Like
Ollama
Ollama enables easy access to large language models on various platforms.

n8n
n8n is a secure workflow automation platform for technical teams with 400+...
OpenWebUI
Open WebUI is an extensible web interface for customizable applications.

Dify
Dify is a platform for AI workflows, enabling file uploads and self-hosting.

Zed
Zed is a high-performance multiplayer code editor from the creators of Atom.
MarkItDown MCP
markitdown-mcp is a lightweight MCP server for converting various URIs to Markdown.