What are the prerequisites to run this application?
A Clever Cloud account, Clever Tools CLI installed, Node.js 23 or later, a PostgreSQL database, and access to an LLM API (e.g., OpenAI).
@CleverCloud
基本信息
A Node.js application on Clever Cloud that uses an MCP server for PostgreSQL along with a language model to enable natural language querying of a PostgreSQL database
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-pg-example": {
"command": "node",
"args": [
"scripts/initializeDb.js"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
This repository demonstrates how to deploy a Node.js application on Clever Cloud that uses the Model Context Protocol (MCP) server for PostgreSQL along with a language model to enable natural language querying of a PostgreSQL database. It is intended for developers who want to combine MCP, LLMs, and PostgreSQL in a cloud‑deployed chat interface.
Clone the repo, run npm install, copy .env.example to .env, fill in your PostgreSQL connection URI, LLM API key, and optional model/URL settings. Initialize the database with node scripts/initializeDb.js. Test the integration with node scripts/testMCP.js. Start the development server with npm run dev. Deploy to Clever Cloud using the CLI (clever create, clever addon create, clever deploy) or via the Clever Cloud Console.
A Clever Cloud account, Clever Tools CLI installed, Node.js 23 or later, a PostgreSQL database, and access to an LLM API (e.g., OpenAI).
Use the CLI commands `clever create --type node <APP_NAME>`, `clever addon create <APP_NAME>-pg --plan dev`, then set required environment variables (`LLM_API_KEY`, etc.) and run `clever deploy`. You can also deploy from the Clever Cloud Console via Git or GitHub.
Required: `POSTGRESQL_ADDON_URI` (auto‑set by Clever Cloud when linking a PostgreSQL add‑on) and `LLM_API_KEY`. Optional: `PORT` (default 8080), `LLM_API_MODEL` (default `gpt-4o-mini`), `LLM_API_URL` (default OpenAI’s base URL).
Check the logs with `clever logs`, verify all environment variables are correctly set with `clever env`, and ensure the application is running with `clever status`.
Yes. Set up a local PostgreSQL database, configure the `.env` file with your local connection URI, and run the development server or test script.

Model Context Protocol Servers
Local MCP server for DuckDB and MotherDuck
MCP server for interacting with Neon Management API and databases
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Connect ClickHouse to your AI assistants.
评论