Apache AGE MCP Server
Apache AGE™ is a PostgreSQL Graph database compatible with PostgreSQL's distributed assets and leverages graph data structures to analyze and use relationships and patterns in data.
Azure Database for PostgreSQL is a managed database service that is based on the open-source Postgres database engine.
Introducing support for Graph data in Azure Database for PostgreSQL (Preview).
CREATE EXTENSION IF NOT EXISTS age CASCADE;
brew install claude
brew intall visual-studio-code
brew tap rioriost/age-mcp-server
brew install age-mcp-server
uv init your_project
cd your_project
uv venv
source .venv/bin/activate
uv add age-mcp-server
mkdir your_project
cd your_project
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install age-mcp-server
mkdir your_project
cd your_project
python -m venv venv
.\venv\Scripts\activate
python -m pip install age-mcp-server
on macOS
claude_desktop_config.json
is located in ~/Library/Application Support/Claude/
.
on Windows
You need to create a new claude_desktop_config.json
under %APPDATA%\Claude
.
Homebrew on macOS
Homebrew installs age-mcp-server
into $PATH.
{
"mcpServers": {
"age-manager": {
"command": "age-mcp-server",
"args": [
"--pg-con-str",
"host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username password=your_password",
]
}
}
}
On macOS:
{
"mcpServers": {
"age-manager": {
"command": "/Users/your_username/.local/bin/uv",
"args": [
"--directory",
"/path/to/your_project",
"run",
"age-mcp-server",
"--pg-con-str",
"host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username password=your_password",
]
}
}
}
On Windows:
{
"mcpServers": {
"age-manager": {
"command": "C:\\Users\\USER\\.local\\bin\\uv.exe",
"args": [
"--directory",
"C:\\path\\to\\your_project",
"run",
"age-mcp-server",
"--pg-con-str",
"host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username password=your_password",
]
}
}
}
If you need to hide the password or to use Entra ID, you can set --pg-con-str
as follows.
{
"mcpServers": {
"age-manager": {
...
"--pg-con-str",
"host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username",
...
]
}
}
}
And, you need to set PGPASSWORD
env variable, or to install Azure CLI and sign into Azure with your Azure account.
After saving claude_desktop_config.json
, start Claude Desktop Client.
After installing, [Preferences]->[Settings] and input mcp
to [Search settings].
Edit the settings.json as followings:
{
"mcp": {
"inputs": [],
"servers": {
"age-manager": {
"command": "/Users/your_user_name/.local/bin/uv",
"args": [
"--directory",
"/path/to/your_project",
"run",
"age-mcp-server",
"--pg-con-str",
"host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username password=your_password",
"--debug"
]
}
}
}
}
And then, you'll see start
to start the AGE MCP Server.
Switch the Chat window to agent
mode.
Now, you can play with your graph data via Visual Studio Code!
AGE-MCP-Server prohibits write operations by default for safety. If you want to enable write operations, you can use the --allow-write
flag.
{
"mcpServers": {
"age-manager": {
"command": "age-mcp-server",
"args": [
"--pg-con-str",
"host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username password=your_password",
"--allow-write"
]
}
}
}
CREATE
operation by adding RETURN
to the description for write-age-cypher
tool.--graph-name
argument--allow-write
flagRETURN
valuesMIT License
{
"mcpServers": {
"age-manager": {
"env": {},
"args": [
"--pg-con-str",
"host=your_server.postgres.database.azure.com port=5432 dbname=postgres user=your_username password=your_password"
],
"command": "age-mcp-server"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.