AnalyticDB PostgreSQL MCP Server provides a universal interface between AI Agents and AnalyticDB PostgreSQL databases, enabling seamless metadata retrieval and SQL operations execution.
Execute SELECT SQL queries on the AnalyticDB PostgreSQL server.
Execute DML (INSERT, UPDATE, DELETE) SQL queries on the AnalyticDB PostgreSQL server.
Execute DDL (CREATE, ALTER, DROP) SQL queries on the AnalyticDB PostgreSQL server.
Collect table statistics.
Get query execution plan.
Upload a text file and its content to graphrag to generate a knowledge graph.
Query the graphrag using the specified query string and mode.
Upload a decision tree with the specified root node.
Append a subtree to an existing decision tree at the node specified by root_node_id.
Delete a sub-decision tree under the node specified by root_node_entity.
Add LLM long memory with a specific user, run or agent.
Retrieves all memory records associated with a specific user, run or agent.
Retrieves memories relevant to the given query for a specific user, run, or agent.
Delete all memory records associated with a specific user, run or agent.
{
"mcpServers": {
"adbpg-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/path/to/adbpg-mcp-server",
"run",
"adbpg-mcp-server"
],
"env": {
"ADBPG_HOST": "host",
"ADBPG_PORT": "port",
"ADBPG_USER": "username",
"ADBPG_PASSWORD": "password",
"ADBPG_DATABASE": "database",
"GRAPHRAG_API_KEY": "graphrag llm api key",
"GRAPHRAG_BASE_URL": "graphrag llm base url",
"GRAPHRAG_LLM_MODEL": "graphrag llm model name",
"GRAPHRAG_EMBEDDING_MODEL": "graphrag embedding model name",
"GRAPHRAG_EMBEDDING_API_KEY": "graphrag embedding api key",
"GRAPHRAG_EMBEDDING_BASE_URL": "graphrag embedding url",
"LLMEMORY_API_KEY": "llm memory api_key",
"LLMEMORY_BASE_URL": "llm memory base_url",
"LLMEMORY_LLM_MODEL": "llm memory model name",
"LLMEMORY_EMBEDDING_MODEL": "llm memory embedding model name",
"LLMEMORY_ENABLE_GRAPH": "enable graph engine for llm memory (Default: false)"
}
}
}
}